1 #ifndef _json_pointer_hpp_ 2 #define _json_pointer_hpp_ 58 typedef enum { all_e, object_e, array_e }
type_t;
64 token(
const std::string &name);
70 type_t get_type()
const;
73 const std::string &get_name()
const;
76 size_t get_index()
const;
99 const std::list<token> &get_path()
const;
103 std::list<token> m_path;
105 void build_from_uri_fragment(
const std::string &pointer);
106 void build_from_json_string(
const std::string &pointer);
107 bool next_token(
const std::string &pointer,
size_t &start,
size_t &end);
108 token translate_uri_token(
const std::string &pointer,
size_t &start,
size_t &end);
109 token translate_jsonp_token(
const std::string &pointer,
size_t &start,
size_t &end);
110 token make_token(
const std::string &s);
111 int from_hex(
const std::string &s,
size_t index);
#define NAMESPACE
You can change the namespace of the whole library by changing this value.
Tokens in a JSON pointer.
type_t
Different types of pointer tokens.
Common defs needed everywhere and, as far as is possible, platform specific changes.
JSON pointers as per the RFT.
std::ostream & operator<<(std::ostream &stream, const json_exception &e)