CBOE Emulator  1.0
Public Member Functions | Public Attributes | Friends | List of all members
OrderEntry::Messages::ReplaceResponse Struct Reference

A response describing the replacement of an active order with a new order. More...

#include <messages.hpp>

Public Member Functions

 ReplaceResponse (SequenceNumber sequence, OrderID canceled_, OrderID new_order_id_, ReplaceStatus status_)
 Initialize a new order response message. More...
 
std::string to_string () const
 Convert the object to an STL string. More...
 

Public Attributes

const Header header
 the header for the message
 
const OrderID canceled
 the ID of the newly created order
 
const OrderID new_order_id
 the ID of the newly created order
 
const ReplaceStatus status
 the status of the newly created order
 

Friends

std::ostream & operator<< (std::ostream &stream, const ReplaceResponse &message)
 Write the data from the message to a stream. More...
 

Detailed Description

A response describing the replacement of an active order with a new order.

Replace Response

Constructor & Destructor Documentation

◆ ReplaceResponse()

OrderEntry::Messages::ReplaceResponse::ReplaceResponse ( SequenceNumber  sequence,
OrderID  canceled_,
OrderID  new_order_id_,
ReplaceStatus  status_ 
)
inline

Initialize a new order response message.

Parameters
sequencethe sequence number for the message
canceled_the ID of the canceled order
new_order_id_the ID of the newly created order
status_the status of the order request

Member Function Documentation

◆ to_string()

std::string OrderEntry::Messages::ReplaceResponse::to_string ( ) const
inline

Convert the object to an STL string.

Returns
a string representation of the object

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  stream,
const ReplaceResponse message 
)
friend

Write the data from the message to a stream.

Parameters
streamthe stream to write the data to
messagethe message to write to the stream
Returns
the stream with data from the message written to it

The documentation for this struct was generated from the following file: