CbmRoot
Loading...
Searching...
No Matches
cbm::services::histserv_tester::ProgramOptions Class Reference

#include <ProgramOptions.h>

Collaboration diagram for cbm::services::histserv_tester::ProgramOptions:
[legend]

Public Member Functions

 ProgramOptions (int argc, char *argv[])
 Standard constructor with command line arguments.
 
 ProgramOptions (const ProgramOptions &)=default
 Copy constructor forbidden.
 
ProgramOptionsoperator= (const ProgramOptions &)=default
 Assignment operator forbidden.
 
 ~ProgramOptions ()=default
 Destructor.
 
const std::string & ComChan () const
 Get interface channel name or hostname + port or whatever or ????? (FIXME: replacement of FairMQ)
 
const int64_t & Runtime () const
 Get run duration.
 
const int64_t & PubInterval () const
 Get histos publication interval.
 

Private Member Functions

void ParseOptions (int argc, char *argv[])
 Get configuration file name (YAML format)
 

Private Attributes

std::string fsChanHistosIn = "histogram-in"
 
int64_t fRunTime = 90
 
int64_t fPubInterval = 5
 

Detailed Description

Author
Pierre-Alain Loizeau p.-a..nosp@m.loiz.nosp@m.eau@g.nosp@m.si.d.nosp@m.e
Since
26 June 2023

Program option class for the application histserv_nofairmq

Definition at line 19 of file services/histserv/tester/ProgramOptions.h.

Constructor & Destructor Documentation

◆ ProgramOptions() [1/2]

cbm::services::histserv_tester::ProgramOptions::ProgramOptions ( int argc,
char * argv[] )
inline

Standard constructor with command line arguments.

Definition at line 22 of file services/histserv/tester/ProgramOptions.h.

References ParseOptions().

◆ ProgramOptions() [2/2]

cbm::services::histserv_tester::ProgramOptions::ProgramOptions ( const ProgramOptions & )
default

Copy constructor forbidden.

◆ ~ProgramOptions()

cbm::services::histserv_tester::ProgramOptions::~ProgramOptions ( )
default

Destructor.

Member Function Documentation

◆ ComChan()

const std::string & cbm::services::histserv_tester::ProgramOptions::ComChan ( ) const
inlinenodiscard

Get interface channel name or hostname + port or whatever or ????? (FIXME: replacement of FairMQ)

Definition at line 34 of file services/histserv/tester/ProgramOptions.h.

References fsChanHistosIn.

Referenced by cbm::services::histserv_tester::Application::Application().

◆ operator=()

ProgramOptions & cbm::services::histserv_tester::ProgramOptions::operator= ( const ProgramOptions & )
default

Assignment operator forbidden.

◆ ParseOptions()

void ProgramOptions::ParseOptions ( int argc,
char * argv[] )
private

Get configuration file name (YAML format)

Parse command line arguments using boost program_options

Definition at line 21 of file services/histserv/tester/ProgramOptions.cxx.

References fPubInterval, fRunTime, and fsChanHistosIn.

Referenced by ProgramOptions().

◆ PubInterval()

const int64_t & cbm::services::histserv_tester::ProgramOptions::PubInterval ( ) const
inlinenodiscard

Get histos publication interval.

Definition at line 40 of file services/histserv/tester/ProgramOptions.h.

References fPubInterval.

Referenced by cbm::services::histserv_tester::Application::Exec().

◆ Runtime()

const int64_t & cbm::services::histserv_tester::ProgramOptions::Runtime ( ) const
inlinenodiscard

Member Data Documentation

◆ fPubInterval

int64_t cbm::services::histserv_tester::ProgramOptions::fPubInterval = 5
private

Definition at line 53 of file services/histserv/tester/ProgramOptions.h.

Referenced by ParseOptions(), and PubInterval().

◆ fRunTime

int64_t cbm::services::histserv_tester::ProgramOptions::fRunTime = 90
private

Definition at line 52 of file services/histserv/tester/ProgramOptions.h.

Referenced by ParseOptions(), and Runtime().

◆ fsChanHistosIn

std::string cbm::services::histserv_tester::ProgramOptions::fsChanHistosIn = "histogram-in"
private

Definition at line 51 of file services/histserv/tester/ProgramOptions.h.

Referenced by ComChan(), and ParseOptions().


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