JSON Voorhees
Killer JSON for C++
jsonv::context_base Class Referenceabstract

Provides extra information to routines used for extraction. More...

#include <jsonv/serialization.hpp>

+ Inheritance diagram for jsonv::context_base:

Public Member Functions

 context_base ()
 Create a new instance using the default formats (formats::global). More...
 
 context_base (jsonv::formats fmt, const jsonv::version &ver=jsonv::version(1), const void *userdata=nullptr)
 Create a new instance using the given fmt, ver and p. More...
 
const jsonv::formatsformats () const
 Get the formats object backing extraction and encoding. More...
 
const jsonv::version version () const
 Get the version this extraction_context was created with. More...
 
const void * user_data () const
 Get a pointer to arbitrary user data. More...
 

Detailed Description

Provides extra information to routines used for extraction.

Definition at line 503 of file serialization.hpp.

Constructor & Destructor Documentation

jsonv::context_base::context_base ( )

Create a new instance using the default formats (formats::global).

jsonv::context_base::context_base ( jsonv::formats  fmt,
const jsonv::version ver = jsonv::version(1),
const void *  userdata = nullptr 
)
explicit

Create a new instance using the given fmt, ver and p.

Member Function Documentation

const jsonv::formats& jsonv::context_base::formats ( ) const
inline

Get the formats object backing extraction and encoding.

Definition at line 518 of file serialization.hpp.

const void* jsonv::context_base::user_data ( ) const
inline

Get a pointer to arbitrary user data.

Definition at line 530 of file serialization.hpp.

const jsonv::version jsonv::context_base::version ( ) const
inline

Get the version this extraction_context was created with.

Definition at line 524 of file serialization.hpp.


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