Unify Framework Lib 1.6.0
dotdot_bitmap Class Reference

#include <dotdot_bitmap.hpp>

Public Member Functions

 dotdot_bitmap (const std::string &input_attribute_name, const std::string &input_map_type, const std::vector< std::pair< std::vector< std::string >, std::vector< std::vector< std::string > > > > &input_bitmap_data)
 
std::vector< std::pair< std::string, std::string > > get_bitmap_values (uint32_t bitmap_value) const
 
nlohmann::json get_bitmap_values_as_json_tree (uint32_t bitmap_value) const
 
uint32_t get_bitmap_state_value_from_json_tree (nlohmann::json &bitmap_jsn) const
 

Private Member Functions

std::string get_enum_name_of_element_by_value (std::vector< std::vector< std::string > > enum_element, uint32_t enum_idx) const
 
uint32_t get_enum_value_of_element_by_name (std::vector< std::vector< std::string > > enum_element, const std::string &name) const
 
uint32_t convert_hex_string_to_uint32_t (const std::string &hex) const
 

Private Attributes

const uint8_t idx_name = 0
 
const uint8_t idx_type = 1
 
const uint8_t idx_mask = 2
 
const uint8_t idx_shiftright = 3
 
const std::string attribute_name
 
const std::string map_type_string
 
const std::vector< std::pair< std::vector< std::string >, std::vector< std::vector< std::string > > > > bitmap_data
 

Constructor & Destructor Documentation

◆ dotdot_bitmap()

dotdot_bitmap::dotdot_bitmap ( const std::string &  input_attribute_name,
const std::string &  input_map_type,
const std::vector< std::pair< std::vector< std::string >, std::vector< std::vector< std::string > > > > &  input_bitmap_data 
)
inline

Member Function Documentation

◆ convert_hex_string_to_uint32_t()

uint32_t dotdot_bitmap::convert_hex_string_to_uint32_t ( const std::string &  hex) const
private

◆ get_bitmap_state_value_from_json_tree()

uint32_t dotdot_bitmap::get_bitmap_state_value_from_json_tree ( nlohmann::json &  bitmap_jsn) const

◆ get_bitmap_values()

std::vector< std::pair< std::string, std::string > > dotdot_bitmap::get_bitmap_values ( uint32_t  bitmap_value) const

◆ get_bitmap_values_as_json_tree()

nlohmann::json dotdot_bitmap::get_bitmap_values_as_json_tree ( uint32_t  bitmap_value) const

◆ get_enum_name_of_element_by_value()

std::string dotdot_bitmap::get_enum_name_of_element_by_value ( std::vector< std::vector< std::string > >  enum_element,
uint32_t  enum_idx 
) const
private

◆ get_enum_value_of_element_by_name()

uint32_t dotdot_bitmap::get_enum_value_of_element_by_name ( std::vector< std::vector< std::string > >  enum_element,
const std::string &  name 
) const
private

Member Data Documentation

◆ attribute_name

const std::string dotdot_bitmap::attribute_name
private

◆ bitmap_data

const std::vector< std::pair<std::vector<std::string>, std::vector<std::vector<std::string> > > > dotdot_bitmap::bitmap_data
private

◆ idx_mask

const uint8_t dotdot_bitmap::idx_mask = 2
private

◆ idx_name

const uint8_t dotdot_bitmap::idx_name = 0
private

◆ idx_shiftright

const uint8_t dotdot_bitmap::idx_shiftright = 3
private

◆ idx_type

const uint8_t dotdot_bitmap::idx_type = 1
private

◆ map_type_string

const std::string dotdot_bitmap::map_type_string
private

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