tufao  1.3.0
An asynchronous web framework for C++ built on top of Qt
Tufao::Session::PropertyWrapper Class Reference

Provides a object that give less verbose access to a session property. More...

+ Collaboration diagram for Tufao::Session::PropertyWrapper:

Public Member Functions

 PropertyWrapper (Session &session, const QByteArray &key)
 Constructs a new PropertyWrappe object. More...
 
 operator bool () const
 Returns true if this property exists for this session.
 
PropertyWrapperoperator= (const QVariant &value)
 Assigns value to this property and returns a reference to itself.
 
QVariant operator() ()
 Returns this property's value.
 

Detailed Description

Provides a object that give less verbose access to a session property.

Note
You shouldn't create it directly, but use Session::operator [].
See also
Session

Constructor & Destructor Documentation

Tufao::Session::PropertyWrapper::PropertyWrapper ( Session session,
const QByteArray &  key 
)
inline

Constructs a new PropertyWrappe object.

Note
This object will use session in every operation and you should ensure that session isn't destructed before the PropertyWrapper object.

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