API  Version 2.0.1
Low-Latency HFT API
 All Classes Functions Variables
serializeCommands.h
1 #ifndef SERIALIZE_COMMANDS_H
2 #define SERIALIZE_COMMANDS_H
3 #include <sharedDefines.h>
4 #include <sharedSingleOrder.h>
5 #include <string>
6 //extern "C"
7 namespace API2 {
8  namespace Serialization {
9 
17  void serialize(const UNSIGNED_LONG &val, char *buf, int &bytes);
18 
26  void serialize(const UNSIGNED_CHARACTER &val, char *buf, int &bytes);
27 
35  void serialize(const char &val, char *buf, int &bytes);
36 
44  void serialize(const UNSIGNED_INTEGER &val, char *buf, int &bytes);
45 
53  void serialize(const int &val, char *buf, int &bytes);
54 
55 
63  void serialize(const UNSIGNED_SHORT &val, char *buf, int &bytes);
64 
71  void serialize(const short &val, char *buf, int &bytes);
72 
79  void serialize(const SIGNED_LONG &val, char *buf, int &bytes);
80 
87  void serialize(const std::string &val, char *buf, int &bytes);
88 
89 
90 
97  void serialize(const AccountDetail &accountDetails, char* buf, int &bytes);
98 
99 
106  void deSerialize(UNSIGNED_LONG &val, const char *buf, int &offset);
107 
114  void deSerialize(UNSIGNED_CHARACTER &val, const char *buf, int &offset);
115 
122  void deSerialize(char &val, const char *buf, int &offset);
123 
130  void deSerialize(UNSIGNED_INTEGER &val, const char *buf, int &offset);
131 
138  void deSerialize(int &val, const char *buf, int &offset);
139 
146  void deSerialize(UNSIGNED_SHORT &val, const char *buf, int &offset);
147 
154  void deSerialize(short &val, const char *buf, int &offset);
155 
162  void deSerialize(SIGNED_LONG &val, const char *buf, int &offset);
163 
170  void deSerialize(std::string &val, const char *buf, int &offset);
171 
178  void deSerialize(AccountDetail &accountDetails, const char *buf, int &offset);
179 
180 
187  void deserializeAccountDetails(AccountDetail &accountDetails, const char* buf, int &offset);
188 
195  void serializeAccountDetails(AccountDetail &accountDetails, char* buf, int &bytes);
196 
197  }
198 }
199 #endif