class DtBaseFomDesc: More...
Inheritance diagram for MAKLogger::DtBaseFomDesc:
Collaboration diagram for MAKLogger::DtBaseFomDesc:Public Types | |
|
typedef std::vector < DtBaseObjClassDesc * > ::iterator | objectIterator |
|
typedef std::vector < DtBaseObjClassDesc * > ::const_iterator | const_objectIterator |
|
typedef std::vector < DtBaseInterClassDesc * > ::iterator | interactionIterator |
|
typedef std::vector < DtBaseInterClassDesc * > ::const_iterator | const_interactionIterator |
Public Member Functions | |
| virtual | ~DtBaseFomDesc () |
| Virtual Constructor. | |
| virtual DtBaseObjClassDesc * | addObjectClass (const DtBaseObjClassDesc &) |
| virtual DtBaseInterClassDesc * | addInteractionClass (const DtBaseInterClassDesc &) |
| virtual int | readFromFile (FILE *fp) |
| Initialize by reading FOM from a logger file. | |
| virtual int | readFromFile64 (int fd) |
| virtual int | writeToFile (FILE *fp) const |
| Write contents to a logger file. | |
| virtual int | writeToFile64 (int fd) const |
| virtual int | setFromSerialForm (const void *p) |
| Initialize by reading FOM from a "serialized-form" buffer. | |
| virtual char * | serialize (int *pSize=0) const |
| Obtain a copy of the current fom in serialized form. | |
| int | objectClassCount () const |
| Get the number of object classes in the FOM. | |
| int | interactionClassCount () const |
| Get the number of interaction classes in the FOM. | |
| int | count () const |
| Get the total number of classes in the FOM (object and interaction) | |
| virtual bool | equivalent (const DtBaseFomDesc &other) const |
| Returns true if we represent an equivalent FOM to other. | |
| virtual bool | identical (const DtBaseFomDesc &other) const |
| Returns true if we are identical FOMs including the handles. | |
| virtual void | setFilterByClass (const DtSubscriptionMap *map) |
| Set the current "Filter-By-Class" Map. | |
| virtual void | setFilterAllObjectClasses () |
| Filter all object. | |
| virtual void | setFilterNoObjectClasses () |
| Filter no objects. | |
| virtual void | setFilterAllInteractionClasses () |
| Filter all interactions. | |
| virtual void | setFilterNoInteractionClasses () |
| Filter no interactions. | |
| virtual void | empty () |
| Reset the current data (note: erases everything!) | |
| virtual void | setObjectClassHeartbeatTime (const DtString &className, double time, bool includeSubclasses=false) |
| Set the heartbeat period for the specified object class. | |
| virtual double | objectClassHeartbeatTime (const DtString &className, bool *isSet=0) const |
| Return the heartbeat period for the specified object class If isSet is non-null, it is set true if a time is specified and false otherwise. | |
| virtual bool | objectClassHeartbeatInheritable (const DtString &className) const |
| Return whether the heartbeat period for the specified class is inheritable. | |
| objectIterator | obj_begin () |
| Get the iterator to the first object class. | |
| const_objectIterator | obj_begin () const |
| Get the iterator to the first object class. | |
| objectIterator | obj_end () |
| Get the iterator beyond the last object class. | |
| const_objectIterator | obj_end () const |
| Get the iterator beyond the last object class. | |
| interactionIterator | inter_begin () |
| Get the iterator to the first interaction class. | |
| const_interactionIterator | inter_begin () const |
| Get the iterator to the first interaction class. | |
| interactionIterator | inter_end () |
| Get the iterator beyond the last interaction class. | |
| const_interactionIterator | inter_end () const |
| Get the iterator beyond the last interaction class. | |
| virtual DtBaseObjClassDesc * | objDesc (unsigned int hand) |
| Return the class descriptor for an object class handle. | |
| virtual const DtBaseObjClassDesc * | objDesc (unsigned int hand) const |
| Return the class descriptor for an object class handle. | |
| virtual DtBaseObjClassDesc * | objDesc (const DtString &_name) |
| Return the class descriptor for an object class name. | |
| virtual const DtBaseObjClassDesc * | objDesc (const DtString &_name) const |
| Return the class descriptor for an object class name. | |
| virtual DtBaseInterClassDesc * | interDesc (unsigned int hand) |
| Return the class descriptor for an interaction class handle. | |
|
virtual const DtBaseInterClassDesc * | interDesc (unsigned int hand) const |
| Return the class descriptor for an interaction class handle. | |
| virtual DtBaseInterClassDesc * | interDesc (const DtString &_name) |
| Return the class descriptor for an interaction class name. | |
|
virtual const DtBaseInterClassDesc * | interDesc (const DtString &_name) const |
| Return the class descriptor for an interaction class name. | |
| virtual void | initObjClasses () |
| These functions complete the initialization of the object and interaction classes; i.e., they effect the proper referencing of a base class inside an object or interaction class. | |
| virtual void | initIntClasses () |
| These functions complete the initialization of the object and interaction classes; i.e., they effect the proper referencing of a base class inside an object or interaction class. | |
Protected Types | |
|
typedef DtMultiKeyMap < DtString, DtLgrHlaHandle, DtBaseObjClassDesc * > | ObjectMap |
|
typedef DtMultiKeyMap < DtString, DtLgrHlaHandle, DtBaseInterClassDesc * > | InteractionMap |
Protected Member Functions | |
| bool | processCommand (const char *command, char *tkn, const char *sep) |
| Process command while reading file. | |
| virtual void | deleteObjClasses () |
| Delete all internal object class information. | |
| virtual void | deleteIntClasses () |
| Delete all internal interaction class information. | |
| void | resetAll () |
| Delete all internal class information. | |
| void | initFromSource (const DtBaseFomDesc &src) |
| to duplicate fom description. | |
| int | unserialize (const char *bfr) |
| Deserialize from buffer. | |
Protected Attributes | |
| ObjectMap | myObjectLookupMap |
| InteractionMap | myInteractionLookupMap |
| std::vector< DtBaseObjClassDesc * > | myObjectClasses |
|
std::vector < DtBaseInterClassDesc * > | myInteractionClasses |
|
std::map< DtString, DtLgrSimDriver::HeartbeatTimeRecord > | myHeartbeatTimes |
Static Protected Attributes | |
| static int | theHashSize |
class DtBaseFomDesc:
Instances of DtBaseFomDesc provide mappings between class names and handles in HLA
| virtual MAKLogger::DtBaseFomDesc::~DtBaseFomDesc | ( | ) | [virtual] |
Virtual Constructor.
Virtual copy and assignment operator.
| virtual void MAKLogger::DtBaseFomDesc::initIntClasses | ( | ) | [virtual] |
These functions complete the initialization of the object and interaction classes; i.e., they effect the proper referencing of a base class inside an object or interaction class.
Call these functions when the fom object contains all of its object/interaction classes
| virtual void MAKLogger::DtBaseFomDesc::initObjClasses | ( | ) | [virtual] |
These functions complete the initialization of the object and interaction classes; i.e., they effect the proper referencing of a base class inside an object or interaction class.
Call these functions when the fom object contains all of its object/interaction classes