ATLAS Offline Software
JobOption.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 //
7 //NAME: JobOption.h
8 //AUTHOR: J.Haller (CERN) Johannes.Haller@cern.ch
9 //CREATED: 06. Feb. 2006
10 //
11 //PURPOSE:
12 //
13 //
15 
16 #ifndef TrigConf_JobOption
17 #define TrigConf_JobOption
18 
20 
21 #include <iosfwd>
22 #include <string>
23 
24 namespace TrigConf {
25  class JobOption;
26 }
27 std::ostream& operator<<(std::ostream &o, const TrigConf::JobOption& jo);
28 
29 namespace TrigConf {
30 
32  class JobOption : public TrigConfData {
33  public:
34 
43  JobOption(const std::string& cp_alias,
44  const std::string& name,
45  const std::string& type,
46  const std::string& op,
47  const std::string& value);
48 
50  virtual ~JobOption() override = default;
51 
52  // Accessors
53  const std::string& component_alias() const { return m_Component_Alias; };
54  const std::string& name() const { return m_Name; }
55  const std::string& type() const { return m_Type; }
56  const std::string& op() const { return m_Op; }
57  const std::string& value() const { return m_Value; }
58 
60  virtual void print(const std::string& indent="", unsigned int detail=1) const override;
61 
62  friend std::ostream& ::operator<< (std::ostream &o, const JobOption& jo);
63 
64  private:
65  std::string m_Component_Alias;
66  std::string m_Name;
67  std::string m_Type;
68  std::string m_Op;
69  std::string m_Value;
70  };
71 
72 } // End of namespace
73 
74 
75 #endif
76 
TrigConf::JobOption::~JobOption
virtual ~JobOption() override=default
destructor
TrigConf::JobOption::m_Value
std::string m_Value
accessor to parameter value
Definition: JobOption.h:69
TrigConf::JobOption::m_Component_Alias
std::string m_Component_Alias
accessor to component alias
Definition: JobOption.h:65
detail
Definition: extract_histogram_tag.cxx:14
TrigConf::JobOption::m_Op
std::string m_Op
accessor to optional set flag
Definition: JobOption.h:68
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConfData.h
TrigConf::TrigConfData
Definition: TrigConfData.h:13
TrigConf::JobOption::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
print method
Definition: JobOption.cxx:36
TrigConf::JobOption::component_alias
const std::string & component_alias() const
Definition: JobOption.h:53
TrigConf::name
Definition: HLTChainList.h:35
TrigConf::JobOption
hold a single job option (parameter and value)
Definition: JobOption.h:32
TrigConf::JobOption::value
const std::string & value() const
accessor to parameter value
Definition: JobOption.h:57
TrigConf::JobOption::name
const std::string & name() const
accessor to component alias
Definition: JobOption.h:54
TrigConf::JobOption::m_Type
std::string m_Type
accessor to parameter type
Definition: JobOption.h:67
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition: TrigConfData.cxx:23
TrigConf::JobOption::JobOption
JobOption(const std::string &cp_alias, const std::string &name, const std::string &type, const std::string &op, const std::string &value)
constructor
Definition: JobOption.cxx:23
TrigConf::JobOption::op
const std::string & op() const
accessor to optional set flag
Definition: JobOption.h:56
TrigConf::JobOption::type
const std::string & type() const
accessor to parameter type
Definition: JobOption.h:55
TrigConf::JobOption::m_Name
std::string m_Name
accessor to parameter name
Definition: JobOption.h:66
operator<<
std::ostream & operator<<(std::ostream &o, const TrigConf::JobOption &jo)
Definition: JobOption.cxx:41