CbmRoot
Loading...
Searching...
No Matches
qa/ApplicationParameter.h
Go to the documentation of this file.
1/* Copyright (C) 2025 GSI/VECC, Darmstadt/Kolkata
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Souvik Chattopadhyay[committer], Sergei Zharko */
4
5#ifndef APPLICATIONPARAMETER_H
6#define APPLICATIONPARAMETER_H
7
8#include <string>
9#include <vector>
10
11// Enum class to represent comparision test types
18
23 public:
27 ApplicationParameter(int argc, char* argv[]);
28
29 // Getters
33 const std::string& GetOutput() const { return fOutput; }
37 const std::string& GetConfig() const { return fConfig; }
41 const std::string& GetBuilddir() const { return fBuilddir; }
45 const std::string& GetOption() const { return fOption; }
49 const std::vector<std::string>& GetNames() const { return fNames; }
53 ETestType GetCompare() const { return fCompare; }
54
55 private:
59 void ParseCommandLine(int argc, char* argv[]);
60
61 private:
62 std::string fOutput;
63 std::string fConfig;
64 std::string fBuilddir;
65 std::string fOption;
66 std::vector<std::string> fNames;
68};
69
70#endif // APPLICATIONPARAMETER_H
const std::string & GetOutput() const
Returns the output ROOT file path.
std::string fConfig
A path to the YAML configuration file.
std::string fOption
An option to select the comparision methods and canvas handling using core::Process()
void ParseCommandLine(int argc, char *argv[])
Parses command-line arguments.
std::string fOutput
A path to the output root file.
const std::vector< std::string > & GetNames() const
Returns the list of commit hashes or week numbers.
ApplicationParameter(int argc, char *argv[])
Constructor: Parses command-line arguments.
std::vector< std::string > fNames
List of commit hashes or week numbers (yyyy_ww)
const std::string & GetOption() const
Returns the option for comparison and canvas handling.
std::string fBuilddir
A path to CBMROOT build directory.
ETestType fCompare
selected comparision type
ETestType GetCompare() const
Returns the selected comparison type.
const std::string & GetConfig() const
Returns the YAML configuration file path.
const std::string & GetBuilddir() const
Returns the CBMROOT build directory path.
@ NotDefined
Undefined mode.
@ Commit
Commit-based comparision mode.
@ Weekly
Weekly test comparision mode.