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

Tokens in a JSON pointer. More...

#include <pointer.hpp>

Public Types

enum  type_t { all_e, object_e, array_e }
 Different types of pointer tokens.
 

Public Member Functions

 token ()
 Construct a token of type all_e.
 
 token (const std::string &name)
 Construct a token of type object_e with a named slot.
 
 token (size_t index)
 Construct a token of type array_e with an array index.
 
type_t get_type () const
 Get the type of the token.
 
const std::string & get_name () const
 Get the name of the slot referenced.
 
size_t get_index () const
 Get the index in the array referenced.
 

Detailed Description

Tokens in a JSON pointer.

A pointer is make up of a list of tokens representing one of: all of the document a named slot in an object an index into an array.

Definition at line 53 of file pointer.hpp.


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