ddt  0.1
Public Member Functions | List of all members
ddt::CommandLineParserBuilder Class Reference

#include <commandLineParserBuilder.hpp>

Public Member Functions

 CommandLineParserBuilder ()=default
 
virtual ~CommandLineParserBuilder ()
 
CommandLineParser buildViewerParser (std::string &filename, std::string &data_stream)
 
CommandLineParser buildSubscriberParser (std::string &broker, std::string &data_stream, int &frequency, std::string &remote_broker, int &mode, bool &statistics)
 
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)
 

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)

Build commandline parser for the data broker

Parameters
uriPublishing URI

◆ 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

◆ buildSubscriberParser()

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

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

◆ buildViewerParser()

CommandLineParser CommandLineParserBuilder::buildViewerParser ( std::string &  filename,
std::string &  data_stream 
)

Build the commandline parser for the viewer

Parameters
filenameThe name of a file to open
data_streamThe name of a data stream to attach

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