ATLAS Offline Software
StringData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3  */
4 
5 #ifndef STRINGDATA_H_
6 #define STRINGDATA_H_
7 
8 #include <string>
9 #include <vector>
10 
11 namespace top {
16  struct StringData {
18  std::string m_data;
19 
21  std::string m_human_explanation;
22 
24  std::vector<std::string> m_allowed_values;
25 
27  std::string m_default_val;
28 
30  bool m_set;
31  };
32 }
33 
34 #endif
top
TopConfig A simple configuration that is NOT a singleton.
Definition: AnalysisTrackingHelper.cxx:58
top::StringData::m_set
bool m_set
A flag that lets us know if the user has set something or not.
Definition: StringData.h:30
top::StringData::m_data
std::string m_data
The data set by the user.
Definition: StringData.h:18
top::StringData::m_allowed_values
std::vector< std::string > m_allowed_values
If option can be only one of several values, store all possible options here.
Definition: StringData.h:24
top::StringData::m_human_explanation
std::string m_human_explanation
A helpful message that tells the user what's expected here.
Definition: StringData.h:21
top::StringData
A little helper to hold the data, a little information that's useful to humans and a flag (true) if t...
Definition: StringData.h:16
top::StringData::m_default_val
std::string m_default_val
Default value for the config option.
Definition: StringData.h:27