QEventAuxData Class Reference

List of all members.

Detailed Description

Container of QObject, int, double and string.

Note: QEventAuxData takes the ownership of the QObject e.g. it will take care of destroying them when its destructor is called.


Public Member Functions

 QEventAuxData ()
 default constructor
virtual ~QEventAuxData ()
 destructor
void SetTObject (const std::string &key, TObject *obj, const char *option="")
 Add a QObject to QEventAuxData.
void SetQObject (const std::string &key, QObject *obj, const char *option="")
 Add a QObject to QEventAuxData.
void SetBool (const std::string &key, bool obj, const char *option="")
 Add an bool to QEventAuxData.
void SetFloat (const std::string &key, float obj, const char *option="")
 Add an float to QEventAuxData.
void SetInt (const std::string &key, int obj, const char *option="")
 Add an int to QEventAuxData.
void SetDouble (const std::string &key, double obj, const char *option="")
 Add a double to QEventAuxData.
void SetString (const std::string &key, const std::string &obj, const char *option="")
 Add a string to QEventAuxData.
const TObject * GetTObject (const std::string &key) const
 Get a TObject.
const QObjectGetQObject (const std::string &key) const
 Get a QObject.
int GetInt (const std::string &key) const
 Get an int.
bool GetBool (const std::string &key) const
 Get an bool.
float GetFloat (const std::string &key) const
 Get an float.
double GetDouble (const std::string &key) const
 Get a double.
std::string GetString (const std::string &key) const
 Get a string.
const std::map< std::string,
Datum< TObject * > > & 
GetTObjectMap () const
const std::map< std::string,
Datum< QObject * > > & 
GetQObjectMap () const
const std::map< std::string,
Datum< bool > > & 
GetBoolMap () const
const std::map< std::string,
Datum< float > > & 
GetFloatMap () const
const std::map< std::string,
Datum< double > > & 
GetDoubleMap () const
const std::map< std::string,
Datum< int > > & 
GetIntMap () const
const std::map< std::string,
Datum< std::string > > & 
GetStringMap () const
void Clear ()

Private Attributes

std::map< std::string, Datum<
TObject * > > 
fTObjectMap
 TObject map with string key.
std::map< std::string, Datum<
TObject * > >::iterator 
fTObjIter
std::map< std::string, Datum<
QObject * > > 
fQObjectMap
 QObject map with string key.
std::map< std::string, Datum<
QObject * > >::iterator 
fQObjIter
std::map< std::string, Datum<
bool > > 
fBoolMap
 double map with bool key
std::map< std::string, Datum<
bool > >::iterator 
fBIter
std::map< std::string, Datum<
float > > 
fFloatMap
 double map with float key
std::map< std::string, Datum<
float > >::iterator 
fFIter
std::map< std::string, Datum<
double > > 
fDoubleMap
 double map with string key
std::map< std::string, Datum<
double > >::iterator 
fDIter
std::map< std::string, Datum<
int > > 
fIntMap
 int map with string key
std::map< std::string, Datum<
int > >::iterator 
fIIter
std::map< std::string, Datum<
std::string > > 
fStringMap
 string map with string key
std::map< std::string, Datum<
std::string > >::iterator 
fSIter

Classes

class  Datum


Member Function Documentation

void QEventAuxData::SetTObject ( const std::string &  key,
TObject *  obj,
const char *  option = "" 
) [inline]

Add a QObject to QEventAuxData.

Parameters:
key object identificator
obj previously "new" instantiated QObject
Returns:
none

void QEventAuxData::SetQObject ( const std::string &  key,
QObject obj,
const char *  option = "" 
) [inline]

Add a QObject to QEventAuxData.

Parameters:
key object identificator
obj previously "new" instantiated QObject
Returns:
none

void QEventAuxData::SetBool ( const std::string &  key,
bool  obj,
const char *  option = "" 
) [inline]

Add an bool to QEventAuxData.

Parameters:
key bool identificator
obj bool to be added
Returns:
none

void QEventAuxData::SetFloat ( const std::string &  key,
float  obj,
const char *  option = "" 
) [inline]

Add an float to QEventAuxData.

Parameters:
key float identificator
obj float to be added
Returns:
none

void QEventAuxData::SetInt ( const std::string &  key,
int  obj,
const char *  option = "" 
) [inline]

Add an int to QEventAuxData.

Parameters:
key int identificator
obj int to be added
Returns:
none

void QEventAuxData::SetDouble ( const std::string &  key,
double  obj,
const char *  option = "" 
) [inline]

Add a double to QEventAuxData.

Parameters:
key double identificator
obj double to be added
Returns:
none

void QEventAuxData::SetString ( const std::string &  key,
const std::string &  obj,
const char *  option = "" 
) [inline]

Add a string to QEventAuxData.

Parameters:
key string identificator
obj string to be added
Returns:
none

const TObject* QEventAuxData::GetTObject ( const std::string &  key  )  const [inline]

Get a TObject.

Parameters:
key TObject identificator
Returns:
reference to TObject

const QObject* QEventAuxData::GetQObject ( const std::string &  key  )  const [inline]

Get a QObject.

Parameters:
key QObject identificator
Returns:
reference to QObject

int QEventAuxData::GetInt ( const std::string &  key  )  const [inline]

Get an int.

Parameters:
key int identificator
Returns:
int value

bool QEventAuxData::GetBool ( const std::string &  key  )  const [inline]

Get an bool.

Parameters:
key bool identificator
Returns:
bool value

float QEventAuxData::GetFloat ( const std::string &  key  )  const [inline]

Get an float.

Parameters:
key float identificator
Returns:
float value

double QEventAuxData::GetDouble ( const std::string &  key  )  const [inline]

Get a double.

Parameters:
key double identificator
Returns:
double value

std::string QEventAuxData::GetString ( const std::string &  key  )  const [inline]

Get a string.

Parameters:
key string identificator
Returns:
string value


The documentation for this class was generated from the following files:
Generated on Fri Mar 6 13:40:42 2009 for CUORE Software by  doxygen 1.5.1