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

A response that tells the status of a session creation to the client. More...

#include <messages.hpp>

Public Member Functions

 LoginResponse (SequenceNumber sequence, LoginResponseStatus status_)
 Initialize a new login response. 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 LoginResponseStatus status
 the status of the login request
 

Friends

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

Detailed Description

A response that tells the status of a session creation to the client.

Login Response

Constructor & Destructor Documentation

◆ LoginResponse()

OrderEntry::Messages::LoginResponse::LoginResponse ( SequenceNumber  sequence,
LoginResponseStatus  status_ 
)
inline

Initialize a new login response.

Parameters
sequencethe sequence of the message in event time
status_the status of the login request

Member Function Documentation

◆ to_string()

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