tufao  0.8.1
An asynchronous web framework for C++ built on top of Qt
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
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: