EventAnalysis  1.3.0
TextFileConfigurator.h
Go to the documentation of this file.
1 /*
2  * TextFileConfigurator.h
3  *
4  * Created on: 17 Aug 2017
5  * Author: Nicola Mori
6  */
7 
10 #ifndef TEXTFILECONFIGURATOR_H_
11 #define TEXTFILECONFIGURATOR_H_
12 
15 
16 namespace EA {
17 
26 
27 public:
29  TextFileConfigurator() : _lineHandlerName("TokenizedConfigLineHandler") {}
30 
51  bool Configure(AnalysisManager &anManager, const std::string &fileName, const CommandLineParameters &clParams);
52 
60  void SetLineHandler(const std::string &handlerName) { _lineHandlerName = handlerName; }
61 
62 private:
63  bool _ConfigureImp(AnalysisManager &anManager, const std::string &fileName, const CommandLineParameters &clParams,
64  observer_ptr<ConfigLineHandler> lineHandler = NULL);
65 
66  std::string _lineHandlerName;
67 };
68 
69 } // namespace EA
70 
71 #endif /* TEXTFILECONFIGURATOR_H_ */
A smart pointer not owning the wrapped object.
Definition: ObserverPtr.h:28
IncludeFileExc.h IncludeFileExc class declaration.
Definition: Algorithm.h:21
void SetLineHandler(const std::string &handlerName)
Sets the line handler.
Definition: TextFileConfigurator.h:60
A class to store parameters passed from command line.
Definition: CommandLineParameters.h:31
bool _ConfigureImp(AnalysisManager &anManager, const std::string &fileName, const CommandLineParameters &clParams, observer_ptr< ConfigLineHandler > lineHandler=NULL)
Definition: TextFileConfigurator.cpp:115
bool Configure(AnalysisManager &anManager, const std::string &fileName, const CommandLineParameters &clParams)
Configures the analysis manager using the given configuration file.
Definition: TextFileConfigurator.cpp:25
Interface for analysis configurator.
Definition: Configurator.h:24
Configures the analysis according to a configuration text file.
Definition: TextFileConfigurator.h:25
TextFileConfigurator()
Constructor.
Definition: TextFileConfigurator.h:29
The top-level class managing the setup and run of the data analysis.
Definition: AnalysisManager.h:27
std::string _lineHandlerName
Definition: TextFileConfigurator.h:66