Free Electron
Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
Json::Path Class Reference

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

#include <value.h>

Public Member Functions

 Path (const 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. More...
 

Private Types

using InArgs = std::vector< const PathArgument * >
 
using Args = std::vector< PathArgument >
 

Private Member Functions

void makePath (const String &path, const InArgs &in)
 
void addPathInArg (const String &path, const InArgs &in, InArgs::const_iterator &itInArg, PathArgument::Kind kind)
 

Static Private Member Functions

static void invalidPath (const String &path, int location)
 

Private Attributes

Args args_
 

Detailed Description

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

Syntax:

Member Function Documentation

◆ make()

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

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


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