SSCMA-Micro CPP SDK  v2.0.0
SSCMA-Micro is a cross-platform machine learning inference framework designed for embedded devices.
ma::DecoderJSON Class Referencefinal

#include <ma_codec_json.h>

Inheritance diagram for ma::DecoderJSON:
Collaboration diagram for ma::DecoderJSON:

Public Member Functions

 DecoderJSON ()
 
 ~DecoderJSON ()
 
 operator bool () const override
 
ma_err_t begin (const void *data, size_t size) override
 
ma_err_t begin (const std::string &str) override
 
ma_err_t end () override
 
ma_msg_type_t type () const override
 
ma_err_t code () const override
 
std::string name () const override
 
ma_err_t read (const std::string &key, int8_t &value) const override
 
ma_err_t read (const std::string &key, int16_t &value) const override
 
ma_err_t read (const std::string &key, int32_t &value) const override
 
ma_err_t read (const std::string &key, int64_t &value) const override
 
ma_err_t read (const std::string &key, uint8_t &value) const override
 
ma_err_t read (const std::string &key, uint16_t &value) const override
 
ma_err_t read (const std::string &key, uint32_t &value) const override
 
ma_err_t read (const std::string &key, uint64_t &value) const override
 
ma_err_t read (const std::string &key, float &value) const override
 
ma_err_t read (const std::string &key, double &value) const override
 
ma_err_t read (const std::string &key, std::string &value) const override
 
ma_err_t read (ma_perf_t &value) override
 
ma_err_t read (std::forward_list< ma_class_t > &value) override
 
ma_err_t read (std::forward_list< ma_point_t > &value) override
 
ma_err_t read (std::forward_list< ma_bbox_t > &value) override
 
- Public Member Functions inherited from ma::Decoder
virtual ~Decoder ()=default
 

Constructor & Destructor Documentation

◆ DecoderJSON()

ma::DecoderJSON::DecoderJSON ( )

◆ ~DecoderJSON()

ma::DecoderJSON::~DecoderJSON ( )

Member Function Documentation

◆ begin() [1/2]

ma_err_t ma::DecoderJSON::begin ( const std::string &  str)
overridevirtual

Implements ma::Decoder.

Here is the call graph for this function:

◆ begin() [2/2]

ma_err_t ma::DecoderJSON::begin ( const void *  data,
size_t  size 
)
overridevirtual

Implements ma::Decoder.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ code()

ma_err_t ma::DecoderJSON::code ( ) const
overridevirtual

Implements ma::Decoder.

◆ end()

ma_err_t ma::DecoderJSON::end ( )
overridevirtual

Implements ma::Decoder.

Here is the call graph for this function:

◆ name()

std::string ma::DecoderJSON::name ( ) const
overridevirtual

Implements ma::Decoder.

◆ operator bool()

ma::DecoderJSON::operator bool ( ) const
overridevirtual

Implements ma::Decoder.

◆ read() [1/15]

ma_err_t ma::DecoderJSON::read ( const std::string &  key,
double &  value 
) const
overridevirtual

Implements ma::Decoder.

◆ read() [2/15]

ma_err_t ma::DecoderJSON::read ( const std::string &  key,
float &  value 
) const
overridevirtual

Implements ma::Decoder.

◆ read() [3/15]

ma_err_t ma::DecoderJSON::read ( const std::string &  key,
int16_t &  value 
) const
overridevirtual

Implements ma::Decoder.

◆ read() [4/15]

ma_err_t ma::DecoderJSON::read ( const std::string &  key,
int32_t &  value 
) const
overridevirtual

Implements ma::Decoder.

◆ read() [5/15]

ma_err_t ma::DecoderJSON::read ( const std::string &  key,
int64_t &  value 
) const
overridevirtual

Implements ma::Decoder.

◆ read() [6/15]

ma_err_t ma::DecoderJSON::read ( const std::string &  key,
int8_t &  value 
) const
overridevirtual

Implements ma::Decoder.

◆ read() [7/15]

ma_err_t ma::DecoderJSON::read ( const std::string &  key,
std::string &  value 
) const
overridevirtual

Implements ma::Decoder.

◆ read() [8/15]

ma_err_t ma::DecoderJSON::read ( const std::string &  key,
uint16_t &  value 
) const
overridevirtual

Implements ma::Decoder.

◆ read() [9/15]

ma_err_t ma::DecoderJSON::read ( const std::string &  key,
uint32_t &  value 
) const
overridevirtual

Implements ma::Decoder.

◆ read() [10/15]

ma_err_t ma::DecoderJSON::read ( const std::string &  key,
uint64_t &  value 
) const
overridevirtual

Implements ma::Decoder.

◆ read() [11/15]

ma_err_t ma::DecoderJSON::read ( const std::string &  key,
uint8_t &  value 
) const
overridevirtual

Implements ma::Decoder.

◆ read() [12/15]

ma_err_t ma::DecoderJSON::read ( ma_perf_t value)
overridevirtual

Implements ma::Decoder.

◆ read() [13/15]

ma_err_t ma::DecoderJSON::read ( std::forward_list< ma_bbox_t > &  value)
overridevirtual

Implements ma::Decoder.

◆ read() [14/15]

ma_err_t ma::DecoderJSON::read ( std::forward_list< ma_class_t > &  value)
overridevirtual

Implements ma::Decoder.

◆ read() [15/15]

ma_err_t ma::DecoderJSON::read ( std::forward_list< ma_point_t > &  value)
overridevirtual

Implements ma::Decoder.

◆ type()

ma_msg_type_t ma::DecoderJSON::type ( ) const
overridevirtual

Implements ma::Decoder.