RTC Toolkit 5.1.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
rtctk::standaloneTools::GenRtrWriterBase Class Referenceabstract

Base class for Generic RTR Writer. More...

#include <rtctkGenRtrWriter.h>

Inheritance diagram for rtctk::standaloneTools::GenRtrWriterBase:
rtctk::standaloneTools::GenRtrWriter< T >

Public Member Functions

 GenRtrWriterBase (std::shared_ptr< rtctk_cfw::RuntimeRepoIf > &rtr, const rtctk_cfw::DataPointPath &dp, const std::string &server_alias="")
 
virtual ~GenRtrWriterBase () noexcept
 
 GenRtrWriterBase ()=delete
 
 GenRtrWriterBase (const GenRtrWriterBase &)=delete
 
 GenRtrWriterBase (GenRtrWriterBase &&)=delete
 
virtual void Initialize (std::size_t dim_x, std::size_t dim_y, std::chrono::microseconds period, uint32_t iterations)=0
 
void SignalThreadExit ()
 
void Finalize ()
 Stops publishing thread, and join it, delete data point (DP).
 
void Join ()
 

Static Public Attributes

static std::atomic< uint16_t > s_idx = 0
 

Protected Attributes

log4cplus::Logger & m_logger
 
uint16_t m_idx
 
std::shared_ptr< rtctk_cfw::RuntimeRepoIfm_rtr
 
rtctk_cfw::DataPointPath m_dp
 
std::string m_server_alias
 
bool m_dp_created
 
uint32_t m_payload_bytes
 
std::chrono::microseconds m_sleep_period
 
uint32_t m_iteration_num
 
std::thread m_thread
 
std::atomic< bool > m_thread_running = true
 
ba::accumulator_set< unsigned, ba::stats< ba::tag::mean, ba::tag::variance, ba::tag::min, ba::tag::max, ba::tag::count > > m_accumulator
 

Detailed Description

Base class for Generic RTR Writer.

Constructor & Destructor Documentation

◆ GenRtrWriterBase() [1/4]

rtctk::standaloneTools::GenRtrWriterBase::GenRtrWriterBase ( std::shared_ptr< rtctk_cfw::RuntimeRepoIf > & rtr,
const rtctk_cfw::DataPointPath & dp,
const std::string & server_alias = "" )
inlineexplicit

◆ ~GenRtrWriterBase()

virtual rtctk::standaloneTools::GenRtrWriterBase::~GenRtrWriterBase ( )
inlinevirtualnoexcept

◆ GenRtrWriterBase() [2/4]

rtctk::standaloneTools::GenRtrWriterBase::GenRtrWriterBase ( )
delete

◆ GenRtrWriterBase() [3/4]

rtctk::standaloneTools::GenRtrWriterBase::GenRtrWriterBase ( const GenRtrWriterBase & )
delete

◆ GenRtrWriterBase() [4/4]

rtctk::standaloneTools::GenRtrWriterBase::GenRtrWriterBase ( GenRtrWriterBase && )
delete

Member Function Documentation

◆ Finalize()

void rtctk::standaloneTools::GenRtrWriterBase::Finalize ( )
inline

Stops publishing thread, and join it, delete data point (DP).

◆ Initialize()

virtual void rtctk::standaloneTools::GenRtrWriterBase::Initialize ( std::size_t dim_x,
std::size_t dim_y,
std::chrono::microseconds period,
uint32_t iterations )
pure virtual

◆ Join()

void rtctk::standaloneTools::GenRtrWriterBase::Join ( )
inline

◆ SignalThreadExit()

void rtctk::standaloneTools::GenRtrWriterBase::SignalThreadExit ( )
inline

Member Data Documentation

◆ m_accumulator

ba::accumulator_set< unsigned, ba::stats<ba::tag::mean, ba::tag::variance, ba::tag::min, ba::tag::max, ba::tag::count> > rtctk::standaloneTools::GenRtrWriterBase::m_accumulator
protected

◆ m_dp

rtctk_cfw::DataPointPath rtctk::standaloneTools::GenRtrWriterBase::m_dp
protected

◆ m_dp_created

bool rtctk::standaloneTools::GenRtrWriterBase::m_dp_created
protected

◆ m_idx

uint16_t rtctk::standaloneTools::GenRtrWriterBase::m_idx
protected

◆ m_iteration_num

uint32_t rtctk::standaloneTools::GenRtrWriterBase::m_iteration_num
protected

◆ m_logger

log4cplus::Logger& rtctk::standaloneTools::GenRtrWriterBase::m_logger
protected

◆ m_payload_bytes

uint32_t rtctk::standaloneTools::GenRtrWriterBase::m_payload_bytes
protected

◆ m_rtr

std::shared_ptr<rtctk_cfw::RuntimeRepoIf> rtctk::standaloneTools::GenRtrWriterBase::m_rtr
protected

◆ m_server_alias

std::string rtctk::standaloneTools::GenRtrWriterBase::m_server_alias
protected

◆ m_sleep_period

std::chrono::microseconds rtctk::standaloneTools::GenRtrWriterBase::m_sleep_period
protected

◆ m_thread

std::thread rtctk::standaloneTools::GenRtrWriterBase::m_thread
protected

◆ m_thread_running

std::atomic<bool> rtctk::standaloneTools::GenRtrWriterBase::m_thread_running = true
protected

◆ s_idx

std::atomic< uint16_t > GenRtrWriterBase::s_idx = 0
static

The documentation for this class was generated from the following files: