fix8
version 1.4.0
Open Source C++ FIX Framework
|
#include <multisession.hpp>
Public Member Functions | |
SessionManager ()=default | |
Ctor. More... | |
virtual | ~SessionManager () |
Dtor. More... | |
bool | add (const f8String &name, T *what) |
T * | for_each_if (std::function< bool(T *)> func) |
bool | remove (const f8String &name) |
T * | find (const f8String &name) |
T * | operator[] (const f8String &name) const |
unsigned | size () const |
Private Attributes | |
f8_mutex | _mutex |
std::map< f8String, T * > | _sessionmap |
Session Manager.
Definition at line 106 of file multisession.hpp.
|
default |
Ctor.
|
inlinevirtual |
Dtor.
Definition at line 116 of file multisession.hpp.
|
inline |
Add a T* to the manager; takes ownership of the object
name | unique name for this session |
what | T* to add |
Definition at line 126 of file multisession.hpp.
Referenced by main().
|
inline |
Find a session by session name
name | session name |
Definition at line 165 of file multisession.hpp.
Referenced by FIX8::SessionManager< T >::operator[]().
|
inline |
Call supplied function on each T* in the manager
func | std::function to call, which returns true on success |
Definition at line 137 of file multisession.hpp.
Referenced by main().
|
inline |
Find a session by session name, subscript operator version
name | session name |
Definition at line 175 of file multisession.hpp.
References FIX8::SessionManager< T >::find().
|
inline |
Remove a T* from the manager; destroys the object
name | session name |
Definition at line 151 of file multisession.hpp.
|
inline |
Get the number of sessions being manager by this object
Definition at line 179 of file multisession.hpp.
|
private |
Definition at line 108 of file multisession.hpp.
|
private |
Definition at line 109 of file multisession.hpp.