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

A response describing the cancellation of an active order in the book. More...

#include <messages.hpp>

Public Member Functions

 CancelResponse (SequenceNumber sequence, OrderID order_id_, CancelStatus status_)
 Initialize a new cancel 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 order_id
 the order ID of the order to cancel
 
const CancelStatus status
 whether the cancel was accepted
 

Friends

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

Detailed Description

A response describing the cancellation of an active order in the book.

Cancel Response

Constructor & Destructor Documentation

◆ CancelResponse()

OrderEntry::Messages::CancelResponse::CancelResponse ( SequenceNumber  sequence,
OrderID  order_id_,
CancelStatus  status_ 
)
inline

Initialize a new cancel response message.

Parameters
sequencethe sequence number for the message
order_id_the order ID of the order to cancel
status_the status of the cancellation response

Member Function Documentation

◆ to_string()

std::string OrderEntry::Messages::CancelResponse::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 CancelResponse 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: