1 #ifndef SERIALIZE_COMMANDS_H
2 #define SERIALIZE_COMMANDS_H
3 #include <sharedDefines.h>
4 #include <sharedSingleOrder.h>
8 namespace Serialization {
17 void serialize(
const UNSIGNED_LONG &val,
char *buf,
int &bytes);
26 void serialize(
const UNSIGNED_CHARACTER &val,
char *buf,
int &bytes);
35 void serialize(
const char &val,
char *buf,
int &bytes);
44 void serialize(
const UNSIGNED_INTEGER &val,
char *buf,
int &bytes);
53 void serialize(
const int &val,
char *buf,
int &bytes);
63 void serialize(
const UNSIGNED_SHORT &val,
char *buf,
int &bytes);
71 void serialize(
const short &val,
char *buf,
int &bytes);
79 void serialize(
const SIGNED_LONG &val,
char *buf,
int &bytes);
87 void serialize(
const std::string &val,
char *buf,
int &bytes);
97 void serialize(
const AccountDetail &accountDetails,
char* buf,
int &bytes);
106 void deSerialize(UNSIGNED_LONG &val,
const char *buf,
int &offset);
114 void deSerialize(UNSIGNED_CHARACTER &val,
const char *buf,
int &offset);
122 void deSerialize(
char &val,
const char *buf,
int &offset);
130 void deSerialize(UNSIGNED_INTEGER &val,
const char *buf,
int &offset);
138 void deSerialize(
int &val,
const char *buf,
int &offset);
146 void deSerialize(UNSIGNED_SHORT &val,
const char *buf,
int &offset);
154 void deSerialize(
short &val,
const char *buf,
int &offset);
162 void deSerialize(SIGNED_LONG &val,
const char *buf,
int &offset);
170 void deSerialize(std::string &val,
const char *buf,
int &offset);
178 void deSerialize(AccountDetail &accountDetails,
const char *buf,
int &offset);
187 void deserializeAccountDetails(AccountDetail &accountDetails,
const char* buf,
int &offset);
195 void serializeAccountDetails(AccountDetail &accountDetails,
char* buf,
int &bytes);