JsonCpp project page JsonCpp home page

Json::Path Class Reference

Experimental and untested: represents a "path" to access a node. More...

#include <json/value.h>

Collaboration diagram for Json::Path:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 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 Valueresolve (const Value &root) const
Value resolve (const Value &root, const Value &defaultValue) const
Valuemake (Value &root) const
 Creates the "path" to access the specified node and returns a reference on the node.


Detailed Description

Experimental and untested: represents a "path" to access a node.

Syntax:

Definition at line 537 of file value.h.


Constructor & Destructor Documentation

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 1652 of file json_value.cpp.

References Json::in().


Member Function Documentation

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 1802 of file json_value.cpp.

References Json::Value::isArray(), and Json::Value::isObject().

Value Json::Path::resolve ( const Value root,
const Value defaultValue 
) const

const Value & Json::Path::resolve ( const Value root  )  const


The documentation for this class was generated from the following files:

SourceForge Logo hosts this site. Send comments to:
Json-cpp Developers