Zserio C++ runtime library  1.1.0
Built for Zserio 2.15.0
zserio::BasicJsonDecoder< ALLOC > Class Template Reference

#include <JsonDecoder.h>

Inheritance diagram for zserio::BasicJsonDecoder< ALLOC >:
Collaboration diagram for zserio::BasicJsonDecoder< ALLOC >:

Classes

struct  DecoderResult
 

Public Member Functions

 BasicJsonDecoder ()
 
 BasicJsonDecoder (const ALLOC &allocator)
 
DecoderResult decodeValue (StringView input)
 
- Public Member Functions inherited from zserio::AllocatorHolder< std::allocator< uint8_t > >
 AllocatorHolder ()
 
 AllocatorHolder (const allocator_type &allocator)
 
 AllocatorHolder (allocator_type &&allocator)
 
allocator_type get_allocator () const
 
 AllocatorHolder (const AllocatorHolder &other)=default
 
 AllocatorHolder (AllocatorHolder &&other)=default
 
 ~AllocatorHolder ()=default
 
AllocatorHolderoperator= (const AllocatorHolder &other)=default
 
AllocatorHolderoperator= (AllocatorHolder &&other)=default
 

Additional Inherited Members

- Public Types inherited from zserio::AllocatorHolder< std::allocator< uint8_t > >
using allocator_type = std::allocator< uint8_t >
 
- Protected Member Functions inherited from zserio::AllocatorHolder< std::allocator< uint8_t > >
void set_allocator (const allocator_type &allocator)
 
void set_allocator (allocator_type &&allocator)
 
allocator_typeget_allocator_ref ()
 
const allocator_typeget_allocator_ref () const
 

Detailed Description

template<typename ALLOC = std::allocator<uint8_t>>
class zserio::BasicJsonDecoder< ALLOC >

JSON value decoder.

Definition at line 24 of file JsonDecoder.h.

Constructor & Destructor Documentation

◆ BasicJsonDecoder() [1/2]

template<typename ALLOC = std::allocator<uint8_t>>
zserio::BasicJsonDecoder< ALLOC >::BasicJsonDecoder ( )
inline

Empty constructor.

Definition at line 92 of file JsonDecoder.h.

◆ BasicJsonDecoder() [2/2]

template<typename ALLOC = std::allocator<uint8_t>>
zserio::BasicJsonDecoder< ALLOC >::BasicJsonDecoder ( const ALLOC &  allocator)
inlineexplicit

Constructor from given allocator.

Parameters
allocatorAllocator to use.

Definition at line 101 of file JsonDecoder.h.

Member Function Documentation

◆ decodeValue()

template<typename ALLOC = std::allocator<uint8_t>>
DecoderResult zserio::BasicJsonDecoder< ALLOC >::decodeValue ( StringView  input)
inline

Decodes the JSON value from the input.

Parameters
inputInput to decode from.
Returns
Decoder result.

Definition at line 112 of file JsonDecoder.h.


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