|
hlcc 2.0.0-beta2+pre1
|
#include <oldbInterface.hpp>
Classes | |
| class | AltAz |
| Disable assignment operator. More... | |
Public Member Functions | |
| OldbInterface (const std::string &prefix="") | |
| virtual | ~OldbInterface () |
| std::string | GetControlState () |
| void | SetConfig (const hlcc::telif::Config &cfg) |
| void | SetControlState (const std::string &value, int64_t timestamp) |
| void | SetConfig (const rad::Config &cfg) |
| void | SetControlState (const std::string &value) |
| OldbInterface (const OldbInterface &)=delete | |
| OldbInterface & | operator= (const OldbInterface &)=delete |
| Disable copy constructor. | |
| boost::future< std::vector< future_oldb_data< double > > > | WriteCurrentAltAz (double alt, double az, int64_t timestamp) |
| void | Init () |
Static Public Attributes | |
| static const std::string | KEY_CONTROL_TARGET_ALTAZ = "mon/target/altaz" |
| static const std::string | KEY_CONTROL_CURRENT_ALTAZ = "mon/current/altaz" |
This class is the interface to the CII OLDB.
| hlcc::telif::OldbInterface::OldbInterface | ( | const std::string & | prefix = "" | ) |
Constructor.
| [in] | prefix | String used as prefix when building the keys. Example: "cii.oldb:///elt/hlcc/telif/" |
| [in] | oldb | Reference to the in-OLDB adapter. |
|
virtual |
Destructor
We cancel waiting tasks and wait for running background threads to finish.
|
delete |
| std::string hlcc::telif::OldbInterface::GetControlState | ( | ) |
| void hlcc::telif::OldbInterface::Init | ( | ) |
|
delete |
Disable copy constructor.
| void hlcc::telif::OldbInterface::SetConfig | ( | const hlcc::telif::Config & | cfg | ) |
| void hlcc::telif::OldbInterface::SetConfig | ( | const rad::Config & | cfg | ) |
| void hlcc::telif::OldbInterface::SetControlState | ( | const std::string & | value | ) |
| void hlcc::telif::OldbInterface::SetControlState | ( | const std::string & | value, |
| int64_t | timestamp | ||
| ) |
| boost::future< std::vector< future_oldb_data< double > > > hlcc::telif::OldbInterface::WriteCurrentAltAz | ( | double | alt, |
| double | az, | ||
| int64_t | timestamp | ||
| ) |
Convenience method that creates an AltAz object and writes it to the OLDB.
This is just for demo purposes, to show how the Java prototype could be translated to C++. Data input would come from an ICD-generated class such as CCS_MS_AltAz_Position.
|
inlinestatic |
|
inlinestatic |