Lumiera  0.pre.03
»edit your freedom«
SessManager Class Referenceabstract

#include "steam/mobject/session.hpp"

Description

creation, access and Session lifecycle Interface.

An instance is accessible via Session::current

Definition at line 161 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 Sessionoperator-> () 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
 
NonCopyableoperator= (NonCopyable const &)=delete
 

Member Function Documentation

◆ clear()

virtual void clear ( )
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().

+ Here is the caller graph for this function:

◆ close()

virtual void close ( )
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.

Note
next access will pull up a empty default session

Implemented in SessManagerImpl.

◆ save()

virtual void save ( string  snapshotID)
pure virtual

create a complete, serialised representation of the current session config and contents.

Todo:
2017 how actually to serialise, parameters, return value?
Parameters
snapshotIDmarker to tag the snapshot, like e.g. a timestamp

Implemented in SessManagerImpl.

◆ operator->()

virtual Session* operator-> ( )
pure virtualnoexcept

access to the current session object instance.

This is the sole access path available for clients.

Note
there is no operator*

Implemented in SessManagerImpl.

+ Inheritance diagram for SessManager:
+ Collaboration diagram for SessManager:

The documentation for this class was generated from the following files: