EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairTSQLObject Class Reference

==================================== More...

#include <EicRoot/blob/master/dbase/dbUtils/FairTSQLObject.h>

+ Inheritance diagram for FairTSQLObject:
+ Collaboration diagram for FairTSQLObject:

Public Member Functions

 FairTSQLObject ()
 
virtual ~FairTSQLObject ()
 
TDictionary & GetcurDict ()
 
TClass & GetCurCls ()
 
TList & GetMemberList ()
 
TList & GetMethodList ()
 
virtual FairDBObjectMemberTypes GetMemberType (std::string const &mName)
 
virtual std::string * GetMemberTypeName (std::string const &mName)
 
virtual std::string * GetMemberTypeName (char const *mName)
 
TMethodCall * GetDataMemberGetter (std::string const &mName)
 
FairDBObjectMemberValueGetMember (std::string const &mName)
 
TMethod * GetMethod (std::string const &methodName)
 
std::string * GetMethodPrototype (std::string const &methodName)
 
std::string * GetMethodReturnTypeName (std::string const &methodName)
 
std::string * GetMethodReturnTypeName (char const *methodName)
 

Protected Attributes

TClass * fCurCls
 
TDictionary * fcurDict
 
TList * fMemberList
 
TList * fMethodList
 

Private Member Functions

 FairTSQLObject (FairTSQLObject const &ot)
 
FairTSQLObjectoperator= (FairTSQLObject const &ot)
 
void InitCurClass ()
 
void InitMemList ()
 
void InitMethodList ()
 

Detailed Description

====================================

Definition at line 101 of file FairTSQLObject.h.

View newest version in sPHENIX GitHub at line 101 of file FairTSQLObject.h

Constructor & Destructor Documentation

FairTSQLObject::FairTSQLObject ( )

Default constructor.

FairTSQLObject::~FairTSQLObject ( )
virtual

Destructor.

Destructor.

It seems that ROOT owns the returned pointers. So deleting leads into a seg. fault. So we do not need to clean up, ;).

Definition at line 35 of file FairTSQLObject.cxx.

View newest version in sPHENIX GitHub at line 35 of file FairTSQLObject.cxx

FairTSQLObject::FairTSQLObject ( FairTSQLObject const &  ot)
private

Member Function Documentation

TClass & FairTSQLObject::GetCurCls ( )

Fetch the class information for the current object.

Returns
Current class info for the current class.

Definition at line 43 of file FairTSQLObject.cxx.

View newest version in sPHENIX GitHub at line 43 of file FairTSQLObject.cxx

References fCurCls, and InitCurClass().

Referenced by GetDataMemberGetter().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TDictionary & FairTSQLObject::GetcurDict ( )
Returns
TDictionary for the current Object.

Definition at line 75 of file FairTSQLObject.cxx.

View newest version in sPHENIX GitHub at line 75 of file FairTSQLObject.cxx

References fcurDict.

TMethodCall * FairTSQLObject::GetDataMemberGetter ( std::string const &  mName)
Parameters
mNameThe name of the member to search.
Returns
The TMethodCall for getting access to the data member. If the member is not found or the method has not been implemented returns 0.

Definition at line 273 of file FairTSQLObject.cxx.

View newest version in sPHENIX GitHub at line 273 of file FairTSQLObject.cxx

References GetCurCls().

Referenced by GetMember().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

FairDBObjectMemberValue * FairTSQLObject::GetMember ( std::string const &  mName)
Parameters
mNameThe name of the member to search for.
Returns
Handle to the actual data member of the class. If no *getter function is defined or the member is not found, then the *fields remains empty and the type is UNKNOWN_TYPE.
Parameters
mNameThe name of the member to search for.
Returns
Handle to the actual data member of the class. If no *getter function is defined or the member is not found, then the *fields remain empty and the type is UNKNOWN_TYPE.

Definition at line 292 of file FairTSQLObject.cxx.

View newest version in sPHENIX GitHub at line 292 of file FairTSQLObject.cxx

References CHAR, COMPLEX_TYPE, DOUBLE, DOUBLE_ARRAY, DOUBLE_ARRAY_PTR, FLOAT, FLOAT_ARRAY, FLOAT_ARRAY_PTR, GetDataMemberGetter(), GetMemberType(), INT, INT_ARRAY, INT_ARRAY_PTR, and UNKNOWN_TYPE.

+ Here is the call graph for this function:

TList & FairTSQLObject::GetMemberList ( )

Fetch the list of the data members for the current object.

Returns
The list of data members.

Definition at line 54 of file FairTSQLObject.cxx.

View newest version in sPHENIX GitHub at line 54 of file FairTSQLObject.cxx

References fMemberList, and InitMemList().

+ Here is the call graph for this function:

FairDBObjectMemberTypes FairTSQLObject::GetMemberType ( std::string const &  mName)
virtual

Find the true type of the member named "mName".

Parameters
mNameThe name of the member to search for.
Returns
The type name of the member with the given name. If not found UNKNOWN_TYPE type is returned.

Find the true type of the member named "mName".

Parameters
mNameThe name of the member to search for.
Returns
The type name of the member with the given name. If not found UNKNOWN_TYPE type is returned.Initialize the current Tclass object

Definition at line 134 of file FairTSQLObject.cxx.

View newest version in sPHENIX GitHub at line 134 of file FairTSQLObject.cxx

References CHAR, COMPLEX_TYPE, DOUBLE, DOUBLE_ARRAY, DOUBLE_ARRAY_PTR, FLOAT, FLOAT_ARRAY, FLOAT_ARRAY_PTR, GetMemberTypeName(), INT, INT_ARRAY, INT_ARRAY_PTR, and UNKNOWN_TYPE.

