Leosac
0.8.0
Open Source Access Control
|
Acts like an odb::session, with the exception that it will save the current active session (if any) and restore it when this MultiplexedSession ends. More...
#include <MultiplexedSession.hpp>
Public Member Functions | |
MultiplexedSession () | |
~MultiplexedSession () | |
Private Attributes | |
std::unique_ptr< odb::session > | session_ |
odb::session * | previous_ |
Acts like an odb::session, with the exception that it will save the current active session (if any) and restore it when this MultiplexedSession ends.
This object is useful to create new session without having to worry about the currently active one.
Definition at line 39 of file MultiplexedSession.hpp.
MultiplexedSession::MultiplexedSession | ( | ) |
Definition at line 26 of file MultiplexedSession.cpp.
MultiplexedSession::~MultiplexedSession | ( | ) |
Definition at line 36 of file MultiplexedSession.cpp.
|
private |
Definition at line 47 of file MultiplexedSession.hpp.
|
private |
Definition at line 46 of file MultiplexedSession.hpp.