Eclipse 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-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 // An abstract device that changes the state of the micro simulation
16 /****************************************************************************/
17 #ifndef MSTrigger_h
18 #define MSTrigger_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <set>
27 #include <utils/common/Named.h>
28 
29 
30 // ===========================================================================
31 // class definitions
32 // ===========================================================================
40 class MSTrigger : public Named {
41 public:
46  MSTrigger(const std::string& id);
47 
49  virtual ~MSTrigger();
50 
52  static void cleanup();
53 
54 private:
57 
60 
61  static std::set<MSTrigger*> myInstances;
62 
63 };
64 
65 
66 #endif
67 
68 /****************************************************************************/
69 
MSTrigger::operator=
MSTrigger & operator=(const MSTrigger &)
Invalidated assignment operator.
MSTrigger::~MSTrigger
virtual ~MSTrigger()
Destructor.
Definition: MSTrigger.cpp:38
Named
Base class for objects which have an id.
Definition: Named.h:56
MSTrigger::myInstances
static std::set< MSTrigger * > myInstances
Definition: MSTrigger.h:61
MSTrigger::cleanup
static void cleanup()
properly deletes all trigger instances
Definition: MSTrigger.cpp:43
MSTrigger::MSTrigger
MSTrigger(const MSTrigger &)
Invalidated copy constructor.
Named.h
MSTrigger
An abstract device that changes the state of the micro simulation.
Definition: MSTrigger.h:40
config.h
MSTrigger::MSTrigger
MSTrigger(const std::string &id)
Constructor.
Definition: MSTrigger.cpp:32