Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
canopen::ObjectDict Class Reference

#include <objdict.h>

List of all members.

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 Entryoperator() (uint16_t i) const
const Entryoperator() (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_

Detailed Description

Definition at line 116 of file objdict.h.


Member Typedef Documentation

typedef boost::error_info<struct tag_objectdict_key, ObjectDict::Key> canopen::ObjectDict::key_info

Definition at line 210 of file objdict.h.

typedef std::list<std::pair<std::string, std::string> > canopen::ObjectDict::Overlay

Definition at line 205 of file objdict.h.


Member Enumeration Documentation

Enumerator:
NULL_DATA 
DOMAIN_DATA 
DEFTYPE 
DEFSTRUCT 
VAR 
ARRAY 
RECORD 

Definition at line 132 of file objdict.h.

Enumerator:
DEFTYPE_INTEGER8 
DEFTYPE_INTEGER16 
DEFTYPE_INTEGER32 
DEFTYPE_UNSIGNED8 
DEFTYPE_UNSIGNED16 
DEFTYPE_UNSIGNED32 
DEFTYPE_REAL32 
DEFTYPE_VISIBLE_STRING 
DEFTYPE_OCTET_STRING 
DEFTYPE_UNICODE_STRING 
DEFTYPE_DOMAIN 
DEFTYPE_REAL64 
DEFTYPE_INTEGER64 
DEFTYPE_UNSIGNED64 

Definition at line 141 of file objdict.h.


Constructor & Destructor Documentation

canopen::ObjectDict::ObjectDict ( const DeviceInfo info) [inline]

Definition at line 209 of file objdict.h.


Member Function Documentation

const boost::shared_ptr<const Entry>& canopen::ObjectDict::at ( const Key key) const [inline, protected]

Definition at line 212 of file objdict.h.

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]

Definition at line 188 of file objdict.h.

bool canopen::ObjectDict::has ( uint16_t  i,
uint8_t  s 
) const [inline]

Definition at line 191 of file objdict.h.

bool canopen::ObjectDict::has ( uint16_t  i) const [inline]

Definition at line 194 of file objdict.h.

bool canopen::ObjectDict::has ( const Key k) const [inline]

Definition at line 197 of file objdict.h.

bool canopen::ObjectDict::insert ( bool  is_sub,
boost::shared_ptr< const Entry e 
) [inline]

Definition at line 200 of file objdict.h.

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]

Definition at line 182 of file objdict.h.

const Entry& canopen::ObjectDict::operator() ( uint16_t  i,
uint8_t  s 
) const [inline]

Definition at line 185 of file objdict.h.


Member Data Documentation

Definition at line 207 of file objdict.h.

boost::unordered_map<Key, boost::shared_ptr<const Entry> > canopen::ObjectDict::dict_ [protected]

Definition at line 221 of file objdict.h.


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


canopen_master
Author(s): Mathias Lüdtke
autogenerated on Thu Jun 6 2019 20:43:54