27#ifndef PDCOM5_SUBSCRIPTION_H
28#define PDCOM5_SUBSCRIPTION_H
37#include <pdcom5_export.h>
101 const std::string &path,
130 void print(std::ostream &os,
char delimiter)
const;
135 bool empty() const noexcept {
return !(pimpl); }
155 friend impl::Subscription;
157 std::shared_ptr<impl::Subscription> pimpl = {};
159 State state_ = State::Invalid;
Base class for PdCom protocol handler.
Definition Process.h:87
Definition Subscriber.h:107
void print(std::ostream &os, char delimiter) const
Print the value(s).
void poll()
Poll values from the server.
Process * getProcess() const
Get the assigned Process.
State getState() const noexcept
Get the current state.
Definition Subscription.h:140
Variable getVariable() const
Access the subscribed variable.
const void * getData() const
Get the data Pointer.
bool empty() const noexcept
Check whether the subscription is default-constructed.
Definition Subscription.h:135
std::string getPath() const
Get the path of the subscribed variable.
Subscription(Subscriber &subscriber, Process &process, const std::string &path, const Selector &selector={})
Constructor for an unknown variable.
Subscription()=default
Default constructor for an empty subscription.
PdCom Variable interface.
Definition Variable.h:68
Data Deserialisation helper.
Definition DataDeserializer.h:51
Selector base class for creating views on multidimensional data.
Definition Selector.h:48