VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Static Protected Member Functions
DtExampleEmbeddedSystemEncoder Class Reference

Encoder class for example embedded system network communication. Handles conversion of repository data into network attribute messages.

Inheritance diagram for DtExampleEmbeddedSystemEncoder:
Inheritance graph
[legend]

Public Member Functions

 DtExampleEmbeddedSystemEncoder (DtExerciseConn *exConn, DtObjClassDesc *classDesc)
 
virtual ~DtExampleEmbeddedSystemEncoder ()
 
 DtExampleEmbeddedSystemEncoder (const DtExampleEmbeddedSystemEncoder &orig)
 
DtExampleEmbeddedSystemEncoder & operator= (const DtExampleEmbeddedSystemEncoder &orig)
 

Static Public Member Functions

static
DtExampleEmbeddedSystemEncoder * 
create (DtExerciseConn *exConn, DtObjClassDesc *classDesc)
 

Static Protected Member Functions

static bool needSystemId (const DtExampleEmbeddedSystemRepository &stateRep, const DtExampleEmbeddedSystemRepository &asSeenByRemote)
 
static bool needModelNumber (const DtExampleEmbeddedSystemRepository &stateRep, const DtExampleEmbeddedSystemRepository &asSeenByRemote)
 
static void encodeSystemId (const DtExampleEmbeddedSystemRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 
static void encodeModelNumber (const DtExampleEmbeddedSystemRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 

Constructor & Destructor Documentation

DtExampleEmbeddedSystemEncoder::DtExampleEmbeddedSystemEncoder ( DtExerciseConn *  exConn,
DtObjClassDesc *  classDesc 
)

Constructor for the embedded system encoder.

Parameters
exConnPointer to the exercise connection for network communication
classDescPointer to the object class description defining embedded system structure
virtual DtExampleEmbeddedSystemEncoder::~DtExampleEmbeddedSystemEncoder ( )
virtual

Virtual destructor for proper cleanup.

DtExampleEmbeddedSystemEncoder::DtExampleEmbeddedSystemEncoder ( const DtExampleEmbeddedSystemEncoder &  orig)

Copy constructor.

Parameters
origSource encoder to copy from

Member Function Documentation

DtExampleEmbeddedSystemEncoder& DtExampleEmbeddedSystemEncoder::operator= ( const DtExampleEmbeddedSystemEncoder &  orig)

Assignment operator.

Parameters
origSource encoder to copy from
Returns
Reference to this encoder
static DtExampleEmbeddedSystemEncoder* DtExampleEmbeddedSystemEncoder::create ( DtExerciseConn *  exConn,
DtObjClassDesc *  classDesc 
)
static

Factory method for creating encoder instances.

Parameters
exConnPointer to the exercise connection for network communication
classDescPointer to the object class description for embedded systems
Returns
Pointer to newly created encoder instance
static bool DtExampleEmbeddedSystemEncoder::needSystemId ( const DtExampleEmbeddedSystemRepository &  stateRep,
const DtExampleEmbeddedSystemRepository &  asSeenByRemote 
)
staticprotected

Determines if SystemId attribute needs to be sent to network.

Parameters
stateRepCurrent state repository
asSeenByRemoteRemote view of the state
Returns
true if SystemId needs to be transmitted, false otherwise
static bool DtExampleEmbeddedSystemEncoder::needModelNumber ( const DtExampleEmbeddedSystemRepository &  stateRep,
const DtExampleEmbeddedSystemRepository &  asSeenByRemote 
)
staticprotected

Determines if ModelNumber attribute needs to be sent to network.

Parameters
stateRepCurrent state repository
asSeenByRemoteRemote view of the state
Returns
true if ModelNumber needs to be transmitted, false otherwise
static void DtExampleEmbeddedSystemEncoder::encodeSystemId ( const DtExampleEmbeddedSystemRepository &  rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes SystemId from repository into network attributes.

Parameters
repRepository containing the SystemId value to encode
attrsAttribute set to encode the value into
attrHandleHandle identifying the SystemId attribute
static void DtExampleEmbeddedSystemEncoder::encodeModelNumber ( const DtExampleEmbeddedSystemRepository &  rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes ModelNumber from repository into network attributes.

Parameters
repRepository containing the ModelNumber value to encode
attrsAttribute set to encode the value into
attrHandleHandle identifying the ModelNumber attribute

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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)