Referenced by GetMember().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string * FairTSQLObject::GetMemberTypeName ( std::string const &  mName)
virtual

Find the true type of the member named "mName".

Parameters
mNameThe name of the member to search for.
Returns
The type of the member with the given name. If not found the string "UNKNOWN_TYPE" is returned.

Find the true type of the member named "mName".

Parameters
mNameThe name of the member to search for.
Returns
The type of the member with the given name. If not found the string "UNKNOWN_OBJECT" is returned.

Definition at line 91 of file FairTSQLObject.cxx.

View newest version in sPHENIX GitHub at line 91 of file FairTSQLObject.cxx

Referenced by GetMemberType().

+ Here is the caller graph for this function:

std::string * FairTSQLObject::GetMemberTypeName ( char const *  mName)
virtual

Find the true type of the member named "mName".

Parameters
mNameThe name of the member to search for.
Returns
The type of the member with the given name. If not found the string "UNKNOWN_OBJECT" is returned.

Definition at line 104 of file FairTSQLObject.cxx.

View newest version in sPHENIX GitHub at line 104 of file FairTSQLObject.cxx

References fCurCls, fMemberList, and InitMemList().

+ Here is the call graph for this function:

TMethod * FairTSQLObject::GetMethod ( std::string const &  methodName)
Parameters
methodNameThe name of the method we are seeking in the current object.
Returns
If a method with the given name exists, then return a pointer to the object, 0 otherwise;

Definition at line 206 of file FairTSQLObject.cxx.

View newest version in sPHENIX GitHub at line 206 of file FairTSQLObject.cxx

References fMethodList, and InitMethodList().

+ Here is the call graph for this function:

TList & FairTSQLObject::GetMethodList ( )

Fetch the list of the methods for the current object. Note that list contains also the inherited members.

Returns
The list of methods.

Definition at line 66 of file FairTSQLObject.cxx.

View newest version in sPHENIX GitHub at line 66 of file FairTSQLObject.cxx

References fMethodList, and InitMethodList().

+ Here is the call graph for this function:

std::string * FairTSQLObject::GetMethodPrototype ( std::string const &  methodName)
Parameters
methodNameThe name of the method.
Returns
Proto type of the function. If not found returns "UNKNOWN_METHOD".

Definition at line 219 of file FairTSQLObject.cxx.

View newest version in sPHENIX GitHub at line 219 of file FairTSQLObject.cxx

References fMethodList, and InitMethodList().

+ Here is the call graph for this function:

std::string * FairTSQLObject::GetMethodReturnTypeName ( std::string const &  methodName)
Parameters
methodNameThe name of the method.
Returns
The name of the return type of given method. If not found returns "UNKNOWN_METHOD"

Definition at line 240 of file FairTSQLObject.cxx.

View newest version in sPHENIX GitHub at line 240 of file FairTSQLObject.cxx

std::string * FairTSQLObject::GetMethodReturnTypeName ( char const *  methodName)
Parameters
methodNameThe name of the method.
Returns
The name of the return type of given method. If not found returns "UNKNOWN_METHOD"

Definition at line 251 of file FairTSQLObject.cxx.

View newest version in sPHENIX GitHub at line 251 of file FairTSQLObject.cxx

References fMethodList, and InitMethodList().

+ Here is the call graph for this function:

void FairTSQLObject::InitCurClass ( )
private

Initialize the list of members for the current object.

Definition at line 174 of file FairTSQLObject.cxx.

View newest version in sPHENIX GitHub at line 174 of file FairTSQLObject.cxx

References fCurCls.

Referenced by GetCurCls(), InitMemList(), and InitMethodList().

+ Here is the caller graph for this function:

void FairTSQLObject::InitMemList ( )
private

Initialize the list of methods for the current object.

Definition at line 182 of file FairTSQLObject.cxx.

View newest version in sPHENIX GitHub at line 182 of file FairTSQLObject.cxx

References fCurCls, fMemberList, and InitCurClass().

Referenced by GetMemberList(), and GetMemberTypeName().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairTSQLObject::InitMethodList ( )
private

Definition at line 191 of file FairTSQLObject.cxx.

View newest version in sPHENIX GitHub at line 191 of file FairTSQLObject.cxx

References fCurCls, fMethodList, and InitCurClass().

Referenced by GetMethod(), GetMethodList(), GetMethodPrototype(), and GetMethodReturnTypeName().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

FairTSQLObject& FairTSQLObject::operator= ( FairTSQLObject const &  ot)
private

Initialize the current Tclass object

Member Data Documentation

TClass* FairTSQLObject::fCurCls
protected

Current TClass info

Definition at line 208 of file FairTSQLObject.h.

View newest version in sPHENIX GitHub at line 208 of file FairTSQLObject.h

Referenced by GetCurCls(), GetMemberTypeName(), InitCurClass(), InitMemList(), and InitMethodList().

TDictionary* FairTSQLObject::fcurDict
protected

Current Dictionary info

Definition at line 209 of file FairTSQLObject.h.

View newest version in sPHENIX GitHub at line 209 of file FairTSQLObject.h

Referenced by GetcurDict().

TList* FairTSQLObject::fMemberList
protected

The list of members

Definition at line 210 of file FairTSQLObject.h.

View newest version in sPHENIX GitHub at line 210 of file FairTSQLObject.h

Referenced by GetMemberList(), GetMemberTypeName(), and InitMemList().

TList* FairTSQLObject::fMethodList
protected

The list of methods

Definition at line 211 of file FairTSQLObject.h.

View newest version in sPHENIX GitHub at line 211 of file FairTSQLObject.h

Referenced by GetMethod(), GetMethodList(), GetMethodPrototype(), GetMethodReturnTypeName(), and InitMethodList().


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