VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
exampleEmbeddedSystemPublisher.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/objectPublisherHLA.h>
9 
14 
18 {
19 public:
20 
22  typedef DtExampleEmbeddedSystemRepository* (*DtStateRepCreator)();
23 
25  typedef DtExampleEmbeddedSystemDecoder* (*DtDecoderCreator)(DtExerciseConn* exConn, DtObjClassDesc* classDesc);
26 
28  typedef DtExampleEmbeddedSystemEncoder* (*DtEncoderCreator)(DtExerciseConn* exConn, DtObjClassDesc* classDesc);
29 
30 public:
31 
38  DtExampleEmbeddedSystemRepository *stateRepToUse,
39  DtExerciseConn* conn,
40  const char* name = 0,
41  const DtDDMRegionSet* regionSetToUse = 0);
42 
48  DtExerciseConn* conn,
49  const char* name = 0,
50  const DtDDMRegionSet* regionSetToUse = 0);
51 
58  RTI::ObjectClassHandle h,
59  DtExerciseConn* conn,
60  const char* name = 0,
61  const DtDDMRegionSet* regionSetToUse = 0);
62 
68  DtHlaObjectWithStateRep* obj,
69  DtExerciseConn* conn);
70 
73 
77 
81 
84  virtual const char* classToUse() const;
85 
86 public:
87 
92 
93 protected:
94 
100  const char* name = 0,
101  const DtDDMRegionSet* regionSetToUse = 0);
102 
105 
108  (const DtExampleEmbeddedSystemPublisher& orig);
109 
110 protected:
113 
116 
119 };
120 
125 {
126  return (DtExampleEmbeddedSystemRepository*) myStateRep;
127 }
128 
132 {
133  return (DtExampleEmbeddedSystemRepository*) myStateRep;
134 }
135 
136 
virtual DtExampleEmbeddedSystemRepository * exampleEmbeddedSystemRepository()
Returns pointer to the embedded system state repository.
Definition: exampleEmbeddedSystemPublisher.h:124
Definition: exampleEmbeddedSystemRepository.h:25
virtual const char * classToUse() const
Returns the name of the FOM object class to use.
DtExampleEmbeddedSystemEncoder *(* DtEncoderCreator)(DtExerciseConn *exConn, DtObjClassDesc *classDesc)
Function prototype for creating DtExampleEmbeddedSystemEncoder instances.
Definition: exampleEmbeddedSystemPublisher.h:28
virtual ~DtExampleEmbeddedSystemPublisher()
Virtual destructor for proper cleanup.
static DtStateRepCreator theStateRepCreator
Static creator function for state repositories.
Definition: exampleEmbeddedSystemPublisher.h:112
static DtEncoderCreator theEncoderCreator
Static creator function for encoders.
Definition: exampleEmbeddedSystemPublisher.h:115
static DtDecoderCreator theDecoderCreator
Static creator function for decoders.
Definition: exampleEmbeddedSystemPublisher.h:118
virtual DtExampleEmbeddedSystemRepository * eesr()
Synonym for exampleEmbeddedSystemRepository().
Definition: exampleEmbeddedSystemPublisher.h:131
DtExampleEmbeddedSystemPublisher(DtExampleEmbeddedSystemRepository *stateRepToUse, DtExerciseConn *conn, const char *name=0, const DtDDMRegionSet *regionSetToUse=0)
Constructor with existing state repository.
DtExampleEmbeddedSystemDecoder *(* DtDecoderCreator)(DtExerciseConn *exConn, DtObjClassDesc *classDesc)
Function prototype for creating DtExampleEmbeddedSystemDecoder instances.
Definition: exampleEmbeddedSystemPublisher.h:25
static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator)
Sets the function used for creating state repositories.
Decoder class for example embedded system network communication. Handles conversion of network attrib...
Definition: exampleEmbeddedSystemDecoder.h:16
Encoder class for example embedded system network communication. Handles conversion of repository dat...
Definition: exampleEmbeddedSystemEncoder.h:14
Publisher for example embedded system objects. Manages HLA object publication and state repository up...
Definition: exampleEmbeddedSystemPublisher.h:17
DtExampleEmbeddedSystemRepository *(* DtStateRepCreator)()
Function prototype for creating DtExampleEmbeddedSystemRepository instances.
Definition: exampleEmbeddedSystemPublisher.h:22

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)