CiiOldbDataPointAsync is a wrapper for class CiiOldbDataPoint, to allow asynchronous writes to the OLDB. All other methods are delegating in the same thread, but could be made async as well in the future.
More...
#include <ciiOldbDataPointAsync.hpp>
|
| | 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>
class hlcc::oldbmux::CiiOldbDataPointAsync< T >
CiiOldbDataPointAsync is a wrapper for class CiiOldbDataPoint, to allow asynchronous writes to the OLDB. All other methods are delegating in the same thread, but could be made async as well in the future.
◆ CiiOldbDataPointAsync()
template<typename T >
| hlcc::oldbmux::CiiOldbDataPointAsync< T >::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 |
|
) |
| |
◆ ~CiiOldbDataPointAsync()
◆ ReadValue()
◆ SetQuality()
◆ WriteValue()
template<typename T >
| boost::future< typename CiiOldbDataPointAsync< T >::OldbData > hlcc::oldbmux::CiiOldbDataPointAsync< T >::WriteValue |
( |
const T & |
value, |
|
|
int64_t |
timestamp = elt::oldb::CiiOldbUtil::Now(), |
|
|
elt::oldb::CiiOldbDpQuality |
quality = elt::oldb::CiiOldbDpQuality::OK, |
|
|
bool |
is_disable_publishing = false |
|
) |
| |
The documentation for this class was generated from the following file: