34 for(
unsigned int i=0; i<myData.size(); i++)
36 size+=
sizeof(
unsigned char);
47 for(
unsigned int i=0; i<myData.size(); i++)
58 unsigned int myData_count=reader.
readInt32();
59 for(
unsigned int i=0; i<myData_count; i++)
63 myData.push_back(abyte);
106 virtual std::string getSenderId();
107 virtual void setSenderId(std::string val);
109 virtual std::string getReceiverId();
110 virtual void setReceiverId(std::string val);
112 virtual unsigned int getRequestId();
113 virtual void setRequestId(
unsigned int val);
115 virtual std::vector<FixedData> getFixedData();
116 virtual void setFixedData(std::vector<FixedData> val);
118 virtual std::vector<VariableData> getVariableData();
119 virtual void setVariableData(std::vector<VariableData> val);
125 static DtMessage* decode(
unsigned char* buffer,
int length);
126 static std::string theMessageName();
std::string mySenderId
Definition: managedInterface/messages/data.h:131
void serialize(DtStreamWriter &writer)
Definition: managedInterface/messages/data.h:43
unsigned char readUInt8()
value readers return a value and increment the current position in the byte stream based on the size ...
virtual int messageSize()
this function needs to be in each derived class for decoding
#define MANAGEDINTERFACE_DLL
Definition: plugin.h:15
std::vector< FixedData > myFixedData
Definition: managedInterface/messages/data.h:134
Definition: managedInterface/messages/data.h:23
Defines the base class for all messages that are sent to and from C#.
std::vector< VariableData > myVariableData
Definition: managedInterface/messages/data.h:135
This is the DtMessage class.
Definition: message.h:20
int myDatumId
Definition: managedInterface/messages/data.h:72
int size()
Definition: managedInterface/messages/data.h:76
std::string myReceiverId
Definition: managedInterface/messages/data.h:132
std::vector< unsigned char > myData
Definition: managedInterface/messages/data.h:26
static std::string theFullName
Definition: managedInterface/messages/data.h:129
unsigned int myRequestId
Definition: managedInterface/messages/data.h:133
void deserialize(DtStreamReader &reader)
Definition: managedInterface/messages/data.h:55
int readInt32()
value readers return a value and increment the current position in the byte stream based on the size ...
Instances of DtStreamWriter encode values into a byte array.
Definition: byteStream.h:74
int myData
Definition: managedInterface/messages/data.h:73
Instances of DtStreamReader decode values from a byte array.
Definition: byteStream.h:31
virtual void serialize(DtStreamWriter &writer)
Definition: managedInterface/messages/data.h:18
Definition: managedInterface/messages/data.h:70
int size()
Definition: managedInterface/messages/data.h:29
int myDatumId
Definition: managedInterface/messages/data.h:25
void serialize(DtStreamWriter &writer)
Definition: managedInterface/messages/data.h:85
void writeUInt8(unsigned char num)
value readers return a value and increment the current position in the byte stream based on the size ...
void deserialize(DtStreamReader &reader)
Definition: managedInterface/messages/data.h:92
virtual void deserialize(DtStreamReader &reader)
void writeInt32(int num)
value readers return a value and increment the current position in the byte stream based on the size ...