65 explicit Message(
size_t expectedMessageSize = DefaultExpectedMessageSize);
217 char delimiter = 0x1,
230 char delimiter = 0x1,
239 toXml(
const std::string & indent =
" ",
const std::string & endOfLineDelimiter =
"\n")
const;
247 toXml(std::string & str,
const std::string & indent =
" ",
const std::string & endOfLineDelimiter =
"\n")
const;
254 toJson(
const std::string & indent =
" ",
const std::string & endOfLineDelimiter =
"\n")
const;
262 toJson(std::string & str,
const std::string & indent =
" ",
const std::string & endOfLineDelimiter =
"\n")
const;
291 const
char * rawMessage,
292 size_t rawMessageSize,
306 const
char * rawMessage,
307 size_t rawMessageSize,
323 const
char * rawMessage,
324 size_t rawMessageSize,
340 const
char * rawMessage,
341 size_t rawMessageSize,
356 const
char * rawMessage,
357 size_t rawMessageSize,
377 virtual void userDataImpl(
void * data);
379 unsigned char impl_[6 *
sizeof(size_t)];
380 unsigned char allocator_[4 *
sizeof(size_t)];
382 static const size_t DefaultExpectedMessageSize = 10240;
384 void construct(
size_t expectedMessageSize = DefaultExpectedMessageSize);
#define ONIXS_FIXENGINE_API
Identifies the FIX messages dictionary.
FieldValueRef type() const
Returns the message type (MsgType(35) field value).
void toString(std::string &str, char delimiter=0x1, MessageStringingFlags flags=MessageStringingFlag::IncludeFieldTagNumber) const
FieldValueRef targetCompId() const
SequenceNumber seqNum() const
Message(Message &&moved) noexcept
void seqNum(SequenceNumber value)
void toRaw(RawMessage &) const
Builds the FIX-compliant 'tag=value' presentation of the message.
bool tryValidate(MessageValidationFlags validationFlags, std::string &errorDescription) const
static bool parsePartial(const char *rawMessage, size_t rawMessageSize, Message &message)
Dictionary dictionary() const
static void parse(const char *rawMessage, size_t rawMessageSize, Message &message)
void senderCompId(const std::string &)
void toJson(std::string &str, const std::string &indent=" ", const std::string &endOfLineDelimiter="\n") const
void validateAll(MessageValidationFlags validationFlags) const
Message(size_t expectedMessageSize=DefaultExpectedMessageSize)
void userData(void *data)
Attaches a user data to the message.
std::string toJson(const std::string &indent=" ", const std::string &endOfLineDelimiter="\n") const
friend class MessageOperator
FieldValueRef senderCompId() const
std::string toString(char delimiter=0x1, MessageStringingFlags flags=MessageStringingFlag::IncludeFieldTagNumber) const
friend class MessageWrapper
Message(const Message &other, MakeShallowCopy)
void updateBodyLengthAndCheckSum()
Calculates the message body length and checkSum and updates corresponding fields.
Message(const char *type, const Dictionary &dictionary, size_t expectedMessageSize=DefaultExpectedMessageSize)
void validate(MessageValidationFlags validationFlags) const
std::string toXml(const std::string &indent=" ", const std::string &endOfLineDelimiter="\n") const
void targetCompId(const std::string &)
Message(const Message &other)
bool tryValidateAll(MessageValidationFlags validationFlags, std::string &errorDescription) const
void toXml(std::string &str, const std::string &indent=" ", const std::string &endOfLineDelimiter="\n") const
void swap(Message &other) noexcept
Swaps the content with another instance.
void copyFields(const Message &)
The helper class to represent a raw FIX message.
ONIXS_FIXENGINE_API std::ostream & operator<<(std::ostream &os, const FlatMessage &message)
The stream output.
bool operator==(const FieldValueRef &ref, const std::string &str)
unsigned MessageParsingFlags
The collection of message parsing flags.
unsigned MessageValidationFlags
The collection of message validation flags.
unsigned int SequenceNumber
Alias for the sequence number.
bool operator!=(const FieldValueRef &ref, const std::string &str)
unsigned MessageStringingFlags
The collection of message stringing flags.
@ IncludeFieldTagNumber
Field tag numbers are included during the serialization.