File Information
Library: IoT/CANopen
Package: CANopen
Header: IoT/CANopen/Object.h
Description
A generic class for scalar 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, type, write
Inherited Functions: access, code, copy, duplicate, read, referenceCount, release, structure, type, write, writeImpl
Types
Ptr
typedef Poco::AutoPtr < VarObject > Ptr;
Type
typedef T Type;
Constructors
VarObject
VarObject();
VarObject
VarObject(
T value,
Object::Access access = OBJ_ACCESS_RW
);
VarObject
VarObject(
T value,
T min,
T max,
Object::Access access = OBJ_ACCESS_RW
);
Destructor
~VarObject
~VarObject();
Member Functions
access
Access access() const;
See also: IoT::CANopen::Object::access()
code
Object::ObjectCode code() const;
get
T get() 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(
T value
);
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()