-
Notifications
You must be signed in to change notification settings - Fork 1
/
CommandLine.h
45 lines (38 loc) · 1.02 KB
/
CommandLine.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/******************************************************************************************************************/
// Fonction de lecture des arguments de la ligne de commande */
/******************************************************************************************************************/
#ifndef CommandLine_h
#define CommandLine_h
//
// Include de C++
#include <iostream>
#include <getopt.h>
using namespace std;
#include <math.h>
#include <string.h>
#include <sstream>
#include <fstream>
#include <TSystem.h>
#include <TROOT.h>
#include "ConfigFile.h"
class CommandLine
{
public:
CommandLine ();
~CommandLine (){};
int Init (int argc, char **argv);
void Print_Help ();
void SaveToConfig(ConfigFile &Conf);
string GetConfFile () {return ConfFile; };
vector<string> GetTrees () {return Trees; };
private:
vector<string> Trees;
string ConfFile;
string Executable;
bool Debug;
string EcalFile;
string EcalArray;
string LogFile;
string OutputFile;
};
#endif