B2BITS FIX Antenna C++  2.29.0
Public Member Functions | Protected Attributes | List of all members
Engine::SessionDebugMessage Class Reference

Represents debug message related to Session. More...

#include <B2BITS_Event.h>

+ Inheritance diagram for Engine::SessionDebugMessage:
+ Collaboration diagram for Engine::SessionDebugMessage:

Public Member Functions

const std::string * getSenderCompID () const
 Returns session's SenderCompID. More...
 
const SessionIdgetSessionId () const
 Returns session identifier. More...
 
const std::string * getTargetCompID () const
 Returns session's TargetCompID. More...
 
virtual Type getType () const
 Returns the event type. More...
 
 SessionDebugMessage (const Session *pSn, const std::string &reason)
 Constructor. More...
 
 SessionDebugMessage (const SessionId &sessionId, const std::string &reason)
 
virtual ~SessionDebugMessage ()
 Destructor. More...
 
- Public Member Functions inherited from Engine::DebugMessage
 DebugMessage (const std::string &msg)
 Constructor. More...
 
virtual const std::string * what () const
 Describes the event. More...
 
virtual ~DebugMessage ()
 Destructor. More...
 

Protected Attributes

SessionId sessionId_
 
- Protected Attributes inherited from Engine::DebugMessage
std::string m_reason
 Contains std::string that describes the event. More...
 

Additional Inherited Members

- Public Types inherited from Engine::Event
enum  Type {
  EVENT, ERROR_EVENT, NOTIFICATION, WARNING,
  SESSION_ERROR, SESSION_LOGON_ERROR, PARSE_ERROR_IN_SESSION, NEW_INCOMING_CONNECTION,
  NEW_INCOMING_CONNECTION_ERROR, SESSION_NOTIFICATION, SESSION_WAS_REJECTED, SESSION_WAS_CREATED,
  SESSION_WAS_CONNECTED, SESSION_WAS_CLOSED, SESSION_WAS_ESTABLISHED, SESSION_WAS_RESTORED,
  SYNCHRONIZATION_COMPLETE, SESSION_WARNING, LINK_ERROR_WAS_DETECTED, LINK_WAS_RESTORED,
  PERSISTENT_DATA_WERE_FOUND, DEBUG_MESSAGE, SESSION_DEBUG_MESSAGE
}
 Event types. More...
 
- Protected Member Functions inherited from Engine::Event
virtual ~Event ()
 Destructor. More...
 

Detailed Description

Represents debug message related to Session.

Constructor & Destructor Documentation

◆ SessionDebugMessage() [1/2]

Engine::SessionDebugMessage::SessionDebugMessage ( const Session pSn,
const std::string &  reason 
)

Constructor.

◆ SessionDebugMessage() [2/2]

Engine::SessionDebugMessage::SessionDebugMessage ( const SessionId sessionId,
const std::string &  reason 
)

◆ ~SessionDebugMessage()

virtual Engine::SessionDebugMessage::~SessionDebugMessage ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ getSenderCompID()

const std::string* Engine::SessionDebugMessage::getSenderCompID ( ) const
inline

Returns session's SenderCompID.

References Engine::SessionId::sender_, and sessionId_.

◆ getSessionId()

const SessionId& Engine::SessionDebugMessage::getSessionId ( ) const
inline

Returns session identifier.

References sessionId_.

◆ getTargetCompID()

const std::string* Engine::SessionDebugMessage::getTargetCompID ( ) const
inline

Returns session's TargetCompID.

References sessionId_, and Engine::SessionId::target_.

◆ getType()

virtual Type Engine::SessionDebugMessage::getType ( ) const
inlinevirtual

Returns the event type.

Can be used instead of C++ RTTI.

Reimplemented from Engine::DebugMessage.

References Engine::Event::SESSION_DEBUG_MESSAGE.

Member Data Documentation

◆ sessionId_

SessionId Engine::SessionDebugMessage::sessionId_
protected