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

#include <oldbInterface.hpp>

Inheritance diagram for hlcc::telifsim::OldbInterface:

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
 
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::telifsim::OldbInterface::OldbInterface ( const std::string &  prefix = "")

Constructor.

Parameters
[in]prefixString used as prefix when building the keys.

◆ ~OldbInterface()

hlcc::telifsim::OldbInterface::~OldbInterface ( )
virtual

Destructor

◆ OldbInterface() [2/2]

hlcc::telifsim::OldbInterface::OldbInterface ( const OldbInterface )
delete

Member Function Documentation

◆ GetCcsInfoEntity()

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

◆ GetCommandSource()

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

Reads the command_source from the Oldb

◆ GetControlState()

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

Reads the application current state from the oldb

◆ GetEltpkState()

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

Reads the current value of ready_for_handover flag on the Oldb

◆ GetInsrefOffset()

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

◆ GetReadyForHandover()

bool hlcc::telifsim::OldbInterface::GetReadyForHandover ( )

Reads the current value of ready_for_handover flag on the Oldb

◆ GetSiteElevation()

double hlcc::telifsim::OldbInterface::GetSiteElevation ( )

Reads the Site Elevation from Oldb

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

◆ GetSiteLatitude()

double hlcc::telifsim::OldbInterface::GetSiteLatitude ( )

Reads the Site Latitude from Oldb

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

◆ GetSiteLongitude()

double hlcc::telifsim::OldbInterface::GetSiteLongitude ( )

Reads the Site Longitude from Oldb

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

◆ Init()

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).

◆ operator=()

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

Disable copy constructor.

◆ PublishAoMirrorHealth()

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

Publishes AO mirror health

◆ PublishCcsInfo()

void hlcc::telifsim::OldbInterface::PublishCcsInfo ( )

Publishes Ccs Info

◆ PublishCommandSource()

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

Publishes the command_source in the Oldb

◆ PublishExtrefInsRef()

void hlcc::telifsim::OldbInterface::PublishExtrefInsRef ( )

Publishes external references to CCS

◆ PublishMessageOffsetSequence()

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

Publishes message for Offset sequence

◆ PublishObservingWavelength()

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

Publishes the received SetObservingWavelength, upon request

Exceptions
std::runtime_errorif not successful.

◆ PublishOffsetSequence()

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

Publish Offset sequence

Parameters
[in]sequenceString name of sequence module

◆ PublishOffsetSequenceMode()

void hlcc::telifsim::OldbInterface::PublishOffsetSequenceMode ( const telifsimif::SequenceMode &  seq_mode)

Publish Offset Mode

Parameters
[in]sequence_modeString with the mode

◆ PublishPresetSequence()

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

Publish preset sequence

Parameters
[in]sequenceString name of sequence module

◆ PublishPresetSequenceMode()

void hlcc::telifsim::OldbInterface::PublishPresetSequenceMode ( const telifsimif::SequenceMode &  seq_mode)

Publish Preset Mode

Parameters
[in]sequence_modeString with the mode

◆ PublishSetVelocityOffset()

void hlcc::telifsim::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::telifsim::OldbInterface::PublishStrokeRous ( const std::shared_ptr<::ccsinsif::rous::Maneuver > &  x)

Publishes stroke management

◆ ReadMessageOffsetSequence()

std::vector< std::shared_ptr< telifsimif::SeqMessage > > hlcc::telifsim::OldbInterface::ReadMessageOffsetSequence ( )

Reads to messages from Offset sequence

◆ ReadOffsetSequence()

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

Read from Oldb Offset sequence

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

◆ ReadOffsetSequenceMode()

telifsimif::SequenceMode hlcc::telifsim::OldbInterface::ReadOffsetSequenceMode ( )

Read from Oldb Offset Mode

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

◆ ReadPresetSequence()

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

Read from Oldb Preset sequence

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

◆ ReadPresetSequenceMode()

telifsimif::SequenceMode hlcc::telifsim::OldbInterface::ReadPresetSequenceMode ( )

Read from Oldb Preset Mode

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

◆ SetConfig() [1/2]

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

◆ SetConfig() [2/2]

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

◆ SetControlState()

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

Publishes application current state in the Oldb


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