tufao
1.3.0
An asynchronous web framework for C++ built on top of Qt
|
Provides a object that give less verbose access to a session property. More...
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. | |
PropertyWrapper & | operator= (const QVariant &value) |
Assigns value to this property and returns a reference to itself. | |
QVariant | operator() () |
Returns this property's value. | |
Provides a object that give less verbose access to a session property.
|
inline |
Constructs a new PropertyWrappe object.
session
in every operation and you should ensure that session
isn't destructed before the PropertyWrapper object.