VR-Forces Developer's Guide
 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. 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.

Inheritance diagram for DtObjectClassChooser:
Inheritance graph
[legend]

Public Member Functions

 DtObjectClassChooser (DtExerciseConn *exConn, const char *vrlinkClassName)
 
virtual ~DtObjectClassChooser ()
 
virtual charchooseClass (const char *vrlClass, DtExerciseConn *conn, void *fomClassSpecific)
 
virtual void setNextEntityType (const DtEntityType &entyType)
 

Static Public Member Functions

static charchooseClass (const char *vrlClass, DtExerciseConn *conn, void *fomClassSpecific, void *usr)
 

Protected Attributes

DtFomMapper::DtObjectClassChooserInfo myDefaultObjectClassChooserInfo
 
DtString myDefaultClassToChoose
 
DtEntityType myNextEntityType
 

Constructor & Destructor Documentation

DtObjectClassChooser::DtObjectClassChooser ( DtExerciseConn *  exConn,
const char vrlinkClassName 
)
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::setNextEntityType ( const DtEntityType &  entyType)
virtual

Some types of publishers do not support passing the entity/object type in the fomClassSpecific data. For these publishers, setNextEntityType 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
DtEntityType DtObjectClassChooser::myNextEntityType
protected

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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)