VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
DtObjectClassChooser Class Reference

This class is used to choose the object class to publish based on the current DtVrfParameterDb. More...

Public Member Functions

 DtObjectClassChooser (DtExerciseConn *exConn, const char *vrlinkClassName, DtObjectSuperType superType, DtVrfParameterDb *paramDb=0)
virtual ~DtObjectClassChooser ()
virtual charchooseClass (const char *vrlClass, DtExerciseConn *conn, void *fomClassSpecific)
 Chooses the class to publish.
virtual void setParameterDb (DtVrfParameterDb *paramDb)
 Sets the current parameter database to use when selecting a class.
virtual const DtVrfParameterDbparameterDb () const
 Gets the current parameter database to use when selecting a class.
virtual void setNextObjectType (const DtObjectType &objType)
 Some types of publishers do not support passing the entity/object type in the fomClassSpecific data.

Static Public Member Functions

static charchooseClass (const char *vrlClass, DtExerciseConn *conn, void *fomClassSpecific, void *usr)
 Chooses the class to publish.

Protected Attributes

DtFomMapper::DtObjectClassChooserInfo myDefaultObjectClassChooserInfo
DtString myDefaultClassToChoose
DtObjectSuperType mySuperType
DtObjectType myNextObjectType
DtVrfParameterDbmyParameterDb

Detailed Description

This class is used to choose the object class to publish based on the current DtVrfParameterDb.

Constructor & Destructor Documentation

DtObjectClassChooser::DtObjectClassChooser ( DtExerciseConn *  exConn,
const char vrlinkClassName,
DtObjectSuperType  superType,
DtVrfParameterDb paramDb = 0 
)
virtual DtObjectClassChooser::~DtObjectClassChooser ( )
virtual

Member Function Documentation

static char* DtObjectClassChooser::chooseClass ( const char vrlClass,
DtExerciseConn *  conn,
void *  fomClassSpecific,
void *  usr 
)
static

Chooses the class to publish.

The usr pointer must be an instance of this class. Calls the chooseClass function of that instance.

virtual char* DtObjectClassChooser::chooseClass ( const char vrlClass,
DtExerciseConn *  conn,
void *  fomClassSpecific 
)
virtual

Chooses the class to publish.

virtual void DtObjectClassChooser::setParameterDb ( DtVrfParameterDb paramDb)
virtual

Sets the current parameter database to use when selecting a class.

virtual const DtVrfParameterDb* DtObjectClassChooser::parameterDb ( ) const
virtual

Gets the current parameter database to use when selecting a class.

virtual void DtObjectClassChooser::setNextObjectType ( const DtObjectType objType)
virtual

Some types of publishers do not support passing the entity/object type in the fomClassSpecific data.

For these publishers it is necessary to specify the object type prior to the creation of the publisher.

Member Data Documentation

DtFomMapper::DtObjectClassChooserInfo DtObjectClassChooser::myDefaultObjectClassChooserInfo
protected
DtString DtObjectClassChooser::myDefaultClassToChoose
protected
DtObjectSuperType DtObjectClassChooser::mySuperType
protected
DtObjectType DtObjectClassChooser::myNextObjectType
protected
DtVrfParameterDb* DtObjectClassChooser::myParameterDb
protected

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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)