KaCanOpen
 All Classes Functions Variables Typedefs Enumerations Pages
Public Member Functions | List of all members
kaco::EntryPublisher Class Reference

This class provides a Publisher implementation for use with kaco::Bridge. It publishes a value from a device's dictionary. More...

#include <entry_publisher.h>

Inheritance diagram for kaco::EntryPublisher:
Inheritance graph
[legend]
Collaboration diagram for kaco::EntryPublisher:
Collaboration graph
[legend]

Public Member Functions

 EntryPublisher (Device &device, const std::string &entry_name, const ReadAccessMethod access_method=ReadAccessMethod::use_default)
 Constructor. More...
 
void advertise () override
 
void publish () override
 

Detailed Description

This class provides a Publisher implementation for use with kaco::Bridge. It publishes a value from a device's dictionary.

Definition at line 45 of file entry_publisher.h.

Constructor & Destructor Documentation

kaco::EntryPublisher::EntryPublisher ( Device device,
const std::string &  entry_name,
const ReadAccessMethod  access_method = ReadAccessMethod::use_default 
)

Constructor.

Parameters
deviceThe CanOpen device
entry_nameThe name of the entry. See device profile.
access_methodYou can choose default/sdo/pdo method. See kaco::Device docs.

Definition at line 51 of file entry_publisher.cpp.

Member Function Documentation

void kaco::EntryPublisher::advertise ( )
overridevirtual
See also
interface Publisher

Implements kaco::Publisher.

Definition at line 63 of file entry_publisher.cpp.

void kaco::EntryPublisher::publish ( )
overridevirtual
See also
interface Publisher

Implements kaco::Publisher.

Definition at line 100 of file entry_publisher.cpp.


The documentation for this class was generated from the following files: