Public Member Functions | Private Attributes | List of all members
BinParser Class Reference

#include <bin_parser.h>

Public Member Functions

 BinParser (uint8_t *buffer, size_t buf_len)
 
 BinParser (BinParser &parent, size_t sub_len)
 
bool checkSize (size_t bytes)
 
template<typename T >
bool checkSize (void)
 
void consume ()
 
void consume (size_t bytes)
 
void debug ()
 
template<typename T >
decode (T val)
 
uint16_t decode (uint16_t val)
 
uint32_t decode (uint32_t val)
 
uint64_t decode (uint64_t val)
 
int16_t decode (int16_t val)
 
int32_t decode (int32_t val)
 
int64_t decode (int64_t val)
 
bool empty ()
 
template<typename T >
void parse (T &val)
 
void parse (double &val)
 
void parse (float &val)
 
void parse (bool &val)
 
void parse (double3_t &val)
 
void parse (cartesian_coord_t &val)
 
void parse (std::string &val, size_t len)
 
void parse (std::string &val)
 
template<typename T , size_t N>
void parse (std::array< T, N > &array)
 
template<typename T , size_t N>
void parse (std::bitset< N > &set)
 
void parse_remainder (std::string &val)
 
template<typename T >
peek ()
 
 ~BinParser ()
 

Private Attributes

uint8_t * buf_end_
 
uint8_t * buf_pos_
 
BinParserparent_
 

Detailed Description

Definition at line 32 of file bin_parser.h.

Constructor & Destructor Documentation

BinParser::BinParser ( uint8_t *  buffer,
size_t  buf_len 
)
inline

Definition at line 39 of file bin_parser.h.

BinParser::BinParser ( BinParser parent,
size_t  sub_len 
)
inline

Definition at line 44 of file bin_parser.h.

BinParser::~BinParser ( )
inline

Definition at line 50 of file bin_parser.h.

Member Function Documentation

bool BinParser::checkSize ( size_t  bytes)
inline

Definition at line 184 of file bin_parser.h.

template<typename T >
bool BinParser::checkSize ( void  )
inline

Definition at line 189 of file bin_parser.h.

void BinParser::consume ( )
inline

Definition at line 175 of file bin_parser.h.

void BinParser::consume ( size_t  bytes)
inline

Definition at line 179 of file bin_parser.h.

void BinParser::debug ( )
inline

Definition at line 199 of file bin_parser.h.

template<typename T >
T BinParser::decode ( val)
inline

Definition at line 57 of file bin_parser.h.

uint16_t BinParser::decode ( uint16_t  val)
inline

Definition at line 61 of file bin_parser.h.

uint32_t BinParser::decode ( uint32_t  val)
inline

Definition at line 65 of file bin_parser.h.

uint64_t BinParser::decode ( uint64_t  val)
inline

Definition at line 69 of file bin_parser.h.

int16_t BinParser::decode ( int16_t  val)
inline

Definition at line 73 of file bin_parser.h.

int32_t BinParser::decode ( int32_t  val)
inline

Definition at line 77 of file bin_parser.h.

int64_t BinParser::decode ( int64_t  val)
inline

Definition at line 81 of file bin_parser.h.

bool BinParser::empty ( )
inline

Definition at line 194 of file bin_parser.h.

template<typename T >
void BinParser::parse ( T &  val)
inline

Definition at line 96 of file bin_parser.h.

void BinParser::parse ( double &  val)
inline

Definition at line 102 of file bin_parser.h.

void BinParser::parse ( float &  val)
inline

Definition at line 108 of file bin_parser.h.

void BinParser::parse ( bool &  val)
inline

Definition at line 117 of file bin_parser.h.

void BinParser::parse ( double3_t val)
inline

Definition at line 125 of file bin_parser.h.

void BinParser::parse ( cartesian_coord_t val)
inline

Definition at line 133 of file bin_parser.h.

void BinParser::parse ( std::string &  val,
size_t  len 
)
inline

Definition at line 144 of file bin_parser.h.

void BinParser::parse ( std::string &  val)
inline

Definition at line 151 of file bin_parser.h.

template<typename T , size_t N>
void BinParser::parse ( std::array< T, N > &  array)
inline

Definition at line 159 of file bin_parser.h.

template<typename T , size_t N>
void BinParser::parse ( std::bitset< N > &  set)
inline

Definition at line 168 of file bin_parser.h.

void BinParser::parse_remainder ( std::string &  val)
inline

Definition at line 139 of file bin_parser.h.

template<typename T >
T BinParser::peek ( )
inline

Definition at line 87 of file bin_parser.h.

Member Data Documentation

uint8_t * BinParser::buf_end_
private

Definition at line 35 of file bin_parser.h.

uint8_t* BinParser::buf_pos_
private

Definition at line 35 of file bin_parser.h.

BinParser& BinParser::parent_
private

Definition at line 36 of file bin_parser.h.


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


ur_modern_driver
Author(s): Thomas Timm Andersen, Simon Rasmussen
autogenerated on Fri Jun 26 2020 03:37:01