json test

Embed: (wiki syntax)

« Back to documentation index

Path Class Reference

Path Class Reference

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

#include <value.h>

Public Member Functions

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:

  • "." => root node
  • ".[n]" => elements at index 'n' of root node (an array value)
  • ".name" => member named 'name' of root node (an object value)
  • ".name1.name2.name3"
  • ".[0][1][2].name1[3]"
  • ".%" => member name is provided as parameter
  • ".[%]" => index is provied as parameter

Definition at line 677 of file value.h.


Member Function Documentation

Value & make ( Value root ) const

Creates the "path" to access the specified node and returns a reference on the node.

Definition at line 1642 of file json_value.cpp.