LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
Actions.h
Go to the documentation of this file.
1 #ifndef art_Framework_Principal_Actions_h
2 #define art_Framework_Principal_Actions_h
3 
5 
6 #include <map>
7 #include <string>
8 
9 namespace fhicl {
10  class ParameterSet;
11 }
12 
13 namespace art {
14  namespace actions {
15  char const* actionName(ActionCodes code);
16  } // actions
17 }
18 
20 public:
21  ActionTable();
22  explicit ActionTable(fhicl::ParameterSet const&);
23 
24  void add(std::string const& category, actions::ActionCodes code);
25  actions::ActionCodes find(std::string const& category) const;
26 
27 private:
28  using ActionMap = std::map<std::string, actions::ActionCodes>;
29 
30  void addDefaults_();
31  void install_(actions::ActionCodes code,
32  fhicl::ParameterSet const& scheduler);
33 
35 };
36 
37 #endif /* art_Framework_Principal_Actions_h */
38 
39 // Local Variables:
40 // mode: c++
41 // End:
std::map< std::string, actions::ActionCodes > ActionMap
Definition: Actions.h:28
parameter set interface
char const * actionName(ActionCodes const code)
Definition: Actions.cc:33
ActionMap map_
Definition: Actions.h:34
HLT enums.