ifw-ccf 5.0.2
|
Standard FITS Publisher. More...
#include <pubFits.hpp>
Public Types | |
enum class | Format { SINGLE = 1 , CUBE , MEF } |
enum class | RecordingMode { ALL = 1 , INTERVAL , PERIODIC } |
Public Member Functions | |
PubFits (const std::string &proc_thread_name, const std::string &pub_thread_name) | |
PubFits () | |
virtual | ~PubFits () |
virtual void | InitialiseUser () |
virtual void | PublishUser (ifw::ccf::common::DataFrame &frame) |
virtual void | CheckForDeactivationUser () |
virtual void | ActivateUser () |
virtual void | DeactivateUser () |
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) |
Format | FormatToNb (const std::string &format) |
std::string | FormatToStr (const Format format) |
void | DecodeRecMode (const std::string &rec_mode_specifier) |
std::string | RecordingModeToStr (const RecordingMode mode) |
![]() | |
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 () |
void | Deactivate () |
void | SetActivated (const bool activated) |
bool | GetActivated () const |
PublisherStatus & | GetPubStatus () |
void | EstimateExecution (double &duration, int64_t &nb_of_frames) |
void | GetPubStatus (PublisherStatus &pub_stat) const |
Make a snapshot of the current Publisher Status object. | |
virtual void | DismantleUser () |
virtual void | CreateObjectUser (const std::string &proc_thread_name, const std::string &pub_thread_name, PubBase **new_object) |
void | ResetDbStatus () const |
Update status for a given Publisher Thread in the OLDB. | |
void | UpdateDbStatus (const bool force_update=false) const |
std::string | ToString () const |
![]() | |
Base () | |
~Base () | |
const std::string & | GetClassName () const |
Return the allocated name of the class. | |
Public Attributes | |
const std::string | SETUP_KEY_NB_OF_FRAMES = "nb_of_frames" |
const std::string | SETUP_KEY_OVERWRITE = "overwrite" |
const std::string | SETUP_KEY_REC_MODE = "rec_mode" |
const std::string | SETUP_KEY_NB_REC_HDR_BLOCKS = "nb_of_hdr_blocks" |
const std::string | FORMAT_SINGLE = "Single" |
const std::string | FORMAT_CUBE = "Cube" |
const std::string | FORMAT_MEF = "MEF" |
const std::string | RECORDING_MODE_ALL = "ALL" |
const std::string | RECORDING_MODE_INTERVAL = "INTERVAL" |
const std::string | RECORDING_MODE_PERIODIC = "PERIODIC" |
Static Public Attributes | |
static bool | s_initialised = false |
static char | s_padding_bytes [2880] |
Additional Inherited Members | |
![]() | |
static const std::string & | GenId (const std::string &proc_thread_name, const std::string &pub_thread_name) |
Generate an ID for the Publisher. | |
template<class TYPE > | |
static void | AddPubFactoryObj (TYPE &pub_factory_obj) |
Static method to register a Data Publisher factory object in the internal registry. | |
static const std::map< std::string, std::shared_ptr< PubBase > > & | GetPubFactoryObjs () |
Generate vector with references to the Publisher Factory Objects registered. | |
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. | |
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. | |
static void | SetRecTrigger (const double rec_trigger) |
Set the trigger for deferred recording. | |
static double | GetRecTrigger () |
Get the trigger for deferred recording. | |
static void | SetDeferredStart (const bool def_start_active) |
Set the deferred start mode. | |
static bool | GetDeferredStart () |
Get the deferred start mode. | |
![]() | |
static ifw::ccf::mptk::Manager & | Mptk () |
Return reference to internal MPTK instance (singleton). | |
![]() | |
void | SetClassName (const std::string &class_name) |
Set the name of the class in question. | |
![]() | |
PubType | m_publisher_type |
bool | m_initialised |
bool | m_setup_enabled |
bool | m_stat_active |
Standard FITS Publisher.
|
strong |
|
strong |
ifw::ccf::stdpub::PubFits::PubFits | ( | const std::string & | proc_thread_name, |
const std::string & | pub_thread_name ) |
ifw::ccf::stdpub::PubFits::PubFits | ( | ) |
|
virtual |
|
virtual |
Reimplemented from ifw::ccf::common::PubBase.
|
virtual |
Reimplemented from ifw::ccf::common::PubBase.
|
virtual |
|
virtual |
Reimplemented from ifw::ccf::common::PubBase.
void ifw::ccf::stdpub::PubFits::DecodeRecMode | ( | const std::string & | rec_mode_specifier | ) |
|
virtual |
Reimplemented from ifw::ccf::common::PubBase.
PubFits::Format ifw::ccf::stdpub::PubFits::FormatToNb | ( | const std::string & | format | ) |
std::string ifw::ccf::stdpub::PubFits::FormatToStr | ( | const Format | format | ) |
|
virtual |
Reimplemented from ifw::ccf::common::PubBase.
|
virtual |
Reimplemented from ifw::ccf::common::PubBase.
std::string ifw::ccf::stdpub::PubFits::RecordingModeToStr | ( | const RecordingMode | mode | ) |
const std::string ifw::ccf::stdpub::PubFits::FORMAT_CUBE = "Cube" |
const std::string ifw::ccf::stdpub::PubFits::FORMAT_MEF = "MEF" |
const std::string ifw::ccf::stdpub::PubFits::FORMAT_SINGLE = "Single" |
const std::string ifw::ccf::stdpub::PubFits::RECORDING_MODE_ALL = "ALL" |
const std::string ifw::ccf::stdpub::PubFits::RECORDING_MODE_INTERVAL = "INTERVAL" |
const std::string ifw::ccf::stdpub::PubFits::RECORDING_MODE_PERIODIC = "PERIODIC" |
|
static |
|
static |
const std::string ifw::ccf::stdpub::PubFits::SETUP_KEY_NB_OF_FRAMES = "nb_of_frames" |
const std::string ifw::ccf::stdpub::PubFits::SETUP_KEY_NB_REC_HDR_BLOCKS = "nb_of_hdr_blocks" |
const std::string ifw::ccf::stdpub::PubFits::SETUP_KEY_OVERWRITE = "overwrite" |
const std::string ifw::ccf::stdpub::PubFits::SETUP_KEY_REC_MODE = "rec_mode" |