VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
exampleEmbeddedSystemEncoder.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #pragma once
7 
8 #include <vl/baseEmbeddedSystemEncoder.h>
9 
11 
15 {
16 public:
17 
22  DtExerciseConn* exConn,
23  DtObjClassDesc* classDesc);
24 
27 
31 
36 
37 public:
38 
43  static DtExampleEmbeddedSystemEncoder* create(DtExerciseConn* exConn, DtObjClassDesc* classDesc);
44 
45 protected:
46 
51  static bool needSystemId(const DtExampleEmbeddedSystemRepository& stateRep,
52  const DtExampleEmbeddedSystemRepository& asSeenByRemote);
53 
58  static bool needModelNumber(const DtExampleEmbeddedSystemRepository& stateRep,
59  const DtExampleEmbeddedSystemRepository& asSeenByRemote);
60 
66  RTI::AttributeHandleValuePairSet* attrs, RTI::AttributeHandle attrHandle);
67 
73  RTI::AttributeHandleValuePairSet* attrs, RTI::AttributeHandle attrHandle);
74 };
75 
76 
Definition: exampleEmbeddedSystemRepository.h:25
static DtExampleEmbeddedSystemEncoder * create(DtExerciseConn *exConn, DtObjClassDesc *classDesc)
Factory method for creating encoder instances.
virtual ~DtExampleEmbeddedSystemEncoder()
Virtual destructor for proper cleanup.
static bool needSystemId(const DtExampleEmbeddedSystemRepository &stateRep, const DtExampleEmbeddedSystemRepository &asSeenByRemote)
Determines if SystemId attribute needs to be sent to network.
DtExampleEmbeddedSystemEncoder(DtExerciseConn *exConn, DtObjClassDesc *classDesc)
Constructor for the embedded system encoder.
static bool needModelNumber(const DtExampleEmbeddedSystemRepository &stateRep, const DtExampleEmbeddedSystemRepository &asSeenByRemote)
Determines if ModelNumber attribute needs to be sent to network.
static void encodeModelNumber(const DtExampleEmbeddedSystemRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
Encodes ModelNumber from repository into network attributes.
DtExampleEmbeddedSystemEncoder & operator=(const DtExampleEmbeddedSystemEncoder &orig)
Assignment operator.
Encoder class for example embedded system network communication. Handles conversion of repository dat...
Definition: exampleEmbeddedSystemEncoder.h:14
static void encodeSystemId(const DtExampleEmbeddedSystemRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
Encodes SystemId from repository into network attributes.

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)