Argo  1.0
A C++ library for handling JSON.
Classes | Public Member Functions | List of all members
argo::pointer Class Reference

JSON pointers as per the RFT. More...

#include <pointer.hpp>

Classes

class  token
 Tokens in a JSON pointer. More...
 

Public Member Functions

 pointer (const std::string &pointer)
 
const std::list< token > & get_path () const
 

Detailed Description

JSON pointers as per the RFT.

Instances of this class hold a representation of a JSON pointer, the logic to apply it is held within the json class.

Definition at line 41 of file pointer.hpp.

Constructor & Destructor Documentation

pointer::pointer ( const std::string &  pointer)

New pointer. Parse the given path as part of construction.

Exceptions
json_pointer_exceptionif the pointer argument doesn't represent a valid path.

Definition at line 34 of file pointer.cpp.

Member Function Documentation

const list< pointer::token > & pointer::get_path ( ) const

Get the list of tokens representing the pointer.

Definition at line 258 of file pointer.cpp.


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