5#ifndef CCF_CONTROL_PUB_THREAD_HPP_H_
6#define CCF_CONTROL_PUB_THREAD_HPP_H_
26 const double period = 0.1);
63 const std::list<ccf::common::PubBase*>&
GetPublishers()
const;
77 bool CheckMessageBus(
bool& new_data_available,
79 void GetFrameHandleRef();
80 void InvokePublishers();
81 void ReleaseFrameHandle();
83 std::string& diagnostics);
85 std::string m_parent_proc_thr_name;
97 std::list<ccf::common::PubBase*> m_publishers;
102 std::map<std::string, ccf::common::PubBase*> m_publisher_map;
105 std::shared_ptr<ccf::common::FrameQueue> m_proc_thr_output_q;
Class to be used as parent all CCF classes.
Definition: base.hpp:107
Frame class used to store the data and metadata for one frames received from the camera.
Definition: dataFrame.hpp:17
The FrameQueue class implements a queue, to manage a set of CCF DataFrame instances as a ring buffer.
Definition: frameQueue.hpp:14
Class used by the threads to store info for generating performance statistics.
Definition: utilities.hpp:25
Class for implementing CCF Data Publishers.
Definition: pubBase.hpp:114
Processing Thread MPTK Thread implementation (see also ccf::mptk::Thread).
Definition: procThread.hpp:16
Publisher Thread MPTK Thread implementation (see also ccf::mptk::Thread).
Definition: pubThread.hpp:16
void SetParentProcThreadName(const std::string &parent_proc_thread_name)
Set the name of the parent Processing Thread in the object.
Definition: pubThread.cpp:312
const std::string & GetParentProcThreadName() const
Return the name of the parent Processing Thread from the object.
Definition: pubThread.cpp:317
void AddPublisher(ccf::common::PubBase &pub_obj)
Definition: pubThread.cpp:272
ccf::common::FrameStatistics & GetFrameStat()
Get reference to frame handling statistics.
Definition: pubThread.cpp:326
static void SetStatusAll(const ccf::PubStatus status)
Set the Publishing Status of all Publisher Threads running.
Definition: pubThread.cpp:12
ccf::common::FrameQueue & GetProcThrOutputQ()
Get reference to the Output Queue of this Processing Thread.
Definition: pubThread.cpp:126
void SetProcThrOutputQ(std::shared_ptr< ccf::common::FrameQueue > &queue)
Set reference to the Output Queue of this Processing Thread.
Definition: pubThread.cpp:121
void Initialise()
Initialise this thread (object).
Definition: pubThread.cpp:57
virtual ~PubThread()
Definition: pubThread.cpp:41
ccf::PubStatus GetStatus() const
Return Publishing Status of this Publisher Thread.
Definition: pubThread.cpp:267
ccf::common::PubBase & GetPublisher()
Get the reference to the internal publisher object.
Definition: pubThread.cpp:302
void SetStatus(const ccf::PubStatus status)
Set the Publishing Status of this Publisher Thread.
Definition: pubThread.cpp:134
virtual void UserLogic()
Use logic invoked periodically (ccf::mptk::Thread).
Definition: pubThread.cpp:72
uint8_t NbOfPublishers() const
Definition: pubThread.cpp:286
const std::list< ccf::common::PubBase * > & GetPublishers() const
Get the list of internal Data Publisher (objects).
Definition: pubThread.cpp:307
IFW CTD Multiprocessing Toolkit Message Bus.
Definition: messageBus.hpp:91
IFW CTD Multiprocessing Toolkit Message class.
Definition: message.hpp:24
IFW CTD Multiprocessing Toolkit Thread base class.
Definition: thread.hpp:29
Definition: acqThread.cpp:10
PubStatus
Defines the various possible states of a Data Publisher.
Definition: base.hpp:213
Status
General status variable.
Definition: base.hpp:143