12 #ifndef __JSONV_PATH_HPP_INCLUDED__ 13 #define __JSONV_PATH_HPP_INCLUDED__ 27 enum class path_element_kind : unsigned char
33 JSONV_PUBLIC std::ostream& operator<<(std::ostream&,
const path_element_kind&);
52 path_element_kind
kind()
const;
54 std::size_t index()
const;
56 const std::string& key()
const;
67 storage(std::size_t idx);
68 storage(std::string&& key);
73 path_element_kind _kind;
90 path(storage_type elements);
106 path operator+(
const path& subpath)
const;
107 path& operator+=(
const path& subpath);
Copyright (c) 2014-2019 by Travis Gockel.
Represents an exact path in some JSON structure.
JSONV_PUBLIC std::string to_string(const parse_error::problem &p)
Get a string representation of a problem.
kind
Describes the kind of data a value holds.
Pulls in an implementation of string_view.
Copyright (c) 2014 by Travis Gockel.
A generic container that exposes the traversal and modification operations externally.
#define JSONV_PUBLIC
This function or class is part of the public API for JsonVoorhees.
JSONV_STRING_VIEW_TYPE string_view
A non-owning reference to a string.