62 explicit Message(
size_t expectedMessageSize = DefaultExpectedMessageSize);
79 Message(
const char * type,
const Dictionary & dictionary,
size_t expectedMessageSize = DefaultExpectedMessageSize);
86 #ifdef ONIXS_FIXENGINE_CXX11 125 void senderCompId(
const std::string &);
133 void targetCompId(
const std::string &);
139 void * userData()
const;
142 void userData(
void * data);
157 void validate()
const;
195 char delimiter = 0x1,
208 char delimiter = 0x1,
217 toXml(
const std::string & indent =
" ",
const std::string & endOfLineDelimiter =
"\n")
const;
225 toXml(std::string & str,
const std::string & indent =
" ",
const std::string & endOfLineDelimiter =
"\n")
const;
232 toJson(
const std::string & indent =
" ",
const std::string & endOfLineDelimiter =
"\n")
const;
240 toJson(std::string & str,
const std::string & indent =
" ",
const std::string & endOfLineDelimiter =
"\n")
const;
243 void updateBodyLengthAndCheckSum();
251 #ifdef ONIXS_FIXENGINE_CXX11 261 void copyFields(
const Message &);
273 const char * rawMessage,
274 size_t rawMessageSize,
288 const char * rawMessage,
289 size_t rawMessageSize,
305 const char * rawMessage,
306 size_t rawMessageSize,
322 const char * rawMessage,
323 size_t rawMessageSize,
338 const char * rawMessage,
339 size_t rawMessageSize,
352 friend class MessageWrapper;
353 friend class MessageOperator;
359 virtual void userDataImpl(
void * data);
361 unsigned char impl_[6 *
sizeof(size_t)];
362 unsigned char allocator_[4 *
sizeof(size_t)];
364 static const size_t DefaultExpectedMessageSize = 10240;
366 void construct(
size_t expectedMessageSize = DefaultExpectedMessageSize);
378 toString(str, delimiter, flags);
ONIXS_FIXENGINE_API std::ostream & operator<<(std::ostream &os, const Group &group)
Stream output.
Encapsulates primary operations over the collection of FIX fields like a FIX message and a repeating ...
#define ONIXS_FIXENGINE_NOTHROW
unsigned MessageStringingFlags
The collection of message stringing flags.
#define ONIXS_FIXENGINE_API
Implements a concept of a read-only reference to a FIX field value.
std::string toString(char delimiter=0x1, MessageStringingFlags flags=MessageStringingFlag::IncludeFieldTagNumber) const
Returns the string representation of the message using the given delimiter and additional control fla...
Field tag numbers are included during the serialization.
unsigned MessageValidationFlags
The collection of message validation flags.
Identifies the FIX messages dictionary.
virtual void clear()=0
Clears the storage.
bool operator==(const FieldValueRef &ref, const std::string &str)
The helper class to represent a raw FIX message.
unsigned int SequenceNumber
Alias for the sequence number.
Encapsulates operations over a FIX Message.
unsigned MessageParsingFlags
The collection of message parsing flags.
bool operator!=(const FieldValueRef &ref, const std::string &str)