File Information
Library: IoT/CANopen
Package: CANopen
Header: IoT/CANopen/Object.h
Description
A generic class for array objects that works with all integer types, bool, as well as float, double and std::string (via specialization).
Inheritance
Direct Base Classes: Object
All Base Classes: Object, Poco::RefCountedObject
Member Summary
Member Functions: access, code, get, max, min, read, set, size, type, write
Inherited Functions: access, code, copy, duplicate, read, referenceCount, release, structure, type, write, writeImpl
Types
Ptr
typedef Poco::AutoPtr < ArrayObject > Ptr;
Type
typedef T Type;
Constructors
ArrayObject
ArrayObject(
std::size_t size,
Object::Access access = OBJ_ACCESS_RW
);
ArrayObject
ArrayObject(
const std::vector < T > & values,
Object::Access access = OBJ_ACCESS_RW
);
ArrayObject
ArrayObject(
const std::vector < T > & values,
T min,
T max,
Object::Access access = OBJ_ACCESS_RW
);
Destructor
~ArrayObject
~ArrayObject();
Member Functions
access
Access access() const;
See also: IoT::CANopen::Object::access()
code
Object::ObjectCode code() const;
get
T get(
std::size_t index
) const;
max
T max() const;
min
T min() const;
read
SDO::AbortCode read(
Poco::UInt8 subIndex,
std::vector < char > & data
) const;
See also: IoT::CANopen::Object::read()
set
void set(
std::size_t index,
T value
);
size
std::size_t size() const;
type
Poco::UInt16 type() const;
See also: IoT::CANopen::Object::type()
write
SDO::AbortCode write(
Poco::UInt8 subIndex,
std::size_t size,
const char * data
);
See also: IoT::CANopen::Object::write()