DAW JSON Link
Public Member Functions | Friends | List of all members
daw::json::DAW_JSON_VER::json_path_node Class Reference

#include <daw_json_find_path.h>

Public Member Functions

constexpr long long index () const
 The element index, only valid for elements of Array types. More...
 
constexpr std::string_view name () const
 The member name, only value for submembers of Class types. More...
 
constexpr JsonBaseParseTypes type () const
 What type of value is represented. More...
 
constexpr char const * value_start () const
 The beginning of the value's data in JSON document. More...
 

Friends

std::vector< json_path_nodefind_json_path_stack_to (char const *parse_location, char const *doc_start)
 Get the json_path_nodes representing the path to the nearest value's position in the document. More...
 

Member Function Documentation

◆ index()

constexpr long long daw::json::DAW_JSON_VER::json_path_node::index ( ) const
inlineconstexpr

The element index, only valid for elements of Array types.

◆ name()

constexpr std::string_view daw::json::DAW_JSON_VER::json_path_node::name ( ) const
inlineconstexpr

The member name, only value for submembers of Class types.

◆ type()

constexpr JsonBaseParseTypes daw::json::DAW_JSON_VER::json_path_node::type ( ) const
inlineconstexpr

What type of value is represented.

◆ value_start()

constexpr char const* daw::json::DAW_JSON_VER::json_path_node::value_start ( ) const
inlineconstexpr

The beginning of the value's data in JSON document.

Friends And Related Function Documentation

◆ find_json_path_stack_to

std::vector<json_path_node> find_json_path_stack_to ( char const *  parse_location,
char const *  doc_start 
)
friend

Get the json_path_nodes representing the path to the nearest value's position in the document.

Parameters
parse_locationThe position in the document to find
doc_startA pointer to the stat of the JSON document

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