OnixS CBOE CMi2 Trading Handler for C++  1.1.3.0
Public Member Functions | Public Attributes | Friends | List of all members
TextMessage Class Reference

Text Message. More...

Public Member Functions

MessageType::Enum type () const
 Message type. More...
 
void validate () const
 Validates message data by checking length limits for strings. More...
 
std::string toString () const
 Returns string representation. More...
 
 TextMessage ()
 Default constructor. More...
 
- Public Member Functions inherited from Message
SerializedMessage toSerialized () const
 Returns serialized representation. More...
 
virtual ~Message ()
 Destructor. More...
 

Public Attributes

UInt32 sendingTime
 Wall clock time in milliseconds. More...
 
UInt32 textMessageId
 Zero if an originating message. More...
 
UInt32 originalTextMessageId
 Zero if an originating message. More...
 
UInt16 year
 Year. More...
 
UInt8 month
 Month. More...
 
UInt8 day
 Day. More...
 
bool replyRequested
 Reply requested. More...
 
std::string subject
 Subject. More...
 
std::string message
 Message. More...
 

Friends

class Serializer
 

Detailed Description

Text Message.

Constructor & Destructor Documentation

Default constructor.

Member Function Documentation

std::string toString ( ) const
virtual

Returns string representation.

Implements Message.

MessageType::Enum type ( ) const
inlinevirtual

Message type.

Implements Message.

void validate ( ) const
virtual

Validates message data by checking length limits for strings.

Throws std::invalid_artument exception if message content is invalid.

Implements Message.

Member Data Documentation

UInt8 day

Day.

std::string message

Message.

255 bytes max.

UInt8 month

Month.

UInt32 originalTextMessageId

Zero if an originating message.

bool replyRequested

Reply requested.

UInt32 sendingTime

Wall clock time in milliseconds.

std::string subject

Subject.

255 bytes max.

UInt32 textMessageId

Zero if an originating message.

System will assign a value.

UInt16 year

Year.