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

Public Member Functions

 DtStandardVariableRecordSet ()
 Constructor.
virtual ~DtStandardVariableRecordSet ()
 Destructor.
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 removeRecord (unsigned int index)
 Removes a record.
virtual DtStandardVariableRecordrecord (unsigned int index) const
 Returns the record.
virtual const std::vector
< DtStandardVariableRecord * > & 
records () const
 Returns the vector of records.
virtual void clearRecords ()
 Clear all records.
virtual std::vector< unsigned int > recordTypes () const
 Returns a vector of all the recordTypes.
virtual unsigned int netSize () const
 Used to obtain the netsize for DIS PDUs.

Protected Attributes

std::vector
< DtStandardVariableRecord * > 
myRecords

Constructor & Destructor Documentation

DtStandardVariableRecordSet::DtStandardVariableRecordSet ( )

Constructor.

virtual DtStandardVariableRecordSet::~DtStandardVariableRecordSet ( )
virtual

Destructor.

Member Function Documentation

virtual void DtStandardVariableRecordSet::addRecord ( std::auto_ptr< DtStandardVariableRecord record)
virtual

Adds a record.

Also this increments the number of records

virtual void DtStandardVariableRecordSet::clearRecords ( )
virtual

Clear all records.

Also this sets number of records to 0

virtual unsigned int DtStandardVariableRecordSet::netSize ( ) const
virtual

Used to obtain the netsize for DIS PDUs.

Reimplemented in DtAttributeRecordSet.

virtual unsigned int DtStandardVariableRecordSet::numberOfRecords ( ) const
virtual

Returns number of records.

virtual void DtStandardVariableRecordSet::printRecords ( ) const
virtual

Prints the data to DtInfo.

virtual void DtStandardVariableRecordSet::printRecordsToStream ( std::ostream &  stream) const
virtual

Prints the data to the specified stream.

virtual DtStandardVariableRecord* DtStandardVariableRecordSet::record ( unsigned int  index) const
virtual

Returns the record.

Any changes to this record will modify the record in the recordSet. The recordType can be determined and then this can be casted to a specific record. Note the index must be between 0 and numberOfRecords - 1 If the index is not in this range, this will return 0

virtual const std::vector<DtStandardVariableRecord*>& DtStandardVariableRecordSet::records ( ) const
virtual

Returns the vector of records.

Any changes to these records will modify the records in the recordSet.

virtual std::vector<unsigned int> DtStandardVariableRecordSet::recordTypes ( ) const
virtual

Returns a vector of all the recordTypes.

Note the indices match that of records() Also if any records are malformed or NULL, then 0 is default value for record type.

virtual void DtStandardVariableRecordSet::removeRecord ( unsigned int  index)
virtual

Removes a record.

Also this decrements the number of records. Note the index must be between 0 and numberOfRecords - 1 If the index is not in this range, nothing will happen

Member Data Documentation

std::vector<DtStandardVariableRecord*> DtStandardVariableRecordSet::myRecords
protected

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

Document ID: Generated on Tue Mar 1 02:56:17 EST 2016 from SVN revision 162687
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)