![]() |
MAK Data Logger API Documentation for HLA
|
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 bool | getObjectClassHeartbeatTime (const DtString &className, double &heartbeat) const |
| Get the heartbeat period for the specified object class Return bool: heartbeat of the specified class was found? | |
| virtual bool | objectClassHeartbeatInheritable (const DtString &className) const |
| Return whether the heartbeat period for the specified class is inheritable. | |
| virtual void | setObjectClassTimeoutTime (const DtString &className, double time, bool includeSubclasses=false) |
| Set the timeout period for the specified object class. | |
| virtual bool | getObjectClassTimeoutTime (const DtString &className, double &timeout) const |
| Get the timeout period for the specified object class Return bool: timeout of the specified class was found? | |
| virtual bool | objectClassTimeoutInheritable (const DtString &className) const |
| Return whether the timeout 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 |
| std::map< DtString, DtLgrSimDriver::HeartbeatTimeRecord > | myTimeoutTimes |
Static Protected Attributes | |
| static int | theHashSize |
class DtBaseFomDesc:
Instances of DtBaseFomDesc provide mappings between class names and handles in HLA
| typedef std::vector<DtBaseInterClassDesc*>::const_iterator MAKLogger::DtBaseFomDesc::const_interactionIterator |
| typedef std::vector<DtBaseObjClassDesc*>::const_iterator MAKLogger::DtBaseFomDesc::const_objectIterator |
| typedef std::vector<DtBaseInterClassDesc*>::iterator MAKLogger::DtBaseFomDesc::interactionIterator |
|
protected |
| typedef std::vector<DtBaseObjClassDesc*>::iterator MAKLogger::DtBaseFomDesc::objectIterator |
|
protected |
|
virtual |
Virtual Constructor.
Virtual copy and assignment operator.
|
virtual |
Reimplemented in MAKLogger::DtLgrOnlineFomDesc.
|
virtual |
Reimplemented in MAKLogger::DtLgrOnlineFomDesc.
|
inline |
Get the total number of classes in the FOM (object and interaction)
References interactionClassCount(), and objectClassCount().
|
protectedvirtual |
Delete all internal interaction class information.
Reimplemented in MAKLogger::DtLgrOnlineFomDesc.
|
protectedvirtual |
Delete all internal object class information.
Reimplemented in MAKLogger::DtLgrOnlineFomDesc.
|
virtual |
Reset the current data (note: erases everything!)
|
virtual |
Returns true if we represent an equivalent FOM to other.
|
virtual |
Get the heartbeat period for the specified object class Return bool: heartbeat of the specified class was found?
|
virtual |
Get the timeout period for the specified object class Return bool: timeout of the specified class was found?
|
virtual |
Returns true if we are identical FOMs including the handles.
|
protected |
to duplicate fom description.
|
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 |
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
| interactionIterator MAKLogger::DtBaseFomDesc::inter_begin | ( | ) |
Get the iterator to the first interaction class.
| const_interactionIterator MAKLogger::DtBaseFomDesc::inter_begin | ( | ) | const |
Get the iterator to the first interaction class.
| interactionIterator MAKLogger::DtBaseFomDesc::inter_end | ( | ) |
Get the iterator beyond the last interaction class.
| const_interactionIterator MAKLogger::DtBaseFomDesc::inter_end | ( | ) | const |
Get the iterator beyond the last interaction class.
|
inline |
Get the number of interaction classes in the FOM.
References myInteractionClasses.
Referenced by count().
|
virtual |
Return the class descriptor for an interaction class handle.
|
virtual |
Return the class descriptor for an interaction class handle.
|
virtual |
Return the class descriptor for an interaction class name.
|
virtual |
Return the class descriptor for an interaction class name.
| objectIterator MAKLogger::DtBaseFomDesc::obj_begin | ( | ) |
Get the iterator to the first object class.
| const_objectIterator MAKLogger::DtBaseFomDesc::obj_begin | ( | ) | const |
Get the iterator to the first object class.
| objectIterator MAKLogger::DtBaseFomDesc::obj_end | ( | ) |
Get the iterator beyond the last object class.
| const_objectIterator MAKLogger::DtBaseFomDesc::obj_end | ( | ) | const |
Get the iterator beyond the last object class.
|
virtual |
Return the class descriptor for an object class handle.
|
virtual |
Return the class descriptor for an object class handle.
|
virtual |
Return the class descriptor for an object class name.
|
virtual |
Return the class descriptor for an object class name.
|
inline |
|
virtual |
Return whether the heartbeat period for the specified class is inheritable.
|
virtual |
Return whether the timeout period for the specified class is inheritable.
|
protected |
Process command while reading file.
|
virtual |
Initialize by reading FOM from a logger file.
|
virtual |
|
protected |
Delete all internal class information.
|
virtual |
Obtain a copy of the current fom in serialized form.
|
virtual |
Filter all interactions.
|
virtual |
Filter all object.
|
virtual |
Set the current "Filter-By-Class" Map.
|
virtual |
Filter no interactions.
|
virtual |
Filter no objects.
|
virtual |
Initialize by reading FOM from a "serialized-form" buffer.
|
virtual |
Set the heartbeat period for the specified object class.
|
virtual |
Set the timeout period for the specified object class.
|
protected |
Deserialize from buffer.
|
virtual |
Write contents to a logger file.
|
virtual |
|
protected |
|
protected |
Referenced by interactionClassCount().
|
protected |
|
protected |
Referenced by objectClassCount().
|
protected |
|
protected |
|
staticprotected |