Classes | Namespaces | Functions
objdict.cpp File Reference
#include <canopen_master/objdict.h>
#include <socketcan_interface/string.h>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ini_parser.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
Include dependency graph for objdict.cpp:

Go to the source code of this file.

Classes

struct  PrintValue
 
struct  ReadAnyValue
 
struct  WriteStringValue
 

Namespaces

 canopen
 

Functions

template<const ObjectDict::DataTypes dt, typename T >
std::string formatValue (const T &value)
 
template<>
std::string formatValue< ObjectDict::DEFTYPE_DOMAIN > (const std::string &value)
 
template<>
std::string formatValue< ObjectDict::DEFTYPE_OCTET_STRING > (const std::string &value)
 
std::size_t canopen::hash_value (ObjectDict::Key const &k)
 
template<typename T >
int_from_string (const std::string &s)
 
template<>
int8_t int_from_string (const std::string &s)
 
std::ostream & canopen::operator<< (std::ostream &stream, const ObjectDict::Key &k)
 
template<typename T >
HoldAny parse_int (boost::property_tree::iptree &pt, const std::string &key)
 
void parse_object (ObjectDictSharedPtr dict, boost::property_tree::iptree &pt, const std::string &name, const uint8_t *sub_index=0)
 
void parse_objects (ObjectDictSharedPtr dict, boost::property_tree::iptree &pt, const std::string &key)
 
template<typename T >
HoldAny parse_octets (boost::property_tree::iptree &pt, const std::string &key)
 
template<typename T >
HoldAny parse_typed_value (boost::property_tree::iptree &pt, const std::string &key)
 
template<>
HoldAny parse_typed_value< String > (boost::property_tree::iptree &pt, const std::string &key)
 
template<typename T >
read_integer (boost::property_tree::iptree &pt, const std::string &key)
 
template<typename T >
void read_integer (T &var, boost::property_tree::iptree &pt, const std::string &key)
 
template<typename T >
void read_optional (T &var, boost::property_tree::iptree &pt, const std::string &key)
 
void read_var (ObjectDict::Entry &entry, boost::property_tree::iptree &object)
 
template<>
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_DOMAIN > (boost::property_tree::iptree &pt, const std::string &key)
 
template<>
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_INTEGER16 > (boost::property_tree::iptree &pt, const std::string &key)
 
template<>
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_INTEGER32 > (boost::property_tree::iptree &pt, const std::string &key)
 
template<>
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_INTEGER64 > (boost::property_tree::iptree &pt, const std::string &key)
 
template<>
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_INTEGER8 > (boost::property_tree::iptree &pt, const std::string &key)
 
template<>
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_OCTET_STRING > (boost::property_tree::iptree &pt, const std::string &key)
 
template<>
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_UNSIGNED16 > (boost::property_tree::iptree &pt, const std::string &key)
 
template<>
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_UNSIGNED32 > (boost::property_tree::iptree &pt, const std::string &key)
 
template<>
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_UNSIGNED64 > (boost::property_tree::iptree &pt, const std::string &key)
 
template<>
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_UNSIGNED8 > (boost::property_tree::iptree &pt, const std::string &key)
 
void set_access (ObjectDict::Entry &entry, std::string access)
 

Function Documentation

◆ formatValue()

template<const ObjectDict::DataTypes dt, typename T >
std::string formatValue ( const T &  value)

Definition at line 426 of file objdict.cpp.

◆ formatValue< ObjectDict::DEFTYPE_DOMAIN >()

template<>
std::string formatValue< ObjectDict::DEFTYPE_DOMAIN > ( const std::string &  value)

Definition at line 431 of file objdict.cpp.

◆ formatValue< ObjectDict::DEFTYPE_OCTET_STRING >()

template<>
std::string formatValue< ObjectDict::DEFTYPE_OCTET_STRING > ( const std::string &  value)

Definition at line 434 of file objdict.cpp.

◆ int_from_string() [1/2]

template<typename T >
T int_from_string ( const std::string &  s)

Definition at line 112 of file objdict.cpp.

◆ int_from_string() [2/2]

template<>
uint64_t int_from_string ( const std::string &  s)

Definition at line 112 of file objdict.cpp.

◆ parse_int()

template<typename T >
HoldAny parse_int ( boost::property_tree::iptree &  pt,
const std::string &  key 
)

Definition at line 138 of file objdict.cpp.

◆ parse_object()

void parse_object ( ObjectDictSharedPtr  dict,
boost::property_tree::iptree &  pt,
const std::string &  name,
const uint8_t *  sub_index = 0 
)

