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

#include <ma_codec_base.h>

Inheritance diagram for ma::Decoder:
Collaboration diagram for ma::Decoder:

Public Member Functions

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

Constructor & Destructor Documentation

◆ ~Decoder()

virtual ma::Decoder::~Decoder ( )
virtualdefault

Member Function Documentation

◆ begin() [1/2]

virtual ma_err_t ma::Decoder::begin ( const std::string &  str)
pure virtual

Implemented in ma::DecoderJSON.

◆ begin() [2/2]

virtual ma_err_t ma::Decoder::begin ( const void *  data,
size_t  size 
)
pure virtual

Implemented in ma::DecoderJSON.

◆ code()

virtual ma_err_t ma::Decoder::code ( ) const
pure virtual

Implemented in ma::DecoderJSON.

◆ end()

virtual ma_err_t ma::Decoder::end ( )
pure virtual

Implemented in ma::DecoderJSON.

◆ name()

virtual std::string ma::Decoder::name ( ) const
pure virtual

Implemented in ma::DecoderJSON.

◆ operator bool()

virtual ma::Decoder::operator bool ( ) const
pure virtual

Implemented in ma::DecoderJSON.

◆ read() [1/15]

virtual ma_err_t ma::Decoder::read ( const std::string &  key,
double &  value 
) const
pure virtual

Implemented in ma::DecoderJSON.

◆ read() [2/15]

virtual ma_err_t ma::Decoder::read ( const std::string &  key,
float &  value 
) const
pure virtual

Implemented in ma::DecoderJSON.

◆ read() [3/15]

virtual ma_err_t ma::Decoder::read ( const std::string &  key,
int16_t &  value 
) const
pure virtual

Implemented in ma::DecoderJSON.

◆ read() [4/15]

virtual ma_err_t ma::Decoder::read ( const std::string &  key,
int32_t &  value 
) const
pure virtual

Implemented in ma::DecoderJSON.

◆ read() [5/15]

virtual ma_err_t ma::Decoder::read ( const std::string &  key,
int64_t &  value 
) const
pure virtual

Implemented in ma::DecoderJSON.

◆ read() [6/15]

virtual ma_err_t ma::Decoder::read ( const std::string &  key,
int8_t &  value 
) const
pure virtual

Implemented in ma::DecoderJSON.

◆ read() [7/15]

virtual ma_err_t ma::Decoder::read ( const std::string &  key,
std::string &  value 
) const
pure virtual

Implemented in ma::DecoderJSON.

◆ read() [8/15]

virtual ma_err_t ma::Decoder::read ( const std::string &  key,
uint16_t &  value 
) const
pure virtual

Implemented in ma::DecoderJSON.

◆ read() [9/15]

virtual ma_err_t ma::Decoder::read ( const std::string &  key,
uint32_t &  value 
) const
pure virtual

Implemented in ma::DecoderJSON.

◆ read() [10/15]

virtual ma_err_t ma::Decoder::read ( const std::string &  key,
uint64_t &  value 
) const
pure virtual

Implemented in ma::DecoderJSON.

◆ read() [11/15]

virtual ma_err_t ma::Decoder::read ( const std::string &  key,
uint8_t &  value 
) const
pure virtual

Implemented in ma::DecoderJSON.

◆ read() [12/15]

virtual ma_err_t ma::Decoder::read ( ma_perf_t value)
pure virtual

Implemented in ma::DecoderJSON.

◆ read() [13/15]

virtual ma_err_t ma::Decoder::read ( std::forward_list< ma_bbox_t > &  value)
pure virtual

Implemented in ma::DecoderJSON.

◆ read() [14/15]

virtual ma_err_t ma::Decoder::read ( std::forward_list< ma_class_t > &  value)
pure virtual

Implemented in ma::DecoderJSON.

◆ read() [15/15]

virtual ma_err_t ma::Decoder::read ( std::forward_list< ma_point_t > &  value)
pure virtual

Implemented in ma::DecoderJSON.

◆ type()

virtual ma_msg_type_t ma::Decoder::type ( ) const
pure virtual

Implemented in ma::DecoderJSON.