![]() |
VR-Forces Developer's Guide
|
Encoder class for example embedded system network communication. Handles conversion of repository data into network attribute messages.

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) |
| DtExampleEmbeddedSystemEncoder::DtExampleEmbeddedSystemEncoder | ( | DtExerciseConn * | exConn, |
| DtObjClassDesc * | classDesc | ||
| ) |
Constructor for the embedded system encoder.
| exConn | Pointer to the exercise connection for network communication |
| classDesc | Pointer to the object class description defining embedded system structure |
|
virtual |
Virtual destructor for proper cleanup.
| DtExampleEmbeddedSystemEncoder::DtExampleEmbeddedSystemEncoder | ( | const DtExampleEmbeddedSystemEncoder & | orig | ) |
Copy constructor.
| orig | Source encoder to copy from |
| DtExampleEmbeddedSystemEncoder& DtExampleEmbeddedSystemEncoder::operator= | ( | const DtExampleEmbeddedSystemEncoder & | orig | ) |
Assignment operator.
| orig | Source encoder to copy from |
|
static |
Factory method for creating encoder instances.
| exConn | Pointer to the exercise connection for network communication |
| classDesc | Pointer to the object class description for embedded systems |
|
staticprotected |
Determines if SystemId attribute needs to be sent to network.
| stateRep | Current state repository |
| asSeenByRemote | Remote view of the state |
|
staticprotected |
Determines if ModelNumber attribute needs to be sent to network.
| stateRep | Current state repository |
| asSeenByRemote | Remote view of the state |
|
staticprotected |
Encodes SystemId from repository into network attributes.
| rep | Repository containing the SystemId value to encode |
| attrs | Attribute set to encode the value into |
| attrHandle | Handle identifying the SystemId attribute |
|
staticprotected |
Encodes ModelNumber from repository into network attributes.
| rep | Repository containing the ModelNumber value to encode |
| attrs | Attribute set to encode the value into |
| attrHandle | Handle identifying the ModelNumber attribute |