ifw-ccf  3.0.0-pre2
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ccf::stdpub::PubDdt Class Reference

Standard DDT Publisher. More...

#include <pubDdt.hpp>

Inheritance diagram for ccf::stdpub::PubDdt:
ccf::common::PubBase ccf::Base

Public Member Functions

 PubDdt (const std::string &proc_thread_name, const std::string &pub_thread_name)
 
 PubDdt ()
 
virtual ~PubDdt ()
 
virtual void InitialiseUser ()
 
virtual void PublishUser (ccf::common::DataFrame &frame)
 
virtual void DismantleUser ()
 
virtual void CreateObjectUser (const std::string &proc_thread_name, const std::string &pub_thread_name, PubBase **new_object)
 
- Public Member Functions inherited from ccf::common::PubBase
 PubBase (const std::string &proc_thread_name, const std::string &pub_thread_name)
 
 PubBase ()
 
virtual ~PubBase ()
 
void Initialise ()
 
bool GetInitialised () const
 
void Dismantle ()
 
void SetEnabled (const bool enabled)
 
bool GetEnabled () const
 
const std::string & GetProcThreadName () const
 
const std::string & GetPubId () const
 
const std::string & GetPubThreadName () const
 
void Publish (DataFrame &frame, const bool force)
 
PubType GetPublisherType () const
 
void Activate ()
 
virtual void ActivateUser ()
 
void Deactivate ()
 
virtual void DeactivateUser ()
 
void SetActivated (const bool activated)
 
bool GetActivated () const
 
virtual void CheckForDeactivationUser ()
 
PublisherStatusGetPubStatus ()
 
void EstimateExecution (double &duration, int64_t &nb_of_frames)
 
void GetPubStatus (PublisherStatus &pub_stat) const
 Make a snapshot of the current Publisher Status object. More...
 
virtual void CreateObjectUser (const std::string &proc_thread_name, const std::string &pub_thread_name, PubBase **new_object)
 
virtual void EstimateExecutionUser (double &duration, int64_t &nb_of_frames)
 
void ResetDbStatus () const
 Update status for a given Publisher Thread in the OLDB. More...
 
void UpdateDbStatus () const
 
std::string ToString () const
 
- Public Member Functions inherited from ccf::Base
 Base ()
 
 ~Base ()
 
const std::string & GetClassName () const
 Return the allocated name of the class. More...
 
log4cplus::Logger & Loggger ()
 Return reference to logger used in this context. More...
 

Static Public Member Functions

static uint32_t GetDdtDataType (ccf::DataTypes data_type)
 
static void _SetSimulation ()
 
- Static Public Member Functions inherited from ccf::common::PubBase
static const std::string & GenId (const std::string &proc_thread_name, const std::string &pub_thread_name)
 Generate an ID for the Publisher. More...
 
template<class TYPE >
static void AddPubFactoryObj (TYPE &pub_factory_obj)
 Static method to register a Data Publisher factory object in the internal registry. More...
 
static const std::map< std::string, std::shared_ptr< PubBase > > & GetPubFactoryObjs ()
 Generate vector with references to the Publisher Factory Objects registered. More...
 
static void CreatePubObj (const std::string &class_name, const std::string &proc_thread_name, const std::string &pub_thread_name, PubBase **new_object)
 
static void GetPubObj (const std::string &proc_thread_name, const std::string &pub_thread_name, PubBase **pub_obj, const bool initialise=true)
 
static void GetPubObjs (std::vector< PubBase * > &pub_objs)
 Get reference to all Data Publisher Objects registered. More...
 
static bool HasPubObj (const std::string &proc_thread_name, const std::string &pub_thread_name, PubBase **pub_obj)
 Check if a Publisher object is defined. More...
 
- Static Public Member Functions inherited from ccf::Base
static ccf::mptk::ManagerMptk ()
 Return reference to internal MPTK instance (singleton). More...
 
static void SetLogLevel (const ccf::LogLevel log_level)
 Set the log level. More...
 
static ccf::LogLevel GetLogLevel ()
 Return the current CCF log level. More...
 

Public Attributes

const std::string SETUP_KEY_DDT_ID = "ddt_id"
 
const std::string SETUP_KEY_DDT_BROKER = "ddt_broker"
 
const std::string SETUP_KEY_MAX_RATE = "ddt_max_rate"
 

Additional Inherited Members

- Protected Member Functions inherited from ccf::Base
void SetClassName (const std::string &class_name)
 Set the name of the class in question. More...
 
void SetLogger (log4cplus::Logger &logger)
 Set reference to logger used in this context. More...
 
- Protected Attributes inherited from ccf::common::PubBase
PubType m_publisher_type
 
bool m_initialised
 
bool m_setup_enabled
 
bool m_stat_active
 
- Protected Attributes inherited from ccf::Base
log4cplus::Logger m_logger
 

Detailed Description

Standard DDT Publisher.

Constructor & Destructor Documentation

◆ PubDdt() [1/2]

ccf::stdpub::PubDdt::PubDdt ( const std::string &  proc_thread_name,
const std::string &  pub_thread_name 
)

◆ PubDdt() [2/2]

ccf::stdpub::PubDdt::PubDdt ( )

◆ ~PubDdt()

ccf::stdpub::PubDdt::~PubDdt ( )
virtual

Member Function Documentation

◆ _SetSimulation()

void ccf::stdpub::PubDdt::_SetSimulation ( )
static

◆ CreateObjectUser()

void ccf::stdpub::PubDdt::CreateObjectUser ( const std::string &  proc_thread_name,
const std::string &  pub_thread_name,
PubBase **  new_object 
)
virtual

◆ DismantleUser()

void ccf::stdpub::PubDdt::DismantleUser ( )
virtual

Reimplemented from ccf::common::PubBase.

◆ GetDdtDataType()

uint32_t ccf::stdpub::PubDdt::GetDdtDataType ( ccf::DataTypes  data_type)
static

◆ InitialiseUser()

void ccf::stdpub::PubDdt::InitialiseUser ( )
virtual

Reimplemented from ccf::common::PubBase.

◆ PublishUser()

void ccf::stdpub::PubDdt::PublishUser ( ccf::common::DataFrame frame)
virtual

Reimplemented from ccf::common::PubBase.

Member Data Documentation

◆ SETUP_KEY_DDT_BROKER

const std::string ccf::stdpub::PubDdt::SETUP_KEY_DDT_BROKER = "ddt_broker"

◆ SETUP_KEY_DDT_ID

const std::string ccf::stdpub::PubDdt::SETUP_KEY_DDT_ID = "ddt_id"

◆ SETUP_KEY_MAX_RATE

const std::string ccf::stdpub::PubDdt::SETUP_KEY_MAX_RATE = "ddt_max_rate"

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