CbmRoot
|
#include <ProgramOptions.h>
Public Member Functions | |
ProgramOptions (int argc, char *argv[]) | |
Standard constructor with command line arguments. | |
ProgramOptions (const ProgramOptions &)=default | |
Copy constructor forbidden. | |
ProgramOptions & | operator= (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 int32_t & | ComChanZmqRcvHwm () const |
Get receive High-Water Mark for interface channel. | |
const int32_t & | ComChanZmqRcvTo () const |
Get receive timeout for interface channel. | |
const uint32_t & | HttpPort () const |
Get histo server http port. | |
const std::string & | HistoFile () const |
Get output file name (.root format) | |
bool | Overwrite () const |
Get overwrite option. | |
bool | HideGuiCommands () const |
Get overwrite option. | |
bool | CompressedInput () const |
Get compressed input option. | |
Private Member Functions | |
void | ParseOptions (int argc, char *argv[]) |
Get configuration file name (YAML format) | |
Private Attributes | |
std::string | fsChanHistosIn = "tcp://127.0.0.1:56800" |
int32_t | fiHistosInZmqHwm = 1 |
High-Water Mark, default keep only 1 update in buffer. | |
int32_t | fiHistosInZmqRcvToMs = 10 |
Timeout in ms: -1 = block, 0 = instant, val = nb ms. | |
uint32_t | fuHttpServerPort = 8080 |
HTTP port of the ROOT web server. | |
std::string | fsHistoFileName = "histos_dump.root" |
Output file name (ROOT format) | |
bool | fOverwrite = false |
Enable overwriting of existing output file. | |
bool | fHideGuiCommands = false |
Hides (disables) the GUI commands for Reset/Save/Close. | |
bool | fCompressedInput = false |
Enables ZSTD stream decompression is available. | |
Program option class for the application histserv_nofairmq
Definition at line 20 of file services/histserv/app/ProgramOptions.h.
|
inline |
Standard constructor with command line arguments.
Definition at line 23 of file services/histserv/app/ProgramOptions.h.
References ParseOptions().
|
default |
Copy constructor forbidden.
|
default |
Destructor.
|
inlinenodiscard |
Get interface channel name or hostname + port or whatever or ????? (FIXME: replacement of FairMQ)
Definition at line 35 of file services/histserv/app/ProgramOptions.h.
References fsChanHistosIn.
Referenced by cbm::services::histserv::Application::Application().
|
inlinenodiscard |
Get receive High-Water Mark for interface channel.
Definition at line 38 of file services/histserv/app/ProgramOptions.h.
References fiHistosInZmqHwm.
Referenced by cbm::services::histserv::Application::Application().
|
inlinenodiscard |
Get receive timeout for interface channel.
Definition at line 41 of file services/histserv/app/ProgramOptions.h.
References fiHistosInZmqRcvToMs.
Referenced by cbm::services::histserv::Application::Application().
|
inlinenodiscard |
Get compressed input option.
Definition at line 56 of file services/histserv/app/ProgramOptions.h.
References fCompressedInput.
Referenced by cbm::services::histserv::Application::ReceiveCanvasConfig(), cbm::services::histserv::Application::ReceiveConfigAndData(), cbm::services::histserv::Application::ReceiveData(), and cbm::services::histserv::Application::ReceiveHistoConfig().
|
inlinenodiscard |
Get overwrite option.
Definition at line 53 of file services/histserv/app/ProgramOptions.h.
References fHideGuiCommands.
Referenced by cbm::services::histserv::Application::Application().
|
inlinenodiscard |
Get output file name (.root format)
Definition at line 47 of file services/histserv/app/ProgramOptions.h.
References fsHistoFileName.
Referenced by cbm::services::histserv::Application::Application(), and cbm::services::histserv::Application::SaveHistograms().
|
inlinenodiscard |
Get histo server http port.
Definition at line 44 of file services/histserv/app/ProgramOptions.h.
References fuHttpServerPort.
Referenced by cbm::services::histserv::Application::Application().
|
default |
Assignment operator forbidden.
|
inlinenodiscard |
Get overwrite option.
Definition at line 50 of file services/histserv/app/ProgramOptions.h.
References fOverwrite.
Referenced by cbm::services::histserv::Application::Application(), and cbm::services::histserv::Application::SaveHistograms().
|
private |
Get configuration file name (YAML format)
Parse command line arguments using boost program_options
Definition at line 21 of file services/histserv/app/ProgramOptions.cxx.
References fCompressedInput, fHideGuiCommands, fiHistosInZmqHwm, fiHistosInZmqRcvToMs, fOverwrite, fsChanHistosIn, fsHistoFileName, and fuHttpServerPort.
Referenced by ProgramOptions().
|
private |
Enables ZSTD stream decompression is available.
Definition at line 74 of file services/histserv/app/ProgramOptions.h.
Referenced by CompressedInput(), and ParseOptions().
|
private |
Hides (disables) the GUI commands for Reset/Save/Close.
Definition at line 73 of file services/histserv/app/ProgramOptions.h.
Referenced by HideGuiCommands(), and ParseOptions().
|
private |
High-Water Mark, default keep only 1 update in buffer.
Definition at line 68 of file services/histserv/app/ProgramOptions.h.
Referenced by ComChanZmqRcvHwm(), and ParseOptions().
|
private |
Timeout in ms: -1 = block, 0 = instant, val = nb ms.
Definition at line 69 of file services/histserv/app/ProgramOptions.h.
Referenced by ComChanZmqRcvTo(), and ParseOptions().
|
private |
Enable overwriting of existing output file.
Definition at line 72 of file services/histserv/app/ProgramOptions.h.
Referenced by Overwrite(), and ParseOptions().
|
private |
Definition at line 67 of file services/histserv/app/ProgramOptions.h.
Referenced by ComChan(), and ParseOptions().
|
private |
Output file name (ROOT format)
Definition at line 71 of file services/histserv/app/ProgramOptions.h.
Referenced by HistoFile(), and ParseOptions().
|
private |
HTTP port of the ROOT web server.
Definition at line 70 of file services/histserv/app/ProgramOptions.h.
Referenced by HttpPort(), and ParseOptions().