ifw-ccf 4.0.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ccf::stdpub::PubFits Class Reference

Standard FITS Publisher. More...

#include <pubFits.hpp>

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

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 (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)
 
- 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.
 
virtual void InitialiseUser ()
 
virtual void DismantleUser ()
 
virtual void PublishUser (DataFrame &frame)
 
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.
 
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.
 

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 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.
 
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 Public Member Functions inherited from ccf::Base
static ccf::mptk::ManagerMptk ()
 Return reference to internal MPTK instance (singleton).
 
- Protected Member Functions inherited from ccf::Base
void SetClassName (const std::string &class_name)
 Set the name of the class in question.
 
- Protected Attributes inherited from ccf::common::PubBase
PubType m_publisher_type
 
bool m_initialised
 
bool m_setup_enabled
 
bool m_stat_active
 

Detailed Description

Standard FITS Publisher.

Member Enumeration Documentation

◆ Format

enum class ccf::stdpub::PubFits::Format
strong
Enumerator
SINGLE 
CUBE 
MEF 

◆ RecordingMode

Enumerator
ALL 
INTERVAL 
PERIODIC 

Constructor & Destructor Documentation

◆ PubFits() [1/2]

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

◆ PubFits() [2/2]

ccf::stdpub::PubFits::PubFits ( )

◆ ~PubFits()

ccf::stdpub::PubFits::~PubFits ( )
virtual

Member Function Documentation

◆ ActivateUser()

void ccf::stdpub::PubFits::ActivateUser ( )
virtual

Reimplemented from ccf::common::PubBase.

◆ CheckForDeactivationUser()

void ccf::stdpub::PubFits::CheckForDeactivationUser ( )
virtual

Reimplemented from ccf::common::PubBase.

◆ CreateObjectUser()

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

◆ DeactivateUser()

void ccf::stdpub::PubFits::DeactivateUser ( )
virtual

Reimplemented from ccf::common::PubBase.

◆ DecodeRecMode()

void ccf::stdpub::PubFits::DecodeRecMode ( const std::string &  rec_mode_specifier)

◆ EstimateExecutionUser()

void ccf::stdpub::PubFits::EstimateExecutionUser ( double &  duration,
int64_t &  nb_of_frames 
)
virtual

Reimplemented from ccf::common::PubBase.

◆ FormatToNb()

PubFits::Format ccf::stdpub::PubFits::FormatToNb ( const std::string &  format)

◆ FormatToStr()

std::string ccf::stdpub::PubFits::FormatToStr ( const Format  format)

◆ InitialiseUser()

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

Reimplemented from ccf::common::PubBase.

◆ PublishUser()

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

Reimplemented from ccf::common::PubBase.

◆ RecordingModeToStr()

std::string ccf::stdpub::PubFits::RecordingModeToStr ( const RecordingMode  mode)

Member Data Documentation

◆ FORMAT_CUBE

const std::string ccf::stdpub::PubFits::FORMAT_CUBE = "Cube"

◆ FORMAT_MEF

const std::string ccf::stdpub::PubFits::FORMAT_MEF = "MEF"

◆ FORMAT_SINGLE

const std::string ccf::stdpub::PubFits::FORMAT_SINGLE = "Single"

◆ RECORDING_MODE_ALL

const std::string ccf::stdpub::PubFits::RECORDING_MODE_ALL = "ALL"

◆ RECORDING_MODE_INTERVAL

const std::string ccf::stdpub::PubFits::RECORDING_MODE_INTERVAL = "INTERVAL"

◆ RECORDING_MODE_PERIODIC

const std::string ccf::stdpub::PubFits::RECORDING_MODE_PERIODIC = "PERIODIC"

◆ s_initialised

bool ccf::stdpub::PubFits::s_initialised = false
static

◆ s_padding_bytes

char ccf::stdpub::PubFits::s_padding_bytes
static

◆ SETUP_KEY_NB_OF_FRAMES

const std::string ccf::stdpub::PubFits::SETUP_KEY_NB_OF_FRAMES = "nb_of_frames"

◆ SETUP_KEY_NB_REC_HDR_BLOCKS

const std::string ccf::stdpub::PubFits::SETUP_KEY_NB_REC_HDR_BLOCKS = "nb_of_hdr_blocks"

◆ SETUP_KEY_OVERWRITE

const std::string ccf::stdpub::PubFits::SETUP_KEY_OVERWRITE = "overwrite"

◆ SETUP_KEY_REC_MODE

const std::string ccf::stdpub::PubFits::SETUP_KEY_REC_MODE = "rec_mode"

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