Caffa  1.1.0
C++ Application Framework for Embedded Systems with introspection
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
caffa::Session Class Reference

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< Sessioncreate (Type type, std::chrono::milliseconds timeout=std::chrono::milliseconds(1000))
 
static Type typeFromUint (unsigned type)
 

Friends

class SessionMaintainer
 
class ConstSessionMaintainer
 

Detailed Description

Abstract class representing an application session.


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