ddt 1.1.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ddt::CommandLineParserBuilder Class Reference

#include <commandLineParserBuilder.hpp>

Public Member Functions

 CommandLineParserBuilder ()=default
 
virtual ~CommandLineParserBuilder ()
 
CommandLineParser BuildRemoteClientParser (std::string &server_uri, std::string &image_widget, std::string &command, std::vector< std::string > &arguments, int32_t &timeout, bool &infinite)
 
CommandLineParser BuildViewerParser (std::string &filename, std::string &local_broker_uri, std::string &remote_broker_uri, std::string &data_stream, std::string &server_uri, std::string &default_image_scale, bool &timestamp, std::string &overlay_file)
 
CommandLineParser BuildSubscriberParser (std::string &broker, std::string &data_stream, int &frequency, std::string &remote_broker, int &mode, bool &statistics, bool &dump_data, std::string &dump_folder)
 
CommandLineParser BuildPublisherParser (std::string &broker, std::string &data_stream, int &frequency, int &buffer_size, std::string &image_folder, int &mode, bool &checksum)
 
CommandLineParser BuildBrokerParser (std::string &uri, std::string &config_file, bool &datastreams_list)
 

Detailed Description

Commandline parser builder class used to build a commandline parser

Constructor & Destructor Documentation

◆ CommandLineParserBuilder()

ddt::CommandLineParserBuilder::CommandLineParserBuilder ( )
default

Constructor

◆ ~CommandLineParserBuilder()

CommandLineParserBuilder::~CommandLineParserBuilder ( )
virtualdefault

Destructor

Member Function Documentation

◆ BuildBrokerParser()

CommandLineParser CommandLineParserBuilder::BuildBrokerParser ( std::string &  uri,
std::string &  config_file,
bool &  datastreams_list 
)

Build commandline parser for the data broker

Parameters
uriPublishing URI
config_fileConfiguration file

◆ BuildPublisherParser()

CommandLineParser CommandLineParserBuilder::BuildPublisherParser ( std::string &  broker,
std::string &  data_stream,
int &  frequency,
int &  buffer_size,
std::string &  image_folder,
int &  mode,
bool &  checksum 
)

Build the commandline parser for the publisher

Parameters
brokerBroker URI
data_streamName of the data stream
frequencyPublishing frequency
buffer_sizeSize of the ringbuffer
image_folderFolder for FITS images
modeSimulator mode
checksumFlag indicating if the checksum is switched on or off

◆ BuildRemoteClientParser()

CommandLineParser CommandLineParserBuilder::BuildRemoteClientParser ( std::string &  server_uri,
std::string &  image_widget,
std::string &  command,
std::vector< std::string > &  arguments,
int32_t &  timeout,
bool &  infinite 
)

Build the commandline parser for the remote client

Parameters
server_uriURI to the Remote Control Server
image_widgetThe name of the image widget
commandCommand which is sent to the Remote Control Server
argumentsCommand arguments
timeoutTimeout for the MAL client (reply time)
infiniteInfinite timeout for the MAL client (reply time is set to 24 h!)

◆ BuildSubscriberParser()

CommandLineParser CommandLineParserBuilder::BuildSubscriberParser ( std::string &  broker,
std::string &  data_stream,
int &  frequency,
std::string &  remote_broker,
int &  mode,
bool &  statistics,
bool &  dump_data,
std::string &  dump_folder 
)

Build the commandline parser for the subscriber

Parameters
brokerBroker URI
data_streamName of the data stream
frequencyReading frequency
remote_brokerURI of the remote broker
modeMode of the subscriber simulator
statisticsFlag to activate printing of statistic values
dump_dataFlag to activate dumping of received data as FITS files
dump_folderFolder where to store the dumped FITS files

◆ BuildViewerParser()

CommandLineParser CommandLineParserBuilder::BuildViewerParser ( std::string &  filename,
std::string &  local_broker_uri,
std::string &  remote_broker_uri,
std::string &  data_stream,
std::string &  server_uri,
std::string &  default_image_scale,
bool &  timestamp,
std::string &  overlay_file 
)

Build the commandline parser for the viewer

Parameters
filenameThe name of a file to open
local_broker_uriLocal broker URI for datastream
remote_broker_uriRemote broker URI to connect with
data_streamThe name of a data stream to attach
server_uriServer URI for remote control interface
default_image_scaleDefault scale for the image (specify as whole integers or in the form 1/2, 1/4 etc.)
timestampflag to display the timestamp of the received data sample
overlay_fileThe overlay file to load

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