#include <objdict.h>
Classes | |
| struct | Entry |
| class | Key |
Public Types | |
| enum | Code { NULL_DATA = 0x00, DOMAIN_DATA = 0x02, DEFTYPE = 0x05, DEFSTRUCT = 0x06, VAR = 0x07, ARRAY = 0x08, RECORD = 0x09 } |
| enum | DataTypes { DEFTYPE_INTEGER8 = 0x0002, DEFTYPE_INTEGER16 = 0x0003, DEFTYPE_INTEGER32 = 0x0004, DEFTYPE_UNSIGNED8 = 0x0005, DEFTYPE_UNSIGNED16 = 0x0006, DEFTYPE_UNSIGNED32 = 0x0007, DEFTYPE_REAL32 = 0x0008, DEFTYPE_VISIBLE_STRING = 0x0009, DEFTYPE_OCTET_STRING = 0x000A, DEFTYPE_UNICODE_STRING = 0x000B, DEFTYPE_DOMAIN = 0x000F, DEFTYPE_REAL64 = 0x0010, DEFTYPE_INTEGER64 = 0x0015, DEFTYPE_UNSIGNED64 = 0x001B } |
| typedef boost::error_info < struct tag_objectdict_key, ObjectDict::Key > | key_info |
| typedef std::list< std::pair < std::string, std::string > > | Overlay |
Public Member Functions | |
| const boost::shared_ptr< const Entry > & | get (const Key &k) const |
| bool | has (uint16_t i, uint8_t s) const |
| bool | has (uint16_t i) const |
| bool | has (const Key &k) const |
| bool | insert (bool is_sub, boost::shared_ptr< const Entry > e) |
| bool | iterate (boost::unordered_map< Key, boost::shared_ptr< const Entry > >::const_iterator &it) const |
| ObjectDict (const DeviceInfo &info) | |
| const Entry & | operator() (uint16_t i) const |
| const Entry & | operator() (uint16_t i, uint8_t s) const |
Static Public Member Functions | |
| static boost::shared_ptr < ObjectDict > | fromFile (const std::string &path, const Overlay &overlay=Overlay()) |
Public Attributes | |
| const DeviceInfo | device_info |
Protected Member Functions | |
| const boost::shared_ptr< const Entry > & | at (const Key &key) const |
Protected Attributes | |
| boost::unordered_map< Key, boost::shared_ptr< const Entry > > | dict_ |
| typedef boost::error_info<struct tag_objectdict_key, ObjectDict::Key> canopen::ObjectDict::key_info |
| typedef std::list<std::pair<std::string, std::string> > canopen::ObjectDict::Overlay |
| canopen::ObjectDict::ObjectDict | ( | const DeviceInfo & | info | ) | [inline] |
| const boost::shared_ptr<const Entry>& canopen::ObjectDict::at | ( | const Key & | key | ) | const [inline, protected] |
| boost::shared_ptr< ObjectDict > ObjectDict::fromFile | ( | const std::string & | path, |
| const Overlay & | overlay = Overlay() |
||
| ) | [static] |
Definition at line 267 of file objdict.cpp.
| const boost::shared_ptr<const Entry>& canopen::ObjectDict::get | ( | const Key & | k | ) | const [inline] |
| bool canopen::ObjectDict::has | ( | uint16_t | i, |
| uint8_t | s | ||
| ) | const [inline] |
| bool canopen::ObjectDict::has | ( | uint16_t | i | ) | const [inline] |
| bool canopen::ObjectDict::has | ( | const Key & | k | ) | const [inline] |
| bool canopen::ObjectDict::insert | ( | bool | is_sub, |
| boost::shared_ptr< const Entry > | e | ||
| ) | [inline] |
| bool ObjectDict::iterate | ( | boost::unordered_map< Key, boost::shared_ptr< const Entry > >::const_iterator & | it | ) | const |
Definition at line 78 of file objdict.cpp.
| const Entry& canopen::ObjectDict::operator() | ( | uint16_t | i | ) | const [inline] |
| const Entry& canopen::ObjectDict::operator() | ( | uint16_t | i, |
| uint8_t | s | ||
| ) | const [inline] |
boost::unordered_map<Key, boost::shared_ptr<const Entry> > canopen::ObjectDict::dict_ [protected] |