Definition at line 215 of file objdict.cpp.

◆ parse_objects()

void parse_objects ( ObjectDictSharedPtr  dict,
boost::property_tree::iptree &  pt,
const std::string &  key 
)

Definition at line 264 of file objdict.cpp.

◆ parse_octets()

template<typename T >
HoldAny parse_octets ( boost::property_tree::iptree &  pt,
const std::string &  key 
)

Definition at line 147 of file objdict.cpp.

◆ parse_typed_value()

template<typename T >
HoldAny parse_typed_value ( boost::property_tree::iptree &  pt,
const std::string &  key 
)

Definition at line 153 of file objdict.cpp.

◆ parse_typed_value< String >()

template<>
HoldAny parse_typed_value< String > ( boost::property_tree::iptree &  pt,
const std::string &  key 
)

Definition at line 157 of file objdict.cpp.

◆ read_integer() [1/2]

template<typename T >
T read_integer ( boost::property_tree::iptree &  pt,
const std::string &  key 
)

Definition at line 196 of file objdict.cpp.

◆ read_integer() [2/2]

template<typename T >
void read_integer ( T &  var,
boost::property_tree::iptree &  pt,
const std::string &  key 
)

Definition at line 192 of file objdict.cpp.

◆ read_optional()

template<typename T >
void read_optional ( T &  var,
boost::property_tree::iptree &  pt,
const std::string &  key 
)

Definition at line 188 of file objdict.cpp.

◆ read_var()

void read_var ( ObjectDict::Entry entry,
boost::property_tree::iptree &  object 
)

Definition at line 201 of file objdict.cpp.

◆ ReadAnyValue::func< ObjectDict::DEFTYPE_DOMAIN >()

template<>
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_DOMAIN > ( boost::property_tree::iptree &  pt,
const std::string &  key 
)

Definition at line 178 of file objdict.cpp.

◆ ReadAnyValue::func< ObjectDict::DEFTYPE_INTEGER16 >()

template<>
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_INTEGER16 > ( boost::property_tree::iptree &  pt,
const std::string &  key 
)

Definition at line 169 of file objdict.cpp.

◆ ReadAnyValue::func< ObjectDict::DEFTYPE_INTEGER32 >()

template<>
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_INTEGER32 > ( boost::property_tree::iptree &  pt,
const std::string &  key 
)

Definition at line 170 of file objdict.cpp.

◆ ReadAnyValue::func< ObjectDict::DEFTYPE_INTEGER64 >()

template<>
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_INTEGER64 > ( boost::property_tree::iptree &  pt,
const std::string &  key 
)

Definition at line 171 of file objdict.cpp.

◆ ReadAnyValue::func< ObjectDict::DEFTYPE_INTEGER8 >()

template<>
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_INTEGER8 > ( boost::property_tree::iptree &  pt,
const std::string &  key 
)

Definition at line 168 of file objdict.cpp.

◆ ReadAnyValue::func< ObjectDict::DEFTYPE_OCTET_STRING >()

template<>
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_OCTET_STRING > ( boost::property_tree::iptree &  pt,
const std::string &  key 
)

Definition at line 181 of file objdict.cpp.

◆ ReadAnyValue::func< ObjectDict::DEFTYPE_UNSIGNED16 >()

template<>
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_UNSIGNED16 > ( boost::property_tree::iptree &  pt,
const std::string &  key 
)

Definition at line 174 of file objdict.cpp.

◆ ReadAnyValue::func< ObjectDict::DEFTYPE_UNSIGNED32 >()

template<>
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_UNSIGNED32 > ( boost::property_tree::iptree &  pt,
const std::string &  key 
)

Definition at line 175 of file objdict.cpp.

◆ ReadAnyValue::func< ObjectDict::DEFTYPE_UNSIGNED64 >()

template<>
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_UNSIGNED64 > ( boost::property_tree::iptree &  pt,
const std::string &  key 
)

Definition at line 176 of file objdict.cpp.

◆ ReadAnyValue::func< ObjectDict::DEFTYPE_UNSIGNED8 >()

template<>
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_UNSIGNED8 > ( boost::property_tree::iptree &  pt,
const std::string &  key 
)

Definition at line 173 of file objdict.cpp.

◆ set_access()

void set_access ( ObjectDict::Entry entry,
std::string  access 
)

Definition at line 83 of file objdict.cpp.



canopen_master
Author(s): Mathias Lüdtke
autogenerated on Wed Mar 2 2022 00:52:26