VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes
DtUuidRecord Class Reference

Variable record for sending a single Uuid and used for UniqueID record and Source Unit Record. More...

+ Inheritance diagram for DtUuidRecord:
+ Collaboration diagram for DtUuidRecord:

Public Member Functions

 DtUuidRecord ()
 Constructor. More...
 
 DtUuidRecord (unsigned int dataType)
 Constructor with record type specified. More...
 
 DtUuidRecord (const DtUuidRecord &orig)
 Copy Constructor. More...
 
 DtUuidRecord (void *netBuffer, unsigned int size)
 Net Constructor. More...
 
virtual ~DtUuidRecord ()
 Destructor. More...
 
virtual bool operator== (const DtUuidRecord &other)
 Equals operator. More...
 
virtual bool operator== (const DtStandardVariableRecord &other)
 Equals operator. More...
 
virtual void printData () const
 Prints the data to DtInfo. More...
 
virtual void printDataToStream (std::ostream &stream) const
 Prints the data to the specified stream. More...
 
virtual void writeRecord (void *addr) const
 
virtual void setFromNet (const void *netRecord, unsigned int length, DtStandardVariableRetCode *retCode=NULL)
 Sets the record from Network Representation from the given location. More...
 
virtual unsigned unpaddedNetsize () const
 This is the network size of the record without padding. More...
 
virtual unsigned int netSize ()
 Returns the size of the network representation (including padding bytes) More...
 
virtual DtStandardVariableRecordclone () const
 Clone. More...
 
virtual unsigned int recordType () const
 Get/Set Record Type. More...
 
virtual void setRecordType (unsigned int recordType)
 Get/Set Record Type. More...
 
virtual unsigned int recordLength () const
 Get/Set Record Length. More...
 
virtual void setRecordLength (unsigned int recordLength)
 Must include size of record header and padding to 8 bytes. More...
 
virtual const DtVrlUuiduuid () const
 Get/Set UUID. More...
 
virtual void setUuid (DtVrlUuid uuid)
 Get/Set UUID. More...
 
- Public Member Functions inherited from DtStandardVariableRecord
 DtStandardVariableRecord ()
 Constructor. More...
 
virtual ~DtStandardVariableRecord ()
 Destructor. More...
 
virtual void setOriginatingSimulationAddress (const DtSimulationAddress &)
 
virtual const DtSimulationAddressoriginatingSimulationAddress () const
 

Static Public Member Functions

static DtStandardVariableRecordcreate (void *addr, unsigned int length)
 Creator of an unknown record for registering in a factory. More...
 
static unsigned int recordTypeToUseUuidRecord ()
 Return the DI-Guy Action record type for uuid. More...
 
static unsigned int recordTypeToUseSourceUnitRecord ()
 Return the DI-Guy Action record type for source unit. More...
 
static void setRecordTypeToUse (unsigned int typeToUse)
 Set the record type to use. More...
 

Protected Attributes

DtVrlUuid myVrlUuid
 
DtNetUuidRecord myNetUuidRecord
 
- Protected Attributes inherited from DtStandardVariableRecord
DtSimulationAddress myOriginatingSimulationAddress
 

Static Protected Attributes

static const unsigned int theMinimumSize
 

Detailed Description

Variable record for sending a single Uuid and used for UniqueID record and Source Unit Record.

Constructor & Destructor Documentation

DtUuidRecord::DtUuidRecord ( )

Constructor.

DtUuidRecord::DtUuidRecord ( unsigned int  dataType)

Constructor with record type specified.

DtUuidRecord::DtUuidRecord ( const DtUuidRecord orig)

Copy Constructor.

DtUuidRecord::DtUuidRecord ( void *  netBuffer,
unsigned int  size 
)

Net Constructor.

virtual DtUuidRecord::~DtUuidRecord ( )
virtual

Destructor.

Member Function Documentation

virtual DtStandardVariableRecord* DtUuidRecord::clone ( ) const
virtual

Clone.

Implements DtStandardVariableRecord.

static DtStandardVariableRecord* DtUuidRecord::create ( void *  addr,
unsigned int  length 
)
static

Creator of an unknown record for registering in a factory.

virtual unsigned int DtUuidRecord::netSize ( )
virtual

Returns the size of the network representation (including padding bytes)

Reimplemented from DtStandardVariableRecord.

virtual bool DtUuidRecord::operator== ( const DtUuidRecord other)
virtual

Equals operator.

virtual bool DtUuidRecord::operator== ( const DtStandardVariableRecord other)
virtual

Equals operator.

Implements DtStandardVariableRecord.

virtual void DtUuidRecord::printData ( ) const
virtual

Prints the data to DtInfo.

Reimplemented from DtStandardVariableRecord.

virtual void DtUuidRecord::printDataToStream ( std::ostream &  stream) const
virtual

Prints the data to the specified stream.

Implements DtStandardVariableRecord.

virtual unsigned int DtUuidRecord::recordLength ( ) const
virtual

Get/Set Record Length.

Implements DtStandardVariableRecord.

virtual unsigned int DtUuidRecord::recordType ( ) const
virtual

Get/Set Record Type.

Implements DtStandardVariableRecord.

static unsigned int DtUuidRecord::recordTypeToUseSourceUnitRecord ( )
static

Return the DI-Guy Action record type for source unit.

static unsigned int DtUuidRecord::recordTypeToUseUuidRecord ( )
static

Return the DI-Guy Action record type for uuid.

virtual void DtUuidRecord::setFromNet ( const void *  netRecord,
unsigned int  length,
DtStandardVariableRetCode retCode = NULL 
)
virtual

Sets the record from Network Representation from the given location.

Memory must exist for life of the variable record

Implements DtStandardVariableRecord.

virtual void DtUuidRecord::setRecordLength ( unsigned int  recordLength)
virtual

Must include size of record header and padding to 8 bytes.

Implements DtStandardVariableRecord.

virtual void DtUuidRecord::setRecordType ( unsigned int  recordType)
virtual

Get/Set Record Type.

Implements DtStandardVariableRecord.

static void DtUuidRecord::setRecordTypeToUse ( unsigned int  typeToUse)
static

Set the record type to use.

virtual void DtUuidRecord::setUuid ( DtVrlUuid  uuid)
virtual

Get/Set UUID.

virtual unsigned DtUuidRecord::unpaddedNetsize ( ) const
virtual

This is the network size of the record without padding.

Implements DtStandardVariableRecord.

virtual const DtVrlUuid& DtUuidRecord::uuid ( ) const
virtual

Get/Set UUID.

virtual void DtUuidRecord::writeRecord ( void *  addr) const
virtual

Member Data Documentation

DtNetUuidRecord DtUuidRecord::myNetUuidRecord
protected
DtVrlUuid DtUuidRecord::myVrlUuid
protected
const unsigned int DtUuidRecord::theMinimumSize
staticprotected

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

Document ID: Generated on Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)