#include <objdict.h>
Public Types | |
| typedef boost::shared_ptr< ObjectStorage > | ObjectStorageSharedPtr |
| typedef fastdelegate::FastDelegate2< const ObjectDict::Entry &, String & > | ReadDelegate |
| typedef boost::function< std::string()> | ReadStringFuncType |
| typedef fastdelegate::FastDelegate2< const ObjectDict::Entry &, const String & > | WriteDelegate |
| typedef boost::function< void(const std::string &)> | WriteStringFuncType |
Public Member Functions | |
| template<typename T > | |
| Entry< T > | entry (const ObjectDict::Key &key) |
| template<typename T > | |
| Entry< T > | entry (uint16_t index) |
| template<typename T > | |
| Entry< T > | entry (uint16_t index, uint8_t sub_index) |
| template<typename T > | |
| void | entry (Entry< T > &e, uint16_t index) |
| template<typename T > | |
| void | entry (Entry< T > &e, uint16_t index, uint8_t sub_index) |
| template<typename T > | |
| bool | entry (Entry< T > &e, const ObjectDict::Key &k) |
| ReadStringFuncType | getStringReader (const ObjectDict::Key &key, bool cached=false) |
| WriteStringFuncType | getStringWriter (const ObjectDict::Key &key, bool cached=false) |
| void | init (const ObjectDict::Key &key) |
| void | init_all () |
| size_t | map (uint16_t index, uint8_t sub_index, const ReadDelegate &read_delegate, const WriteDelegate &write_delegate) |
| ObjectStorage (ObjectDictConstSharedPtr dict, uint8_t node_id, ReadDelegate read_delegate, WriteDelegate write_delegate) | |
| void | reset () |
Public Attributes | |
| const ObjectDictConstSharedPtr | dict_ |
| const uint8_t | node_id_ |
Protected Types | |
| typedef boost::shared_ptr< Data > | DataSharedPtr |
Protected Member Functions | |
| void | init_nolock (const ObjectDict::Key &key, const ObjectDict::EntryConstSharedPtr &entry) |
| size_t | map (const ObjectDict::EntryConstSharedPtr &e, const ObjectDict::Key &key, const ReadDelegate &read_delegate, const WriteDelegate &write_delegate) |
Protected Attributes | |
| boost::mutex | mutex_ |
| ReadDelegate | read_delegate_ |
| boost::unordered_map< ObjectDict::Key, DataSharedPtr > | storage_ |
| WriteDelegate | write_delegate_ |
|
protected |
| typedef boost::shared_ptr<ObjectStorage> canopen::ObjectStorage::ObjectStorageSharedPtr |
| typedef fastdelegate::FastDelegate2<const ObjectDict::Entry&, String &> canopen::ObjectStorage::ReadDelegate |
| typedef boost::function<std::string()> canopen::ObjectStorage::ReadStringFuncType |
| typedef fastdelegate::FastDelegate2<const ObjectDict::Entry&, const String &> canopen::ObjectStorage::WriteDelegate |
| typedef boost::function<void(const std::string &)> canopen::ObjectStorage::WriteStringFuncType |
| ObjectStorage::ObjectStorage | ( | ObjectDictConstSharedPtr | dict, |
| uint8_t | node_id, | ||
| ReadDelegate | read_delegate, | ||
| WriteDelegate | write_delegate | ||
| ) |
Definition at line 384 of file objdict.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| ObjectStorage::ReadStringFuncType ObjectStorage::getStringReader | ( | const ObjectDict::Key & | key, |
| bool | cached = false |
||
| ) |
Definition at line 450 of file objdict.cpp.
| ObjectStorage::WriteStringFuncType ObjectStorage::getStringWriter | ( | const ObjectDict::Key & | key, |
| bool | cached = false |
||
| ) |
Definition at line 477 of file objdict.cpp.
| void ObjectStorage::init | ( | const ObjectDict::Key & | key | ) |
Definition at line 407 of file objdict.cpp.
| void ObjectStorage::init_all | ( | ) |
Definition at line 411 of file objdict.cpp.
|
protected |
Definition at line 391 of file objdict.cpp.
|
protected |
Definition at line 334 of file objdict.cpp.
| size_t ObjectStorage::map | ( | uint16_t | index, |
| uint8_t | sub_index, | ||
| const ReadDelegate & | read_delegate, | ||
| const WriteDelegate & | write_delegate | ||
| ) |
Definition at line 367 of file objdict.cpp.
| void ObjectStorage::reset | ( | ) |
Definition at line 420 of file objdict.cpp.
| const ObjectDictConstSharedPtr canopen::ObjectStorage::dict_ |
|
protected |
|
protected |
|
protected |