VR-Forces 4.8 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. More...

Inheritance diagram for DtObjectClassChooser:
Inheritance graph
[legend]

Public Member Functions

 DtObjectClassChooser (DtExerciseConn *exConn, const char *vrlinkClassName, DtObjectSuperType superType)
 
virtual ~DtObjectClassChooser ()
 
virtual charchooseClass (const char *vrlClass, DtExerciseConn *conn, void *fomClassSpecific)
 Chooses the class to publish. More...
 
virtual void setNextObjectType (const DtObjectType &objType)
 Some types of publishers do not support passing the entity/object type in the fomClassSpecific data. More...
 

Static Public Member Functions

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

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.

Reimplemented in DtVrfObjectClassChooser.

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:

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)