SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MSTrigger.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // An abstract device that changes the state of the micro simulation
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
11 // Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
12 /****************************************************************************/
13 //
14 // This file is part of SUMO.
15 // SUMO is free software: you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation, either version 3 of the License, or
18 // (at your option) any later version.
19 //
20 /****************************************************************************/
21 #ifndef MSTrigger_h
22 #define MSTrigger_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <set>
35 #include <utils/common/Named.h>
36 
37 
38 // ===========================================================================
39 // class definitions
40 // ===========================================================================
48 class MSTrigger : public Named {
49 public:
54  MSTrigger(const std::string& id);
55 
57  virtual ~MSTrigger();
58 
60  static void cleanup();
61 
62 private:
64  MSTrigger(const MSTrigger&);
65 
67  MSTrigger& operator=(const MSTrigger&);
68 
69  static std::set<MSTrigger*> myInstances;
70 
71 };
72 
73 
74 #endif
75 
76 /****************************************************************************/
77 
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:48
static std::set< MSTrigger * > myInstances
Definition: MSTrigger.h:69
static void cleanup()
properly deletes all trigger instances
Definition: MSTrigger.cpp:46
Base class for objects which have an id.
Definition: Named.h:45