|
hlcc 2.0.0-beta2+pre1
|
#include <oldbInterface.hpp>
Public Member Functions | |
| OldbInterface (const std::string &prefix="") | |
| virtual | ~OldbInterface () |
| void | Init (::hlcc::telifsim::Config &config) |
| void | PublishObservingWavelength (double wavelength) |
| void | PublishSetVelocityOffset (const std::shared_ptr<::ccsinsif::VelocityOffset > &velocity_offset_args) |
| bool | GetReadyForHandover () |
| std::string | GetEltpkState () |
| std::string | GetCommandSource () |
| void | PublishCommandSource (const std::string &) |
| double | GetSiteLatitude () |
| double | GetSiteLongitude () |
| double | GetSiteElevation () |
| void | PublishExtrefInsRef () |
| void | PublishStrokeRous (const std::shared_ptr<::ccsinsif::rous::Maneuver > &) |
| void | PublishAoMirrorHealth (const std::shared_ptr<::ccsinsif::ao::Health > &) |
| void | PublishCcsInfo () |
| std::shared_ptr<::ccsinsif::insref::Offsets > | GetInsrefOffset () |
| std::shared_ptr<::ccsinsif::CcsInfo > | GetCcsInfoEntity () |
| void | SetConfig (const hlcc::telifsim::Config &cfg) |
| std::string | GetControlState () |
| void | SetControlState (const std::string &status) override |
| void | SetConfig (const rad::Config &cfg) |
| void | PublishPresetSequenceMode (const telifsimif::SequenceMode &) |
| telifsimif::SequenceMode | ReadPresetSequenceMode () |
| void | PublishPresetSequence (const std::string &sequence) |
| std::string | ReadPresetSequence () |
| void | PublishOffsetSequenceMode (const telifsimif::SequenceMode &) |
| telifsimif::SequenceMode | ReadOffsetSequenceMode () |
| void | PublishOffsetSequence (const std::string &sequence) |
| std::string | ReadOffsetSequence () |
| void | PublishMessageOffsetSequence (uint16_t id, std::string message) |
| std::vector< std::shared_ptr< telifsimif::SeqMessage > > | ReadMessageOffsetSequence () |
| OldbInterface (const OldbInterface &)=delete | |
| OldbInterface & | operator= (const OldbInterface &)=delete |
| Disable copy constructor. | |
This class is the interface to the CII OLDB.
| hlcc::telifsim::OldbInterface::OldbInterface | ( | const std::string & | prefix = "" | ) |
Constructor.
| [in] | prefix | String used as prefix when building the keys. |
|
virtual |
Destructor
|
delete |
|
inline |
| std::string hlcc::telifsim::OldbInterface::GetCommandSource | ( | ) |
Reads the command_source from the Oldb
| std::string hlcc::telifsim::OldbInterface::GetControlState | ( | ) |
Reads the application current state from the oldb
| std::string hlcc::telifsim::OldbInterface::GetEltpkState | ( | ) |
Reads the current value of ready_for_handover flag on the Oldb
|
inline |
| bool hlcc::telifsim::OldbInterface::GetReadyForHandover | ( | ) |
Reads the current value of ready_for_handover flag on the Oldb
| double hlcc::telifsim::OldbInterface::GetSiteElevation | ( | ) |
Reads the Site Elevation from Oldb
| std::runtime_error | when it fails to get the Elevation. |
| double hlcc::telifsim::OldbInterface::GetSiteLatitude | ( | ) |
Reads the Site Latitude from Oldb
| std::runtime_error | when it fails to get the Latitude. |
| double hlcc::telifsim::OldbInterface::GetSiteLongitude | ( | ) |
Reads the Site Longitude from Oldb
| std::runtime_error | when it fails to get the Longitude. |
| void hlcc::telifsim::OldbInterface::Init | ( | ::hlcc::telifsim::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::telifsim::OldbInterface::PublishAoMirrorHealth | ( | const std::shared_ptr<::ccsinsif::ao::Health > & | x | ) |
Publishes AO mirror health
| void hlcc::telifsim::OldbInterface::PublishCcsInfo | ( | ) |
Publishes Ccs Info
| void hlcc::telifsim::OldbInterface::PublishCommandSource | ( | const std::string & | command_source | ) |
Publishes the command_source in the Oldb
| void hlcc::telifsim::OldbInterface::PublishExtrefInsRef | ( | ) |
Publishes external references to CCS
| void hlcc::telifsim::OldbInterface::PublishMessageOffsetSequence | ( | uint16_t | id, |
| std::string | message | ||
| ) |
Publishes message for Offset sequence
| void hlcc::telifsim::OldbInterface::PublishObservingWavelength | ( | double | wavelength | ) |
Publishes the received SetObservingWavelength, upon request
| std::runtime_error | if not successful. |
| void hlcc::telifsim::OldbInterface::PublishOffsetSequence | ( | const std::string & | sequence | ) |
Publish Offset sequence
| [in] | sequence | String name of sequence module |
| void hlcc::telifsim::OldbInterface::PublishOffsetSequenceMode | ( | const telifsimif::SequenceMode & | seq_mode | ) |
Publish Offset Mode
| [in] | sequence_mode | String with the mode |
| void hlcc::telifsim::OldbInterface::PublishPresetSequence | ( | const std::string & | sequence | ) |
Publish preset sequence
| [in] | sequence | String name of sequence module |
| void hlcc::telifsim::OldbInterface::PublishPresetSequenceMode | ( | const telifsimif::SequenceMode & | seq_mode | ) |
Publish Preset Mode
| [in] | sequence_mode | String with the mode |
| void hlcc::telifsim::OldbInterface::PublishSetVelocityOffset | ( | const std::shared_ptr<::ccsinsif::VelocityOffset > & | velocity_offset_args | ) |
Publishes the received velocity_offset_args, upon request
| std::runtime_error | if not successful. |
| void hlcc::telifsim::OldbInterface::PublishStrokeRous | ( | const std::shared_ptr<::ccsinsif::rous::Maneuver > & | x | ) |
Publishes stroke management
| std::vector< std::shared_ptr< telifsimif::SeqMessage > > hlcc::telifsim::OldbInterface::ReadMessageOffsetSequence | ( | ) |
Reads to messages from Offset sequence
| std::string hlcc::telifsim::OldbInterface::ReadOffsetSequence | ( | ) |
Read from Oldb Offset sequence
| std::runtime_error | if not possible to read |
| telifsimif::SequenceMode hlcc::telifsim::OldbInterface::ReadOffsetSequenceMode | ( | ) |
Read from Oldb Offset Mode
| std::runtime_error | if not possible to read or value read not valid |
| std::string hlcc::telifsim::OldbInterface::ReadPresetSequence | ( | ) |
Read from Oldb Preset sequence
| std::runtime_error | if not possible to read |
| telifsimif::SequenceMode hlcc::telifsim::OldbInterface::ReadPresetSequenceMode | ( | ) |
Read from Oldb Preset Mode
| std::runtime_error | if not possible to read or value read not valid |
| void hlcc::telifsim::OldbInterface::SetConfig | ( | const hlcc::telifsim::Config & | cfg | ) |
| void hlcc::telifsim::OldbInterface::SetConfig | ( | const rad::Config & | cfg | ) |
|
override |
Publishes application current state in the Oldb