Caffa
1.1.0
C++ Application Framework for Embedded Systems with introspection
|
Abstract class representing an application session. More...
#include <cafSession.h>
Public Types | |
enum class | Type { INVALID = 0x0 , REGULAR = 0x1 , OBSERVING = 0x2 } |
Public Member Functions | |
const std::string & | uuid () const |
Type | type () const |
void | setType (Type type) |
bool | isExpired () const |
void | updateKeepAlive () |
std::chrono::milliseconds | timeout () const |
Static Public Member Functions | |
static std::shared_ptr< Session > | create (Type type, std::chrono::milliseconds timeout=std::chrono::milliseconds(1000)) |
static Type | typeFromUint (unsigned type) |
Friends | |
class | SessionMaintainer |
class | ConstSessionMaintainer |
Abstract class representing an application session.