Value type for data for buffering and writing to OLDB. This base class is used as an interface toward the client of CiiOldbDataPointAsync.
More...
|
| | 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 |
| |
| | CiiOldbDataPointAsync (std::string name, std::shared_ptr< elt::oldb::CiiOldbDataPoint< T > > delegate, boost::asio::thread_pool &async_exec, const log4cplus::Logger &logger, std::size_t buffer_capacity=1) |
| | Constructor.
|
| |
| virtual | ~CiiOldbDataPointAsync () |
| |
| std::shared_ptr< elt::oldb::CiiOldbDpValue< T > > | ReadValue (bool check_bad_quality=true) |
| |
| boost::future< typename CiiOldbDataPointAsync< T >::OldbData > | WriteValue (const T &value, int64_t timestamp=elt::oldb::CiiOldbUtil::Now(), elt::oldb::CiiOldbDpQuality quality=elt::oldb::CiiOldbDpQuality::OK, bool is_disable_publishing=false) |
| |
| boost::future< typename CiiOldbDataPointAsync< T >::OldbData > | SetQuality (elt::oldb::CiiOldbDpQuality quality, bool is_disable_publishing=false) |
| |
template<typename T>
struct hlcc::oldbmux::CiiOldbDataPointAsync< T >::OldbData
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?