Bond
bond::SimpleJsonReader< BufferT > Class Template Reference

Reader for Simple JSON. More...

Public Member Functions

 SimpleJsonReader (const Buffer &input)
 Construct from input buffer/stream containing serialized data. More...
 
 SimpleJsonReader (SimpleJsonReader &parent, const Field &value)
 Create a "child" SimpleJsonReader to read value, which is known to be a member of the document in parent. More...
 
const Buffer & GetBuffer () const
 Access to underlying buffer. More...
 
Buffer & GetBuffer ()
 Access to underlying buffer. More...
 

Detailed Description

template<typename BufferT>
class bond::SimpleJsonReader< BufferT >

Reader for Simple JSON.

Constructor & Destructor Documentation

◆ SimpleJsonReader() [1/2]

template<typename BufferT >
bond::SimpleJsonReader< BufferT >::SimpleJsonReader ( const Buffer &  input)

Construct from input buffer/stream containing serialized data.

◆ SimpleJsonReader() [2/2]

template<typename BufferT >
bond::SimpleJsonReader< BufferT >::SimpleJsonReader ( SimpleJsonReader< BufferT > &  parent,
const Field &  value 
)

Create a "child" SimpleJsonReader to read value, which is known to be a member of the document in parent.

Warning
parent must remain alive for the lifetime of this child.

Member Function Documentation

◆ GetBuffer() [1/2]

template<typename BufferT >
Buffer & bond::SimpleJsonReader< BufferT >::GetBuffer ( )

Access to underlying buffer.

◆ GetBuffer() [2/2]

template<typename BufferT >
const Buffer & bond::SimpleJsonReader< BufferT >::GetBuffer ( ) const

Access to underlying buffer.