31 size+=myName.size() < 128 ? 1 : 2;
35 for(
unsigned int i=0; i<myValue.size(); i++)
37 size+=
sizeof(
unsigned char);
48 for(
unsigned int i=0; i<myValue.size(); i++)
59 unsigned int myValue_count=reader.
readInt32();
60 for(
unsigned int i=0; i<myValue_count; i++)
64 myValue.push_back(abyte);
76 virtual std::vector<std::string> getObjectIdentifiers();
77 virtual void setObjectIdentifiers(std::vector<std::string> val);
79 virtual std::vector<AttributePair> getAttributes();
80 virtual void setAttributes(std::vector<AttributePair> val);
86 static DtMessage* decode(
unsigned char* buffer,
int length);
87 static std::string theMessageName();
Definition: managedInterface/messages/attributeChangeRequest.h:17
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< AttributePair > myAttributes
Definition: managedInterface/messages/attributeChangeRequest.h:93
void serialize(DtStreamWriter &writer)
Definition: managedInterface/messages/attributeChangeRequest.h:44
Definition: managedInterface/messages/attributeChangeRequest.h:22
Defines the base class for all messages that are sent to and from C#.
This is the DtMessage class.
Definition: message.h:20
std::string myName
Definition: managedInterface/messages/attributeChangeRequest.h:24
std::vector< unsigned char > myValue
Definition: managedInterface/messages/attributeChangeRequest.h:25
std::string readString()
value readers return a value and increment the current position in the byte stream based on the size ...
void writeString(const std::string &str)
value readers return a value and increment the current position in the byte stream based on the size ...
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
void deserialize(DtStreamReader &reader)
Definition: managedInterface/messages/attributeChangeRequest.h:56
Instances of DtStreamReader decode values from a byte array.
Definition: byteStream.h:31
static std::string theFullName
Definition: managedInterface/messages/attributeChangeRequest.h:90
virtual void serialize(DtStreamWriter &writer)
std::vector< std::string > myObjectIdentifiers
Definition: managedInterface/messages/attributeChangeRequest.h:92
int size()
Definition: managedInterface/messages/attributeChangeRequest.h:28
void writeUInt8(unsigned char num)
value readers return a value and increment the current position in the byte stream based on the size ...
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 ...