ATLAS Offline Software
Loading...
Searching...
No Matches
ExampleClass Class Reference

This class provides an example data object for AthenaPool. More...

#include <ExampleClass.h>

Collaboration diagram for ExampleClass:

Public Member Functions

 ExampleClass ()=default
 Default Constructor.
virtual ~ExampleClass ()=default
 Destructor.
int getRun () const
int getEvent () const
const std::string & getText () const
void setRun (int run)
 Set the run number.
void setEvent (int event)
 Set the event number.
void setText (const std::string &text)
 Set the text string.

Private Attributes

int m_run {0}
int m_event {0}
std::string m_text

Detailed Description

This class provides an example data object for AthenaPool.

Definition at line 19 of file ExampleClass.h.

Constructor & Destructor Documentation

◆ ExampleClass()

ExampleClass::ExampleClass ( )
default

Default Constructor.

◆ ~ExampleClass()

virtual ExampleClass::~ExampleClass ( )
virtualdefault

Destructor.

Member Function Documentation

◆ getEvent()

int ExampleClass::getEvent ( ) const
inline
Returns
the event number.

Definition at line 32 of file ExampleClass.h.

32{ return(m_event); }

◆ getRun()

int ExampleClass::getRun ( ) const
inline
Returns
the run number.

Definition at line 29 of file ExampleClass.h.

29{ return(m_run); }

◆ getText()

const std::string & ExampleClass::getText ( ) const
inline
Returns
the text string.

Definition at line 35 of file ExampleClass.h.

35{ return(m_text); }
std::string m_text

◆ setEvent()

void ExampleClass::setEvent ( int event)
inline

Set the event number.

Parameters
event[IN] event number.

Definition at line 43 of file ExampleClass.h.

◆ setRun()

void ExampleClass::setRun ( int run)
inline

Set the run number.

Parameters
run[IN] run number.

Definition at line 39 of file ExampleClass.h.

◆ setText()

void ExampleClass::setText ( const std::string & text)
inline

Set the text string.

Parameters
text[IN] text string.

Definition at line 47 of file ExampleClass.h.

Member Data Documentation

◆ m_event

int ExampleClass::m_event {0}
private

Definition at line 51 of file ExampleClass.h.

51{0};

◆ m_run

int ExampleClass::m_run {0}
private

Definition at line 50 of file ExampleClass.h.

50{0};

◆ m_text

std::string ExampleClass::m_text
private

Definition at line 52 of file ExampleClass.h.


The documentation for this class was generated from the following file: