SUMO - Simulation of Urban MObility
MSTrigger.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
18 // An abstract device that changes the state of the micro simulation
19 /****************************************************************************/
20 #ifndef MSTrigger_h
21 #define MSTrigger_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <set>
34 #include <utils/common/Named.h>
35 
36 
37 // ===========================================================================
38 // class definitions
39 // ===========================================================================
47 class MSTrigger : public Named {
48 public:
53  MSTrigger(const std::string& id);
54 
56  virtual ~MSTrigger();
57 
59  static void cleanup();
60 
61 private:
63  MSTrigger(const MSTrigger&);
64 
66  MSTrigger& operator=(const MSTrigger&);
67 
68  static std::set<MSTrigger*> myInstances;
69 
70 };
71 
72 
73 #endif
74 
75 /****************************************************************************/
76 
MSTrigger(const std::string &id)
Constructor.
Definition: MSTrigger.cpp:35
virtual ~MSTrigger()
Destructor.
Definition: MSTrigger.cpp:41
MSTrigger & operator=(const MSTrigger &)
Invalidated assignment operator.
An abstract device that changes the state of the micro simulation.
Definition: MSTrigger.h:47
static std::set< MSTrigger * > myInstances
Definition: MSTrigger.h:68
static void cleanup()
properly deletes all trigger instances
Definition: MSTrigger.cpp:46
Base class for objects which have an id.
Definition: Named.h:45