Wexus2 0.20
wexus::VarPath Class Reference

#include <VarPath.h>

List of all members.

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)
VarPathoperator= (const QVariant &v)
QVariant & asVariant (void)
QVariantMap & asMap (void)

Protected Attributes

QVariantMap * dm_map
QVariant * dm_node

Detailed Description

A helper to make accessing and setting QVariantMap easier.

Author:
Aleksander Demko

Constructor & Destructor Documentation

wexus::VarPath::VarPath ( QVariantMap &  srcmap)

Createa a reference from a map

Author:
Aleksander Demko
wexus::VarPath::VarPath ( QVariant &  v)

Creates a reference from a variable.

Author:
Aleksander Demko

Member Function Documentation

QVariantMap& wexus::VarPath::asMap ( void  )

Returns this reference as a map. This reference must be set to a map.

Author:
Aleksander Demko
QVariant& wexus::VarPath::asVariant ( void  )

Returns this reference as a note. This reference must be set to a variant.

Author:
Aleksander Demko
VarPath wexus::VarPath::operator() ( const QString &  key)

Same as [], but Throws if field is not found.

Author:
Aleksander Demko
VarPath& wexus::VarPath::operator= ( const QVariant &  v)

Assignment operator.

This reference must be set to a variant.

Author:
Aleksander Demko
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.

Author:
Aleksander Demko

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Enumerator