EventAnalysis  1.0.0
ObjectCategory.h
Go to the documentation of this file.
1 /*
2  * ObjectCategory.h
3  *
4  * Created on: 24 mag 2017
5  * Author: mori
6  */
7 
8 #ifndef OBJECTCATEGORY_H_
9 #define OBJECTCATEGORY_H_
10 
11 #include <array>
12 #include <iostream>
13 
14 namespace EA {
15 
17 enum class ObjectCategory : int {
18  NONE,
19  EVENT,
20  PASS,
21  GLOBAL
22 };
23 
24 const std::array<std::string, 4> ObjectCategoryName{"None", "Event", "Pass", "Global"};
25 inline std::ostream &operator<<(std::ostream &out, const ObjectCategory &category) {
26  return out << ObjectCategoryName[static_cast<int>(category)];
27 }
28 
29 } // namespace EA
30 
31 #endif /* OBJECTCATEGORY_H_ */
Objects with values defined on a per-event basis.
IncludeFileExc.h IncludeFileExc class declaration.
Definition: Algorithm.h:21
std::ostream & operator<<(std::ostream &out, InsertionResult ir)
Insertion operator for InsertionResult.
Definition: InsertionResult.h:36
const std::array< std::string, 4 > ObjectCategoryName
Definition: ObjectCategory.h:24
Objects with values defined on a per-pass basis.
ObjectCategory
Category of objects.
Definition: ObjectCategory.h:17
Undefined value (for default initialization).