#include <objdict.h>
Classes | |
class | Data |
struct | DataType |
struct | DataType< ObjectDict::DEFTYPE_DOMAIN > |
struct | DataType< ObjectDict::DEFTYPE_INTEGER16 > |
struct | DataType< ObjectDict::DEFTYPE_INTEGER32 > |
struct | DataType< ObjectDict::DEFTYPE_INTEGER64 > |
struct | DataType< ObjectDict::DEFTYPE_INTEGER8 > |
struct | DataType< ObjectDict::DEFTYPE_OCTET_STRING > |
struct | DataType< ObjectDict::DEFTYPE_REAL32 > |
struct | DataType< ObjectDict::DEFTYPE_REAL64 > |
struct | DataType< ObjectDict::DEFTYPE_UNICODE_STRING > |
struct | DataType< ObjectDict::DEFTYPE_UNSIGNED16 > |
struct | DataType< ObjectDict::DEFTYPE_UNSIGNED32 > |
struct | DataType< ObjectDict::DEFTYPE_UNSIGNED64 > |
struct | DataType< ObjectDict::DEFTYPE_UNSIGNED8 > |
struct | DataType< ObjectDict::DEFTYPE_VISIBLE_STRING > |
class | Entry |
Public Types | |
typedef fastdelegate::FastDelegate2 < const ObjectDict::Entry &, String & > | ReadDelegate |
typedef fastdelegate::FastDelegate2 < const ObjectDict::Entry &, const String & > | WriteDelegate |
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) |
boost::function< std::string()> | getStringReader (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 (boost::shared_ptr< const ObjectDict > dict, uint8_t node_id, ReadDelegate read_delegate, WriteDelegate write_delegate) | |
void | reset () |
Public Attributes | |
const boost::shared_ptr< const ObjectDict > | dict_ |
boost::function< void(const std::string &)> | getStringWriter (const ObjectDict::Key &key, bool cached=false) |
const uint8_t | node_id_ |
Protected Member Functions | |
void | init_nolock (const ObjectDict::Key &key, const boost::shared_ptr< const ObjectDict::Entry > &entry) |
size_t | map (const boost::shared_ptr< const ObjectDict::Entry > &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, boost::shared_ptr< Data > > | storage_ |
WriteDelegate | write_delegate_ |
typedef fastdelegate::FastDelegate2<const ObjectDict::Entry&, String &> canopen::ObjectStorage::ReadDelegate |
typedef fastdelegate::FastDelegate2<const ObjectDict::Entry&, const String &> canopen::ObjectStorage::WriteDelegate |
ObjectStorage::ObjectStorage | ( | boost::shared_ptr< const ObjectDict > | dict, |
uint8_t | node_id, | ||
ReadDelegate | read_delegate, | ||
WriteDelegate | write_delegate | ||
) |
Definition at line 376 of file objdict.cpp.
Entry<T> canopen::ObjectStorage::entry | ( | const ObjectDict::Key & | key | ) | [inline] |
Entry<T> canopen::ObjectStorage::entry | ( | uint16_t | index | ) | [inline] |
Entry<T> canopen::ObjectStorage::entry | ( | uint16_t | index, |
uint8_t | sub_index | ||
) | [inline] |
void canopen::ObjectStorage::entry | ( | Entry< T > & | e, |
uint16_t | index | ||
) | [inline] |
void canopen::ObjectStorage::entry | ( | Entry< T > & | e, |
uint16_t | index, | ||
uint8_t | sub_index | ||
) | [inline] |
bool canopen::ObjectStorage::entry | ( | Entry< T > & | e, |
const ObjectDict::Key & | k | ||
) | [inline] |
boost::function< std::string()> ObjectStorage::getStringReader | ( | const ObjectDict::Key & | key, |
bool | cached = false |
||
) |
Definition at line 442 of file objdict.cpp.
void ObjectStorage::init | ( | const ObjectDict::Key & | key | ) |
Definition at line 399 of file objdict.cpp.
void ObjectStorage::init_all | ( | ) |
Definition at line 403 of file objdict.cpp.
void ObjectStorage::init_nolock | ( | const ObjectDict::Key & | key, |
const boost::shared_ptr< const ObjectDict::Entry > & | entry | ||
) | [protected] |
Definition at line 383 of file objdict.cpp.
size_t ObjectStorage::map | ( | const boost::shared_ptr< const ObjectDict::Entry > & | e, |
const ObjectDict::Key & | key, | ||
const ReadDelegate & | read_delegate, | ||
const WriteDelegate & | write_delegate | ||
) | [protected] |
Definition at line 326 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 359 of file objdict.cpp.
void ObjectStorage::reset | ( | ) |
Definition at line 412 of file objdict.cpp.
const boost::shared_ptr<const ObjectDict> canopen::ObjectStorage::dict_ |
boost::function< void(const std::string &)> ObjectStorage::getStringWriter |
boost::mutex canopen::ObjectStorage::mutex_ [protected] |
const uint8_t canopen::ObjectStorage::node_id_ |
ReadDelegate canopen::ObjectStorage::read_delegate_ [protected] |
boost::unordered_map<ObjectDict::Key, boost::shared_ptr<Data> > canopen::ObjectStorage::storage_ [protected] |
WriteDelegate canopen::ObjectStorage::write_delegate_ [protected] |