Emergency 20 Dokumentation  4.2.0
MainEventIdentifier.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
13 #include <string>
14 
15 
16 //[-------------------------------------------------------]
17 //[ Namespace ]
18 //[-------------------------------------------------------]
19 namespace em5
20 {
21 
22 
23  //[-------------------------------------------------------]
24  //[ Classes ]
25  //[-------------------------------------------------------]
31  {
32 
33 
34  //[-------------------------------------------------------]
35  //[ Public static methods ]
36  //[-------------------------------------------------------]
37  public:
38  static const std::vector<uint32>& getMainEventNumberArray(uint32 campaignIndex);
39 
40  static MainEventIdentifier fromIndex(uint32 campaignIndex, uint32 mainEventIndex);
41 
42 
43  //[-------------------------------------------------------]
44  //[ Public methods ]
45  //[-------------------------------------------------------]
46  public:
52 
57  explicit MainEventIdentifier(uint32 number);
58 
63  explicit MainEventIdentifier(const std::string& identifier);
64 
70 
71  uint32 getNumber() const;
72  const std::string& getIdentifier() const;
73  std::string getLocalizationString() const;
74 
75 
76  //[-------------------------------------------------------]
77  //[ Private data ]
78  //[-------------------------------------------------------]
79  private:
80  uint32 mNumber;
81  std::string mIdentifier;
82 
83 
84  };
85 
86 
87 //[-------------------------------------------------------]
88 //[ Namespace ]
89 //[-------------------------------------------------------]
90 } // em5
Definition: ActionPriority.h:13
unsigned int uint32
Definition: PlatformTypes.h:181
EMERGENCY 5 main event identifier class.
Definition: MainEventIdentifier.h:30
std::string getLocalizationString() const
~MainEventIdentifier()
Destructor.
static MainEventIdentifier fromIndex(uint32 campaignIndex, uint32 mainEventIndex)
uint32 getNumber() const
static const std::vector< uint32 > & getMainEventNumberArray(uint32 campaignIndex)
const std::string & getIdentifier() const
MainEventIdentifier()
Default constructor.