Wexus2 0.20
|
#include <VarPath.h>
Classes | |
class | Exception |
class | MapRequiredException |
class | NotFoundException |
class | VariantRequiredException |
Public Member Functions | |
VarPath (QVariantMap &srcmap) | |
VarPath (QVariant &v) | |
VarPath | operator[] (const QString &key) |
VarPath | operator() (const QString &key) |
VarPath & | operator= (const QVariant &v) |
QVariant & | asVariant (void) |
QVariantMap & | asMap (void) |
Protected Attributes | |
QVariantMap * | dm_map |
QVariant * | dm_node |
A helper to make accessing and setting QVariantMap easier.
wexus::VarPath::VarPath | ( | QVariantMap & | srcmap | ) |
Createa a reference from a map
wexus::VarPath::VarPath | ( | QVariant & | v | ) |
Creates a reference from a variable.
QVariantMap& wexus::VarPath::asMap | ( | void | ) |
Returns this reference as a map. This reference must be set to a map.
QVariant& wexus::VarPath::asVariant | ( | void | ) |
Returns this reference as a note. This reference must be set to a variant.
VarPath wexus::VarPath::operator() | ( | const QString & | key | ) |
Same as [], but Throws if field is not found.
VarPath& wexus::VarPath::operator= | ( | const QVariant & | v | ) |
Assignment operator.
This reference must be set to a variant.
VarPath wexus::VarPath::operator[] | ( | const QString & | key | ) |
Returns a sub node. This reference must be set to a map or a variant that is a map.