|
HLCC Documentation 2.2.0
|
Value type for data for buffering and writing to OLDB. This base class is used as an interface toward the client of CiiOldbDataPointAsync. More...
#include <ciiOldbDataPointAsync.hpp>
Public Member Functions | |
| OldbData (elt::oldb::CiiOldbDpQuality quality) | |
| OldbData (std::optional< T > value, std::optional< int64_t > timestamp, std::optional< elt::oldb::CiiOldbDpQuality > quality) | |
| virtual | ~OldbData ()=default |
| Destructor. | |
| OldbData (const OldbData &)=delete | |
| OldbData & | operator= (const OldbData &)=delete |
| OldbData (OldbData &&)=default | |
| OldbData & | operator= (OldbData &&)=default |
| std::optional< T > | GetValue () const |
| void | SetValue (T value) |
| std::optional< int64_t > | GetTimestamp () const |
| void | SetTimestamp (int64_t timestamp) |
| std::optional< elt::oldb::CiiOldbDpQuality > | GetQuality () const |
Value type for data for buffering and writing to OLDB. This base class is used as an interface toward the client of CiiOldbDataPointAsync.
Note that the members value, timestamp etc cannot be declared const because of the (move) assignment operator. That one we need to use this class directly with the circular buffer. TODO: Would it be better here to use the buffer with unique_ptr<OldbData>, to be able to declare the member fields const?
|
inline |
Ctor that takes only the quality data.
|
inline |
Ctor that takes all DP attributes.
|
virtualdefault |
Destructor.
|
delete |
|
default |
|
inline |
|
inline |
|
inline |
|
delete |
|
default |
|
inline |
|
inline |