#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/foreach.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
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 > | |
T | int_from_string (const std::string &s) |
template<> | |
int8_t | int_from_string (const std::string &s) |
template<> | |
uint8_t | int_from_string (const std::string &s) |
template<> | |
int16_t | int_from_string (const std::string &s) |
template<> | |
uint16_t | int_from_string (const std::string &s) |
template<> | |
int32_t | int_from_string (const std::string &s) |
template<> | |
uint32_t | int_from_string (const std::string &s) |
template<> | |
int64_t | int_from_string (const std::string &s) |
template<> | |
uint64_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 > | |
void | read_integer (T &var, boost::property_tree::iptree &pt, const std::string &key) |
template<typename T > | |
T | read_integer (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) |
std::string formatValue | ( | const T & | value | ) |
Definition at line 427 of file objdict.cpp.
std::string formatValue< ObjectDict::DEFTYPE_DOMAIN > | ( | const std::string & | value | ) |
Definition at line 432 of file objdict.cpp.
std::string formatValue< ObjectDict::DEFTYPE_OCTET_STRING > | ( | const std::string & | value | ) |
Definition at line 435 of file objdict.cpp.
T int_from_string | ( | const std::string & | s | ) |
Definition at line 113 of file objdict.cpp.
int8_t int_from_string | ( | const std::string & | s | ) |
Definition at line 113 of file objdict.cpp.
uint8_t int_from_string | ( | const std::string & | s | ) |
Definition at line 116 of file objdict.cpp.
int16_t int_from_string | ( | const std::string & | s | ) |
Definition at line 119 of file objdict.cpp.
uint16_t int_from_string | ( | const std::string & | s | ) |
Definition at line 122 of file objdict.cpp.
int32_t int_from_string | ( | const std::string & | s | ) |
Definition at line 125 of file objdict.cpp.
uint32_t int_from_string | ( | const std::string & | s | ) |
Definition at line 128 of file objdict.cpp.
int64_t int_from_string | ( | const std::string & | s | ) |
Definition at line 132 of file objdict.cpp.
uint64_t int_from_string | ( | const std::string & | s | ) |
Definition at line 135 of file objdict.cpp.
HoldAny parse_int | ( | boost::property_tree::iptree & | pt, |
const std::string & | key | ||
) |
Definition at line 139 of file objdict.cpp.
void parse_object | ( | ObjectDictSharedPtr | dict, |
boost::property_tree::iptree & | pt, | ||
const std::string & | name, | ||
const uint8_t * | sub_index = 0 |
||
) |
Definition at line 216 of file objdict.cpp.
void parse_objects | ( | ObjectDictSharedPtr | dict, |
boost::property_tree::iptree & | pt, | ||
const std::string & | key | ||
) |
Definition at line 265 of file objdict.cpp.
HoldAny parse_octets | ( | boost::property_tree::iptree & | pt, |
const std::string & | key | ||
) |
Definition at line 148 of file objdict.cpp.
HoldAny parse_typed_value | ( | boost::property_tree::iptree & | pt, |
const std::string & | key | ||
) |
Definition at line 154 of file objdict.cpp.
HoldAny parse_typed_value< String > | ( | boost::property_tree::iptree & | pt, |
const std::string & | key | ||
) |
Definition at line 158 of file objdict.cpp.
void read_integer | ( | T & | var, |
boost::property_tree::iptree & | pt, | ||
const std::string & | key | ||
) |
Definition at line 193 of file objdict.cpp.
T read_integer | ( | boost::property_tree::iptree & | pt, |
const std::string & | key | ||
) |
Definition at line 197 of file objdict.cpp.
void read_optional | ( | T & | var, |
boost::property_tree::iptree & | pt, | ||
const std::string & | key | ||
) |
Definition at line 189 of file objdict.cpp.
void read_var | ( | ObjectDict::Entry & | entry, |
boost::property_tree::iptree & | object | ||
) |
Definition at line 202 of file objdict.cpp.
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_DOMAIN > | ( | boost::property_tree::iptree & | pt, |
const std::string & | key | ||
) |
Definition at line 179 of file objdict.cpp.
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_INTEGER16 > | ( | boost::property_tree::iptree & | pt, |
const std::string & | key | ||
) |
Definition at line 170 of file objdict.cpp.
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_INTEGER32 > | ( | boost::property_tree::iptree & | pt, |
const std::string & | key | ||
) |
Definition at line 171 of file objdict.cpp.
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_INTEGER64 > | ( | boost::property_tree::iptree & | pt, |
const std::string & | key | ||
) |
Definition at line 172 of file objdict.cpp.
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_INTEGER8 > | ( | boost::property_tree::iptree & | pt, |
const std::string & | key | ||
) |
Definition at line 169 of file objdict.cpp.
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_OCTET_STRING > | ( | boost::property_tree::iptree & | pt, |
const std::string & | key | ||
) |
Definition at line 182 of file objdict.cpp.
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_UNSIGNED16 > | ( | boost::property_tree::iptree & | pt, |
const std::string & | key | ||
) |
Definition at line 175 of file objdict.cpp.
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_UNSIGNED32 > | ( | boost::property_tree::iptree & | pt, |
const std::string & | key | ||
) |
Definition at line 176 of file objdict.cpp.
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_UNSIGNED64 > | ( | boost::property_tree::iptree & | pt, |
const std::string & | key | ||
) |
Definition at line 177 of file objdict.cpp.
HoldAny ReadAnyValue::func< ObjectDict::DEFTYPE_UNSIGNED8 > | ( | boost::property_tree::iptree & | pt, |
const std::string & | key | ||
) |
Definition at line 174 of file objdict.cpp.
void set_access | ( | ObjectDict::Entry & | entry, |
std::string | access | ||
) |
Definition at line 84 of file objdict.cpp.