Experimental and untested: represents a "path" to access a node. More...
#include <value.h>
Public Member Functions | |
Value & | make (Value &root) const |
Creates the "path" to access the specified node and returns a reference on the node. | |
Path (const std::string &path, const PathArgument &a1=PathArgument(), const PathArgument &a2=PathArgument(), const PathArgument &a3=PathArgument(), const PathArgument &a4=PathArgument(), const PathArgument &a5=PathArgument()) | |
const Value & | resolve (const Value &root) const |
Value | resolve (const Value &root, const Value &defaultValue) const |
Private Types | |
typedef std::vector< PathArgument > | Args |
typedef std::vector< const PathArgument * > | InArgs |
Private Member Functions | |
void | addPathInArg (const std::string &path, const InArgs &in, InArgs::const_iterator &itInArg, PathArgument::Kind kind) |
void | invalidPath (const std::string &path, int location) |
void | makePath (const std::string &path, const InArgs &in) |
Private Attributes | |
Args | args_ |
Experimental and untested: represents a "path" to access a node.
Syntax:
typedef std::vector<PathArgument> Json::Path::Args [private] |
typedef std::vector<const PathArgument *> Json::Path::InArgs [private] |
Json::Path::Path | ( | const std::string & | path, |
const PathArgument & | a1 = PathArgument() , |
||
const PathArgument & | a2 = PathArgument() , |
||
const PathArgument & | a3 = PathArgument() , |
||
const PathArgument & | a4 = PathArgument() , |
||
const PathArgument & | a5 = PathArgument() |
||
) |
Definition at line 1541 of file json_value.cpp.
void Json::Path::addPathInArg | ( | const std::string & | path, |
const InArgs & | in, | ||
InArgs::const_iterator & | itInArg, | ||
PathArgument::Kind | kind | ||
) | [private] |
Definition at line 1603 of file json_value.cpp.
void Json::Path::invalidPath | ( | const std::string & | path, |
int | location | ||
) | [private] |
Definition at line 1624 of file json_value.cpp.
Value & Json::Path::make | ( | Value & | root | ) | const |
Creates the "path" to access the specified node and returns a reference on the node.
Definition at line 1691 of file json_value.cpp.
void Json::Path::makePath | ( | const std::string & | path, |
const InArgs & | in | ||
) | [private] |
Definition at line 1559 of file json_value.cpp.
const Value & Json::Path::resolve | ( | const Value & | root | ) | const |
Definition at line 1632 of file json_value.cpp.
Value Json::Path::resolve | ( | const Value & | root, |
const Value & | defaultValue | ||
) | const |
Definition at line 1664 of file json_value.cpp.
Args Json::Path::args_ [private] |