Emergency 20 Dokumentation  4.2.0
IndustrialPlantComponent.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 //[-------------------------------------------------------]
14 
15 
16 //[-------------------------------------------------------]
17 //[ Namespace ]
18 //[-------------------------------------------------------]
19 namespace em5
20 {
21 
22 
23  //[-------------------------------------------------------]
24  //[ Classes ]
25  //[-------------------------------------------------------]
31  {
32 
33 
34  //[-------------------------------------------------------]
35  //[ Public definitions ]
36  //[-------------------------------------------------------]
37  public:
38  static const uint32 COMPONENT_ID;
39 
40 
41  //[-------------------------------------------------------]
42  //[ Public methods ]
43  //[-------------------------------------------------------]
44  public:
52  inline explicit IndustrialPlantComponent(qsf::Prototype* prototype);
53 
58  inline virtual ~IndustrialPlantComponent();
59 
64  void startSimulation();
65 
70  void stopSimulation();
71 
72 
73  //[-------------------------------------------------------]
74  //[ Public virtual qsf::Component methods ]
75  //[-------------------------------------------------------]
76  public:
77  virtual void serialize(qsf::BinarySerializer& serializer) override;
78  virtual void onSetDebug(bool debug) override;
79 
80 
81  //[-------------------------------------------------------]
82  //[ CAMP reflection system ]
83  //[-------------------------------------------------------]
84  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
85 
86 
87  };
88 
89 
90 //[-------------------------------------------------------]
91 //[ Namespace ]
92 //[-------------------------------------------------------]
93 } // em5
94 
95 
96 //[-------------------------------------------------------]
97 //[ Implementation ]
98 //[-------------------------------------------------------]
100 
101 
102 //[-------------------------------------------------------]
103 //[ CAMP reflection system ]
104 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
EMERGENCY 5 industrial plant component class.
Definition: IndustrialPlantComponent.h:30
unsigned int uint32
Definition: PlatformTypes.h:181
#define EM5_API_EXPORT
Definition: Export.h:28
static const uint32 COMPONENT_ID
"em5::IndustrialPlantComponent" unique component ID
Definition: IndustrialPlantComponent.h:38
void serialize(BinarySerializer &serializer, BitFlagSet< STORAGE, ENUM > &bitFlagSet)
Definition: BitFlagSet.h:359
#define QSF_CAMP_RTTI()
Only adds the virtual method "campClassId()", nothing more.
Definition: CampClass.h:75
#define QSF_CAMP_TYPE_NONCOPYABLE(type)
See "CAMP_TYPE_NONCOPYABLE" for details.
Definition: CampClass.h:112
EMERGENCY 5 contamination component class.
Definition: ContaminationComponent.h:43
Prototype class.
Definition: Prototype.h:100
Binary serializer class.
Definition: BinarySerializer.h:35