VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stateEncoder.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
9 
10 #ifndef stateEncoder_H_
11 #define stateEncoder_H_
12 
13 #if DtDIS
14 
15 #include <vlutil/vlMachineTypes.h>
16 #include <vl/pduEncoder.h>
17 
18 class DtEntityIdentifier;
19 class DtPdu;
20 class DtStateRepository;
21 
22 #define DtCLONE_ENCODER(encoderClass) \
23  virtual DtPduEncoder* clone() const \
24 { \
25  return new encoderClass(*this); \
26 }
27 
29 class DT_DLL_VL DtStateEncoder : public DtPduEncoder
30 {
31 public:
33  DtStateEncoder();
34 
36  virtual ~DtStateEncoder();
37 
39  DtStateEncoder(const DtStateEncoder& orig);
40 
42  DtStateEncoder& operator=(const DtStateEncoder& orig);
43 
45  void setSendNeeded();
46 
49  virtual DtPduEncoder* clone() const = 0;
50 
52  virtual void encode(DtPdu * pdu);
53 
56  virtual void fillOutAttributeRecords(
57  const DtStateRepository& stateRep,
58  DtPduWithAttributeRecordSets* pdu,
59  const DtEntityIdentifier& id, bool clearBeforeAdding = true );
60 
63  virtual bool sendNeededAttributeRecords( const DtStateRepository& stateRep,
64  const DtStateRepository& asSeenByRemote) const;
65 
66 protected:
67  bool myForceSendNeeded;
68 };
69 
70 #endif
71 #endif

Document ID: Generated on Tue Mar 1 02:56:17 EST 2016 from SVN revision 162687
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)