The C++ framework for developing highly scalable, high performance servers on Windows platforms.

Path Class Reference

Collaboration diagram for Path:

List of all members.


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

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.

Constructor & Destructor Documentation

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() 
)


Member Function Documentation

const Value & resolve ( const Value root  )  const

Value resolve ( const Value root,
const Value defaultValue 
) const

Value & make ( Value root  )  const

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


Generated on Sun Sep 12 19:08:07 2021 for The Server Framework - v7.4 by doxygen 1.5.3