VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtAttributeRecordSet Class Reference
+ Inheritance diagram for DtAttributeRecordSet:
+ Collaboration diagram for DtAttributeRecordSet:

Public Member Functions

 DtAttributeRecordSet ()
 Constructor Entity Identifier will have the invalid value of NO_SITE, NO_APPLIC and NO_REF_NUMBER.
 DtAttributeRecordSet (const DtEntityIdentifier &entityId)
 Constructor.
 DtAttributeRecordSet (const DtAttributeRecordSet &orig)
 Copy Constructor.
virtual ~DtAttributeRecordSet ()
 Destructor.
virtual void setEntityObjectId (const DtEntityIdentifier &id)
 Set the Entity/Object ID.
virtual const DtEntityIdentifierentityObjectId () const
 Returns the Entity/Object ID.
bool operator< (const DtAttributeRecordSet &rightOperand) const
 Less than operator used for ordering in STL containers.
virtual unsigned int netSize () const
 Used to obtain the netsize for DIS PDUs.
- Public Member Functions inherited from DtStandardVariableRecordSet
 DtStandardVariableRecordSet ()
 Constructor.
 DtStandardVariableRecordSet (const DtStandardVariableRecordSet &orig)
 Copy Constructor.
virtual ~DtStandardVariableRecordSet ()
 Destructor.
virtual
DtStandardVariableRecordSet
operator= (const DtStandardVariableRecordSet &rhs)
 Assignment operator.
virtual unsigned int numberOfRecords () const
 Returns number of records.
virtual void printRecords () const
 Prints the data to DtInfo.
virtual void printRecordsToStream (std::ostream &stream) const
 Prints the data to the specified stream.
virtual void addRecord (std::auto_ptr< DtStandardVariableRecord > record)
 Adds a record.
virtual void addRecords (const DtStandardVariableRecordPtrVector &records)
 Adds the given records.
virtual void removeRecordByIndex (unsigned int index)
 Remove the record at the given index.
virtual int removeRecordByType (unsigned int recordType, bool removeAll=true)
 Remove and discard the first record of the given record type (if there is one) or all them.
virtual DtStandardVariableRecordrecordByIndex (unsigned int index) const
 Returns the record with the given index.
virtual DtStandardVariableRecordrecordByType (unsigned int recordType) const
 Returns the record with the given type (first one if more than one).
virtual const
DtStandardVariableRecordPtrVector
records () const
 Returns the vector of records.
virtual
DtStandardVariableRecordPtrVector
getRecords (unsigned int recordType, DtStandardVariableRecordPtrVector &recordsOfType) const
 Get the vector of records of the given type Any changes to these records will modify the records in the recordSet.
virtual
DtStandardVariableRecordPtrVector
getRecords (DtStandardVariableRecordPtrVector &records) const
 Get the vector of records Any changes to this record will modify the record in the recordSet.
virtual void clearRecords ()
 Clear all records.
virtual std::vector< unsigned int > recordTypes () const
 Returns a vector of all the recordTypes.

Protected Attributes

DtEntityIdentifier myEntityIdentifier
 The Entity/Object ID.
- Protected Attributes inherited from DtStandardVariableRecordSet
DtStandardVariableRecordPtrVector myRecordsVector
DtStandardVariableRecordPtrVectorByType myRecordsByType

Additional Inherited Members

- Static Public Member Functions inherited from DtStandardVariableRecordSet
static const
DtStandardVariableRecordPtrVector
emptyRecordVector ()
 Return an empty records vector.
static void setMapByType (bool doMap)
 Set if records should be mapped by type or just kept in a simple vector.
static bool mapByType ()
 Get whether records are mapped by type or just kept in a simple vector.
- Protected Member Functions inherited from DtStandardVariableRecordSet
virtual void removeRecordFromMap (DtStandardVariableRecord *record)
 Remove the given record from the mapped type vector. Removes the type vector if it becomes empty.
- Static Protected Attributes inherited from DtStandardVariableRecordSet
static const
DtStandardVariableRecordPtrVector 
theEmptyRecordsVector
static bool theMapByType

Constructor & Destructor Documentation

DtAttributeRecordSet::DtAttributeRecordSet ( )

Constructor Entity Identifier will have the invalid value of NO_SITE, NO_APPLIC and NO_REF_NUMBER.

This is only legal for special cases where the PDU already has a Standard Record Set inside it (new DIS7 PDUs)

DtAttributeRecordSet::DtAttributeRecordSet ( const DtEntityIdentifier entityId)

Constructor.

DtAttributeRecordSet::DtAttributeRecordSet ( const DtAttributeRecordSet orig)

Copy Constructor.

virtual DtAttributeRecordSet::~DtAttributeRecordSet ( )
virtual

Destructor.

Member Function Documentation

virtual const DtEntityIdentifier& DtAttributeRecordSet::entityObjectId ( ) const
virtual

Returns the Entity/Object ID.

virtual unsigned int DtAttributeRecordSet::netSize ( ) const
virtual

Used to obtain the netsize for DIS PDUs.

Reimplemented from DtStandardVariableRecordSet.

bool DtAttributeRecordSet::operator< ( const DtAttributeRecordSet rightOperand) const

Less than operator used for ordering in STL containers.

virtual void DtAttributeRecordSet::setEntityObjectId ( const DtEntityIdentifier id)
virtual

Set the Entity/Object ID.

Member Data Documentation

DtEntityIdentifier DtAttributeRecordSet::myEntityIdentifier
protected

The Entity/Object ID.


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

Document ID: Generated on Mon Jun 22 21:18:40 EDT 2020 from SVN revision 213785
Copyright © 2005-2018 MAK Technologies. All Rights Reserved (www.mak.com)