18 #ifndef __emsg_h_included 19 #define __emsg_h_included 50 virtual Void
serialize(pVoid pBuffer, ULong &nOffset);
54 virtual Void
unserialize(pVoid pBuffer, ULong &nOffset);
61 length +=
sizeof(Bool);
68 length +=
sizeof(Char);
75 length +=
sizeof(UChar);
82 length +=
sizeof(Short);
89 length +=
sizeof(UShort);
96 length +=
sizeof(Long);
103 length +=
sizeof(ULong);
110 length +=
sizeof(LongLong);
117 length +=
sizeof(ULongLong);
124 length +=
sizeof(Float);
131 length +=
sizeof(Double);
138 length += (
sizeof(UShort) + (UShort)strlen(val));
152 length +=
sizeof(LongLong);
153 length +=
sizeof(LongLong);
160 Void
pack(Bool val, pVoid pBuffer, ULong &nOffset);
165 Void
pack(Char val, pVoid pBuffer, ULong &nOffset);
170 Void
pack(UChar val, pVoid pBuffer, ULong &nOffset);
175 Void
pack(Short val, pVoid pBuffer, ULong &nOffset);
180 Void
pack(UShort val, pVoid pBuffer, ULong &nOffset);
185 Void
pack(Long val, pVoid pBuffer, ULong &nOffset);
190 Void
pack(ULong val, pVoid pBuffer, ULong &nOffset);
195 Void
pack(LongLong val, pVoid pBuffer, ULong &nOffset);
200 Void
pack(ULongLong val, pVoid pBuffer, ULong &nOffset);
205 Void
pack(Float val, pVoid pBuffer, ULong &nOffset);
210 Void
pack(Double val, pVoid pBuffer, ULong &nOffset);
215 Void
pack(cpStr val, pVoid pBuffer, ULong &nOffset);
220 Void
pack(
ETimer &val, pVoid pBuffer, ULong &nOffset);
225 Void
pack(
ETime &val, pVoid pBuffer, ULong &nOffset);
230 Void
pack(
EString &val, pVoid pBuffer, ULong &nOffset);
236 Void
unpack(Bool &val, pVoid pBuffer, ULong &nOffset);
241 Void
unpack(Char &val, pVoid pBuffer, ULong &nOffset);
246 Void
unpack(UChar &val, pVoid pBuffer, ULong &nOffset);
251 Void
unpack(Short &val, pVoid pBuffer, ULong &nOffset);
256 Void
unpack(UShort &val, pVoid pBuffer, ULong &nOffset);
261 Void
unpack(Long &val, pVoid pBuffer, ULong &nOffset);
266 Void
unpack(ULong &val, pVoid pBuffer, ULong &nOffset);
271 Void
unpack(LongLong &val, pVoid pBuffer, ULong &nOffset);
276 Void
unpack(ULongLong &val, pVoid pBuffer, ULong &nOffset);
281 Void
unpack(Float &val, pVoid pBuffer, ULong &nOffset);
286 Void
unpack(Double &val, pVoid pBuffer, ULong &nOffset);
291 Void
unpack(pStr val, pVoid pBuffer, ULong &nOffset);
296 Void
unpack(
ETimer &val, pVoid pBuffer, ULong &nOffset);
301 Void
unpack(
ETime &val, pVoid pBuffer, ULong &nOffset);
343 ULong vectorLength = m_list.size();
346 for (ULong i = 0; i < vectorLength; i++)
357 ULong vectorLength = m_list.size();
359 pack(vectorLength, pBuffer, nOffset);
360 for (ULong i = 0; i < vectorLength; i++)
371 unpack(vectorLength, Buffer, nOffset);
373 for (ULong i = 0; i < vectorLength; i++)
376 val.unserialize(Buffer, nOffset);
377 m_list.push_back(val);
384 #endif // #ifndef __emsg_h_included virtual Void getLength(ULong &length)
Calculates the packed length of a message.
Definition: emsg.cpp:23
virtual Void serialize(pVoid pBuffer, ULong &nOffset)
Serializes (packs) a message.
Definition: emsg.cpp:27
Void elementLength(Long val, ULong &length)
Adds the length of a Bool value to the message length.
Definition: emsg.h:94
Macros for various standard C library functions and standard includes.
Void elementLength(Float val, ULong &length)
Adds the length of a Bool value to the message length.
Definition: emsg.h:122
Void elementLength(ULong val, ULong &length)
Adds the length of a Bool value to the message length.
Definition: emsg.h:101
Void unpackVector(pVoid Buffer, ULong &nOffset)
Unpacks a vector.
Definition: emsg.h:367
Void packVector(pVoid pBuffer, ULong &nOffset)
Packs the vector.
Definition: emsg.h:355
~EMessageVector()
Class destructor.
Definition: emsg.h:327
Void pack(Bool val, pVoid pBuffer, ULong &nOffset)
Packs the Bool value.
Definition: emsg.cpp:35
Void elementLength(LongLong val, ULong &length)
Adds the length of a Bool value to the message length.
Definition: emsg.h:108
virtual Void unserialize(pVoid pBuffer, ULong &nOffset)
Unserializes (unpacks) a message.
Definition: emsg.cpp:31
Void unpack(Bool &val, pVoid pBuffer, ULong &nOffset)
Unpacks a Bool value.
Definition: emsg.cpp:134
Implements a stopwatch style timer.
Definition: etimer.h:26
Provides class for manipulating time of day values.
Void elementLength(cpStr val, ULong &length)
Adds the length of a Bool value to the message length.
Definition: emsg.h:136
A vector of fields.
Definition: emsg.h:311
Void elementLength(ULongLong val, ULong &length)
Adds the length of a Bool value to the message length.
Definition: emsg.h:115
Void elementLength(Bool val, ULong &length)
Adds the length of a Bool value to the message length.
Definition: emsg.h:59
Definition: efdjson.cpp:77
Class for manipulating date and time of day values.
Definition: etime.h:199
EMessageVector()
Default constructor.
Definition: emsg.h:315
Void vectorLength(ULong &length)
Calcuates the packed length of the vector.
Definition: emsg.h:340
Void elementLength(UChar val, ULong &length)
Adds the length of a Bool value to the message length.
Definition: emsg.h:73
vector< T > & getList()
Retrieves the message vector.
Definition: emsg.h:333
EMessageVector(EMessageVector const &val)
Copy constructor.
Definition: emsg.h:319
Void elementLength(ETime &val, ULong &length)
Adds the length of a Bool value to the message length.
Definition: emsg.h:150
Void elementLength(UShort val, ULong &length)
Adds the length of a Bool value to the message length.
Definition: emsg.h:87
The message queue base class.
Definition: eqbase.h:120
EMessage()
Default constructor.
Definition: emsg.h:35
Void elementLength(ETimer &val, ULong &length)
Adds the length of a Bool value to the message length.
Definition: emsg.h:143
Void elementLength(Short val, ULong &length)
Adds the length of a Bool value to the message length.
Definition: emsg.h:80
Void elementLength(Double val, ULong &length)
Adds the length of a Bool value to the message length.
Definition: emsg.h:129
~EMessage()
Class destructor.
Definition: emsg.h:40
Void elementLength(Char val, ULong &length)
Adds the length of a Bool value to the message length.
Definition: emsg.h:66
The message queue base message class.
Definition: emsg.h:29
String class.
Definition: estring.h:31
long long int epctime_t
time typedef
Definition: ebase.h:34