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

#include <objdict.h>

List of all members.

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_

Detailed Description

Definition at line 263 of file objdict.h.


Member Typedef Documentation

Definition at line 265 of file objdict.h.

Definition at line 266 of file objdict.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

template<typename T >
Entry<T> canopen::ObjectStorage::entry ( const ObjectDict::Key key) [inline]

Definition at line 445 of file objdict.h.

template<typename T >
Entry<T> canopen::ObjectStorage::entry ( uint16_t  index) [inline]

Definition at line 479 of file objdict.h.

template<typename T >
Entry<T> canopen::ObjectStorage::entry ( uint16_t  index,
uint8_t  sub_index 
) [inline]

Definition at line 482 of file objdict.h.

template<typename T >
void canopen::ObjectStorage::entry ( Entry< T > &  e,
uint16_t  index 
) [inline]

Definition at line 486 of file objdict.h.

template<typename T >
void canopen::ObjectStorage::entry ( Entry< T > &  e,
uint16_t  index,
uint8_t  sub_index 
) [inline]

Definition at line 489 of file objdict.h.

template<typename T >
bool canopen::ObjectStorage::entry ( Entry< T > &  e,
const ObjectDict::Key k 
) [inline]

Definition at line 492 of file objdict.h.

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.

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.

Definition at line 412 of file objdict.cpp.


Member Data Documentation

const boost::shared_ptr<const ObjectDict> canopen::ObjectStorage::dict_

Definition at line 503 of file objdict.h.

boost::function< void(const std::string &)> ObjectStorage::getStringWriter

Definition at line 501 of file objdict.h.

boost::mutex canopen::ObjectStorage::mutex_ [protected]

Definition at line 437 of file objdict.h.

Definition at line 504 of file objdict.h.

Definition at line 441 of file objdict.h.

boost::unordered_map<ObjectDict::Key, boost::shared_ptr<Data> > canopen::ObjectStorage::storage_ [protected]

Definition at line 436 of file objdict.h.

Definition at line 442 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