|
HLCC Documentation 2.2.0
|
#include <oldbInterface.hpp>
This class is the interface to the CII OLDB.
| hlcc::eltpk::OldbInterface::OldbInterface | ( | const std::string & | prefix = "" | ) |
Constructor.
| [in] | prefix | String used as prefix when building the keys. Typically prefix will be set by Application::Init calling rad::OldbInterface::SetPrefix. |
Constructor.
|
virtual |
Destructor
|
delete |
| HorizonPositionEsoTimestamped hlcc::eltpk::OldbInterface::GetCurrentObservedAltAz | ( | ) |
Retrieves the current observed (alt,az) position and returns it as an HorizonPositionEso
| std::shared_ptr< determ::LlnetioPub > hlcc::eltpk::OldbInterface::GetLlnetioPub | ( | ) |
Disable assignment operator.
| std::shared_ptr< determ::MudpiPub > hlcc::eltpk::OldbInterface::GetMudpiPub | ( | ) |
| OldbData & hlcc::eltpk::OldbInterface::GetOldbData | ( | ) |
| void hlcc::eltpk::OldbInterface::Init | ( | ::hlcc::eltpk::Config & | config | ) |
Creates an ObservablePublisher for pub/sub and OLDB publishing. Initializes OLDB datapoints (target_alt_az) and publishers (target_alt_az_publisher).
|
delete |
Disable copy constructor.
| void hlcc::eltpk::OldbInterface::PublishCurrentPositions | ( | ElapsedTimeStats & | stats, |
| const bool & | radec_validity ) |
Publishes all current positions (currently current_alt_az, current_ra_dec_backcalc, current_hour_angle, tracking_data).
| void hlcc::eltpk::OldbInterface::PublishCurrentTime | ( | ElapsedTimeStats & | stats | ) |
Publishes current_time.
| void hlcc::eltpk::OldbInterface::PublishPresetArgs | ( | const std::shared_ptr<::ccsinsif::PresetArgs > & | preset_args | ) |
Publishes the received preset args, upon a preset request
| void hlcc::eltpk::OldbInterface::PublishSiteInfo | ( | ElapsedTimeStats & | stats | ) |
Publishes site_info.
| void hlcc::eltpk::OldbInterface::PublishTargets | ( | ElapsedTimeStats & | stats | ) |
Publishes all target coordinates (currently only ALT-AZ target).
| AsmData hlcc::eltpk::OldbInterface::ReadAsm | ( | ) |
Read site information published by Astronomical site monitor
| void hlcc::eltpk::OldbInterface::SetConfig | ( | hlcc::eltpk::Config & | cfg | ) |
Will call the base class SetConfig method, and will also write to OLDB all config values specific to this module.
| void hlcc::eltpk::OldbInterface::SetControlState | ( | const std::string & | value, |
| const taiclock::TaiClock::time_point & | timestamp, | ||
| ElapsedTimeStats & | stats ) |
We do not use the base class method void SetControlState(const std::string& value) because writing control state to OLDB is done frequently, and we want to use CiiOldbDataPointAsync and also keep the option to evaluate ElapsedTimeStats.
Updates the quality of the relevant RaDec datapoints.
| void hlcc::eltpk::OldbInterface::UpdateHeartbeat | ( | ) |