Public Member Functions | Protected Attributes

Engine::SessionNotification Class Reference

Represents notification event related to Session. More...

#include <B2BITS_Event.h>

Inheritance diagram for Engine::SessionNotification:
Collaboration diagram for Engine::SessionNotification:

List of all members.

Public Member Functions

const std::string * getSenderCompID () const
 Returns session's SenderCompID.
const std::string * getTargetCompID () const
 Returns session's TargetCompID.
virtual Type getType () const
 Returns the event type.
 SessionNotification (const Session *pSn, const std::string &reason)
 Constructor.
 SessionNotification (const Session *pSn)
 Constructor.
 SessionNotification (const std::string &sender, const std::string &target, Session::Role role, const std::string &reason)
virtual ~SessionNotification ()
 Destructor.

Protected Attributes

int role_
 Role.
std::string sender_
 Sender.
std::string target_
 Target.

Detailed Description

Represents notification event related to Session.

Definition at line 218 of file B2BITS_Event.h.


Constructor & Destructor Documentation

Engine::SessionNotification::SessionNotification ( const Session pSn )

Constructor.

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

Constructor.

Engine::SessionNotification::SessionNotification ( const std::string &  sender,
const std::string &  target,
Session::Role  role,
const std::string &  reason 
)
virtual Engine::SessionNotification::~SessionNotification (  ) [inline, virtual]

Destructor.

Definition at line 227 of file B2BITS_Event.h.


Member Function Documentation

const std::string* Engine::SessionNotification::getSenderCompID (  ) const [inline]

Returns session's SenderCompID.

Definition at line 232 of file B2BITS_Event.h.

References sender_.

const std::string* Engine::SessionNotification::getTargetCompID (  ) const [inline]

Returns session's TargetCompID.

Definition at line 235 of file B2BITS_Event.h.

References target_.

virtual Type Engine::SessionNotification::getType (  ) const [inline, virtual]

Returns the event type.

Can be used instead of C++ RTTI.

Reimplemented from Engine::Notification.

Reimplemented in Engine::PersistentDataWereFound, Engine::SessionWasCreated, Engine::SessionWasClosed, Engine::LinkWasRestored, Engine::SessionWasRestored, and Engine::SessionWasEstablished.

Definition at line 229 of file B2BITS_Event.h.

References Engine::Event::SESSION_NOTIFICATION.


Member Data Documentation

Role.

Definition at line 238 of file B2BITS_Event.h.

std::string Engine::SessionNotification::sender_ [protected]

Sender.

Definition at line 240 of file B2BITS_Event.h.

Referenced by getSenderCompID().

std::string Engine::SessionNotification::target_ [protected]

Target.

Definition at line 242 of file B2BITS_Event.h.

Referenced by getTargetCompID().