65 explicit Message(
size_t expectedMessageSize = DefaultExpectedMessageSize);
82 Message(
const char * type,
const Dictionary & dictionary,
size_t expectedMessageSize = DefaultExpectedMessageSize);
89 #ifdef ONIXS_FIXENGINE_CXX11 128 void senderCompId(
const std::string &);
136 void targetCompId(
const std::string &);
142 void * userData()
const;
145 void userData(
void * data);
160 void validate()
const;
198 char delimiter = 0x1,
211 char delimiter = 0x1,
220 toXml(
const std::string & indent =
" ",
const std::string & endOfLineDelimiter =
"\n")
const;
228 toXml(std::string & str,
const std::string & indent =
" ",
const std::string & endOfLineDelimiter =
"\n")
const;
235 toJson(
const std::string & indent =
" ",
const std::string & endOfLineDelimiter =
"\n")
const;
243 toJson(std::string & str,
const std::string & indent =
" ",
const std::string & endOfLineDelimiter =
"\n")
const;
246 void updateBodyLengthAndCheckSum();
254 #ifdef ONIXS_FIXENGINE_CXX11 264 void copyFields(
const Message &);
276 const char * rawMessage,
277 size_t rawMessageSize,
291 const char * rawMessage,
292 size_t rawMessageSize,
308 const char * rawMessage,
309 size_t rawMessageSize,
325 const char * rawMessage,
326 size_t rawMessageSize,
341 const char * rawMessage,
342 size_t rawMessageSize,
355 friend class MessageWrapper;
356 friend class MessageOperator;
362 virtual void userDataImpl(
void * data);
364 unsigned char impl_[6 *
sizeof(size_t)];
365 unsigned char allocator_[4 *
sizeof(size_t)];
367 static const size_t DefaultExpectedMessageSize = 10240;
369 void construct(
size_t expectedMessageSize = DefaultExpectedMessageSize);
381 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)