HLCC Documentation 2.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
hlcc::telif::OldbInterface Class Reference

#include <oldbInterface.hpp>

Inheritance diagram for hlcc::telif::OldbInterface:

Public Member Functions

 OldbInterface (const std::string &prefix="")
 
virtual ~OldbInterface ()
 
void Init (::hlcc::telif::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::telif::Config &cfg)
 
std::string GetControlState ()
 
void SetControlState (const std::string &status) override
 
void SetConfig (const rad::Config &cfg)
 
void PublishPresetSequenceMode (const telifif::SequenceMode &sequence_mode)
 
telifif::SequenceMode ReadPresetSequenceMode ()
 
void PublishPresetSequence (const std::string &sequence)
 
std::string ReadPresetSequence ()
 
void PublishOffsetSequenceMode (const telifif::SequenceMode &sequence_mode)
 
telifif::SequenceMode ReadOffsetSequenceMode ()
 
void PublishOffsetSequence (const std::string &sequence)
 
std::string ReadOffsetSequence ()
 
void PublishMessageOffsetSequence (uint16_t id, std::string message)
 
std::vector< std::shared_ptr< telifif::SeqMessage > > ReadMessageOffsetSequence ()
 
std::string WriteGuideProbeToOldb (std::shared_ptr< pfsif::GuideStarArgs > gp_args)
 
TrexData GetTrexData ()
 
void UpdateHeartbeat ()
 
void PublishPerfEstimate (std::vector< double > perf_data)
 
 OldbInterface (const OldbInterface &)=delete
 
OldbInterfaceoperator= (const OldbInterface &)=delete
 Disable copy constructor.
 

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.

◆ ~OldbInterface()

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

Destructor

◆ OldbInterface() [2/2]

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

Member Function Documentation

◆ GetCcsInfoEntity()

std::shared_ptr<::ccsinsif::CcsInfo > hlcc::telif::OldbInterface::GetCcsInfoEntity ( )
inline

◆ GetCommandSource()

std::string hlcc::telif::OldbInterface::GetCommandSource ( )

Reads the command_source from the Oldb

◆ GetControlState()

std::string hlcc::telif::OldbInterface::GetControlState ( )

Reads the application current state from the oldb

◆ GetEltpkState()

std::string hlcc::telif::OldbInterface::GetEltpkState ( )

Reads the current value of ready_for_handover flag on the Oldb

◆ GetInsrefOffset()

std::shared_ptr<::ccsinsif::insref::Offsets > hlcc::telif::OldbInterface::GetInsrefOffset ( )
inline

◆ GetReadyForHandover()

bool hlcc::telif::OldbInterface::GetReadyForHandover ( )

Reads the current value of ready_for_handover flag on the Oldb

◆ GetSiteElevation()

double hlcc::telif::OldbInterface::GetSiteElevation ( )

Reads the Site Elevation from Oldb

Returns
Site Elevation.
Exceptions
std::runtime_errorwhen it fails to get the Elevation.

◆ GetSiteLatitude()

double hlcc::telif::OldbInterface::GetSiteLatitude ( )

Reads the Site Latitude from Oldb

Returns
Site Latitude.
Exceptions
std::runtime_errorwhen it fails to get the Latitude.

◆ GetSiteLongitude()

double hlcc::telif::OldbInterface::GetSiteLongitude ( )

Reads the Site Longitude from Oldb

Returns
Site Longitude.
Exceptions
std::runtime_errorwhen it fails to get the Longitude.

◆ GetTrexData()

TrexData hlcc::telif::OldbInterface::GetTrexData ( )

Gets m_oldb_data

◆ Init()

void hlcc::telif::OldbInterface::Init ( ::hlcc::telif::Config & config)

Creates an ObservablePublisher for pub/sub and OLDB publishing. Initializes OLDB datapoints (target_alt_az) and publishers (target_alt_az_publisher).

◆ operator=()

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

Disable copy constructor.

◆ PublishAoMirrorHealth()

void hlcc::telif::OldbInterface::PublishAoMirrorHealth ( const std::shared_ptr<::ccsinsif::ao::Health > & x)

Publishes AO mirror health

