Lumiera
0.pre.03
»edit your freedom«
|
#include "steam/mobject/session.hpp"
creation, access and Session lifecycle Interface.
An instance is accessible via Session::current
Definition at line 152 of file session.hpp.
Public Member Functions | |
virtual void | clear ()=0 |
clear current session contents without resetting overall session config. More... | |
virtual void | close ()=0 |
shut down the current session cleanly. More... | |
virtual bool | isUp ()=0 |
diagnostics: session interface opened? | |
virtual void | load ()=0 |
replace the current session by a new session loaded from serialised state. | |
virtual Session * | operator-> () noexcept=0 |
access to the current session object instance. More... | |
virtual void | reset ()=0 |
reset all session config and start with a pristine default session. | |
virtual void | save (string snapshotID)=0 |
create a complete, serialised representation of the current session config and contents. More... | |
Additional Inherited Members | |
Private Member Functions inherited from NonCopyable | |
NonCopyable (NonCopyable const &)=delete | |
NonCopyable & | operator= (NonCopyable const &)=delete |
|
pure virtual |
clear current session contents without resetting overall session config.
Afterwards, the session will contain only one empty Sequence, while all Assets are retained.
Implemented in SessManagerImpl.
Referenced by SessionManager_test::clearSession().
|
pure virtual |
shut down the current session cleanly.
Includes discarding of all assets and unloading any config rules and additional state. Doesn't save anything. Typically invoked on shutdown of the session subsystem.
Implemented in SessManagerImpl.
|
pure virtual |
create a complete, serialised representation of the current session config and contents.
snapshotID | marker to tag the snapshot, like e.g. a timestamp |
Implemented in SessManagerImpl.
|
pure virtualnoexcept |
access to the current session object instance.
This is the sole access path available for clients.
Implemented in SessManagerImpl.