hlcc 2.0.0-beta2+pre1
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
hlcc::oldbmux::CiiOldbDataPointAsync< T > Class Template Reference

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>

Classes

struct  OldbData
 Value type for data for buffering and writing to OLDB. This base class is used as an interface toward the client of CiiOldbDataPointAsync. More...
 
struct  OldbDataWithPromise
 Value type for data for buffering and writing to OLDB. This subclass is used internally by CiiOldbDataPointAsync. More...
 

Public Member Functions

 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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ 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 
)

Constructor.

◆ ~CiiOldbDataPointAsync()

template<typename T >
virtual hlcc::oldbmux::CiiOldbDataPointAsync< T >::~CiiOldbDataPointAsync ( )
virtual

Member Function Documentation

◆ ReadValue()

template<typename T >
std::shared_ptr< elt::oldb::CiiOldbDpValue< T > > hlcc::oldbmux::CiiOldbDataPointAsync< T >::ReadValue ( bool  check_bad_quality = true)

◆ SetQuality()

template<typename T >
boost::future< typename CiiOldbDataPointAsync< T >::OldbData > hlcc::oldbmux::CiiOldbDataPointAsync< T >::SetQuality ( elt::oldb::CiiOldbDpQuality  quality,
bool  is_disable_publishing = false 
)

◆ 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: