|
HLCC Documentation 2.2.0
|
#include <dataAcquisitionFits.hpp>
Classes | |
| struct | FitsValues |
Public Types | |
| enum | AcquisitionStage { AQ_NOT_STARTED , AQ_SUCCEDDED , AQ_FAILED } |
Public Member Functions | |
| FitsItemGeneric (OldbInterface &moldbif, const FitsData &mfitsdata) | |
| template<typename T > | |
| std::string | StringFormat (const std::string &format, T arg) |
| bool | ClearAcquisition () |
| virtual bool | DoAcquisition (FitsData::DaqStage daq_stage) |
| bool | GetJsonString (std::string &str_json) |
| template<> | |
| std::string | StringFormat (const std::string &format, const char *arg) |
| template<> | |
| std::string | StringFormat (const std::string &format, double arg) |
| template<> | |
| std::string | StringFormat (const std::string &format, int arg) |
Protected Member Functions | |
| OldbInterface & | GetOldbInterface () |
| const FitsData | GetFitsData () |
| FitsValues | GetFitsValues () |
| void | SetFitsValues (const FitsValues &p_fits_values) |
| AcquisitionStage | GetAcquisitionStage () |
| void | SetAcquisitionStage (AcquisitionStage p_acquisition_stage) |
This class is the base class for the FITs keywords parameters. It implements methods to get the data from the Oldb and to build the JSON string with all the information.
This class supports the acquisition from the Oldb if the parameter matches exctly the value retrieved from the given Oldb data point.
In the case the Oldb data point is complex and don't match the paramter a new class should be created based on this and implement the virtual method according to the especific case.
| hlcc::telif::FitsItemGeneric::FitsItemGeneric | ( | OldbInterface & | moldbif, |
| const FitsData & | mfitsdata ) |
Constructor
| bool hlcc::telif::FitsItemGeneric::ClearAcquisition | ( | ) |
Resets the acqusition state and clears all the variables.
|
virtual |
Perform parameter acquisition from Oldb
| [in] | daq_stage | The current stage of the general acquisition |
Reimplemented in hlcc::telif::FitsItemRadToDeg, hlcc::telif::FitsItemTelAlt, hlcc::telif::FitsItemTelAz, hlcc::telif::FitsItemTelEpoch, hlcc::telif::FitsItemTelEpochsystem, hlcc::telif::FitsItemTelTargRa, and hlcc::telif::FitsItemTelTargDec.
|
inlineprotected |
Getter for the Acquisition stage.
|
inlineprotected |
Getter for the Fits data.
|
inlineprotected |
Getter for the Fits values.
| bool hlcc::telif::FitsItemGeneric::GetJsonString | ( | std::string & | str_json | ) |
Message setter.
| [in] | str_json | Message string |
|
inlineprotected |
Getter for the oldb intreface.
|
inlineprotected |
Setter for the Acquisition stage.
| p_acquisition_stage | key The new aquisition stage to be stored. |
|
inlineprotected |
Setter for the Fits values.
| p_fits_values | The new Fits Values to be stored. |
| std::string hlcc::telif::FitsItemGeneric::StringFormat | ( | const std::string & | format, |
| const char * | arg ) |
| std::string hlcc::telif::FitsItemGeneric::StringFormat | ( | const std::string & | format, |
| double | arg ) |
| std::string hlcc::telif::FitsItemGeneric::StringFormat | ( | const std::string & | format, |
| int | arg ) |
| std::string hlcc::telif::FitsItemGeneric::StringFormat | ( | const std::string & | format, |
| T | arg ) |
Template implementing the format features of 'printf' but applied to a std::string. This implementation support only 1 argument which is enough for the current purpose.
To be on the safe side we should limit the argument types allowed to the ones we know are valid. we are doing it with template specialization.
| [in] | format | string. |
| [in] | arg | to be printed on the format string. |