VR-Vantage 3.0 API 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. More...

Public Member Functions

 DtObjectClassChooser (DtExerciseConn *exConn, const char *vrlinkClassName, DtObjectSuperType superType)
virtual ~DtObjectClassChooser ()
virtual char * chooseClass (const char *vrlClass, DtExerciseConn *conn, void *fomClassSpecific)
 Chooses the class to publish.
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 char * chooseClass (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

Detailed Description

This class is used to choose the object class to publish.

By default it uses the classes configured in the VR-Link FOM mapper at the time of construction. Can be subclassed to provide other methods of choosing the object class.

Constructor & Destructor Documentation

DtObjectClassChooser::DtObjectClassChooser ( DtExerciseConn *  exConn,
const char *  vrlinkClassName,
DtObjectSuperType  superType 
)
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::setNextObjectType ( const DtObjectType objType)
virtual

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

For these publishers, setNextObjectType can be used 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

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


Copyright © 2005-2022 MAK Technologies. All Rights Reserved (www.mak.com)