◆ PublishCcsInfo()

void hlcc::telif::OldbInterface::PublishCcsInfo ( )

Publishes Ccs Info

◆ PublishCommandSource()

void hlcc::telif::OldbInterface::PublishCommandSource ( const std::string & command_source)

Publishes the command_source in the Oldb

◆ PublishExtrefInsRef()

void hlcc::telif::OldbInterface::PublishExtrefInsRef ( )

Publishes external references to CCS

◆ PublishMessageOffsetSequence()

void hlcc::telif::OldbInterface::PublishMessageOffsetSequence ( uint16_t id,
std::string message )

Publishes message for Offset sequence

◆ PublishObservingWavelength()

void hlcc::telif::OldbInterface::PublishObservingWavelength ( double wavelength)

Publishes the received SetObservingWavelength, upon request

Exceptions
std::runtime_errorif not successful.

◆ PublishOffsetSequence()

void hlcc::telif::OldbInterface::PublishOffsetSequence ( const std::string & sequence)

Publish Offset sequence

Parameters
[in]sequenceString name of sequence module

◆ PublishOffsetSequenceMode()

void hlcc::telif::OldbInterface::PublishOffsetSequenceMode ( const telifif::SequenceMode & sequence_mode)

Publish Offset Mode

Parameters
[in]sequence_modeString with the mode

◆ PublishPerfEstimate()

void hlcc::telif::OldbInterface::PublishPerfEstimate ( std::vector< double > perf_data)

◆ PublishPresetSequence()

void hlcc::telif::OldbInterface::PublishPresetSequence ( const std::string & sequence)

Publish preset sequence

Parameters
[in]sequenceString name of sequence module

◆ PublishPresetSequenceMode()

void hlcc::telif::OldbInterface::PublishPresetSequenceMode ( const telifif::SequenceMode & sequence_mode)

Publish Preset Mode

Parameters
[in]sequence_modeString with the mode

◆ PublishSetVelocityOffset()

void hlcc::telif::OldbInterface::PublishSetVelocityOffset ( const std::shared_ptr<::ccsinsif::VelocityOffset > & velocity_offset_args)

Publishes the received velocity_offset_args, upon request

Exceptions
std::runtime_errorif not successful.

◆ PublishStrokeRous()

void hlcc::telif::OldbInterface::PublishStrokeRous ( const std::shared_ptr<::ccsinsif::rous::Maneuver > & x)

Publishes stroke management

◆ ReadMessageOffsetSequence()

std::vector< std::shared_ptr< telifif::SeqMessage > > hlcc::telif::OldbInterface::ReadMessageOffsetSequence ( )

Reads to messages from Offset sequence

◆ ReadOffsetSequence()

std::string hlcc::telif::OldbInterface::ReadOffsetSequence ( )

Read from Oldb Offset sequence

Returns
string with value read from Oldb
Exceptions
std::runtime_errorif not possible to read

◆ ReadOffsetSequenceMode()

telifif::SequenceMode hlcc::telif::OldbInterface::ReadOffsetSequenceMode ( )

Read from Oldb Offset Mode

Returns
telifif::SequenceMode with value read from Oldb
Exceptions
std::runtime_errorif not possible to read or value read not valid

◆ ReadPresetSequence()

std::string hlcc::telif::OldbInterface::ReadPresetSequence ( )

Read from Oldb Preset sequence

Returns
string with value read from Oldb
Exceptions
std::runtime_errorif not possible to read

◆ ReadPresetSequenceMode()

telifif::SequenceMode hlcc::telif::OldbInterface::ReadPresetSequenceMode ( )

Read from Oldb Preset Mode

Returns
telifif::SequenceMode with value read from Oldb
Exceptions
std::runtime_errorif not possible to read or value read not valid

◆ 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()

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

Publishes application current state in the Oldb

◆ UpdateHeartbeat()

void hlcc::telif::OldbInterface::UpdateHeartbeat ( )

◆ WriteGuideProbeToOldb()

std::string hlcc::telif::OldbInterface::WriteGuideProbeToOldb ( std::shared_ptr< pfsif::GuideStarArgs > gp_args)

Sets Guide Probe oldb data points


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