hlcc 2.0.0-beta2+pre1
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Attributes | List of all members
hlcc::telif::OldbInterface Class Reference

#include <oldbInterface.hpp>

Inheritance diagram for hlcc::telif::OldbInterface:

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
 
OldbInterfaceoperator= (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"
 

Detailed Description

This class is the interface to the CII OLDB.

Constructor & Destructor Documentation

◆ OldbInterface() [1/2]

hlcc::telif::OldbInterface::OldbInterface ( const std::string &  prefix = "")

Constructor.

Parameters
[in]prefixString used as prefix when building the keys. Example: "cii.oldb:///elt/hlcc/telif/"
[in]oldbReference to the in-OLDB adapter.

◆ ~OldbInterface()

hlcc::telif::OldbInterface::~OldbInterface ( )
virtual

Destructor

We cancel waiting tasks and wait for running background threads to finish.

◆ OldbInterface() [2/2]

hlcc::telif::OldbInterface::OldbInterface ( const OldbInterface )
delete

Member Function Documentation

◆ GetControlState()

std::string hlcc::telif::OldbInterface::GetControlState ( )
Returns
The current state of the application stored in the DB.

◆ Init()

void hlcc::telif::OldbInterface::Init ( )

◆ operator=()

OldbInterface & hlcc::telif::OldbInterface::operator= ( const OldbInterface )
delete

Disable copy constructor.

◆ SetConfig() [1/2]

void hlcc::telif::OldbInterface::SetConfig ( const hlcc::telif::Config cfg)

◆ SetConfig() [2/2]

void hlcc::telif::OldbInterface::SetConfig ( const rad::Config &  cfg)

◆ SetControlState() [1/2]

void hlcc::telif::OldbInterface::SetControlState ( const std::string &  value)

◆ SetControlState() [2/2]

void hlcc::telif::OldbInterface::SetControlState ( const std::string &  value,
int64_t  timestamp 
)

◆ WriteCurrentAltAz()

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.

Member Data Documentation

◆ KEY_CONTROL_CURRENT_ALTAZ

const std::string hlcc::telif::OldbInterface::KEY_CONTROL_CURRENT_ALTAZ = "mon/current/altaz"
inlinestatic

◆ KEY_CONTROL_TARGET_ALTAZ

const std::string hlcc::telif::OldbInterface::KEY_CONTROL_TARGET_ALTAZ = "mon/target/altaz"
inlinestatic

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