SUMO - Simulation of Urban MObility

GUIGlObject_AbstractAdd.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // Base class for additional objects (detectors etc.)
00008 /****************************************************************************/
00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00010 // Copyright (C) 2001-2011 DLR (http://www.dlr.de/) and contributors
00011 /****************************************************************************/
00012 //
00013 //   This program is free software; you can redistribute it and/or modify
00014 //   it under the terms of the GNU General Public License as published by
00015 //   the Free Software Foundation; either version 2 of the License, or
00016 //   (at your option) any later version.
00017 //
00018 /****************************************************************************/
00019 #ifndef GUIGlObject_AbstractAdd_h
00020 #define GUIGlObject_AbstractAdd_h
00021 
00022 
00023 // ===========================================================================
00024 // included modules
00025 // ===========================================================================
00026 #ifdef _MSC_VER
00027 #include <windows_config.h>
00028 #else
00029 #include <config.h>
00030 #endif
00031 
00032 #include "GUIGlObjectTypes.h"
00033 #include "GUIGlObject.h"
00034 #include <vector>
00035 #include <map>
00036 
00037 
00038 // ===========================================================================
00039 // class definitions
00040 // ===========================================================================
00044 class GUIGlObject_AbstractAdd :
00045     public GUIGlObject {
00046 public:
00047     GUIGlObject_AbstractAdd(
00048         const std::string& prefix,
00049         GUIGlObjectType type,
00050         const std::string& id);
00051 
00052     ~GUIGlObject_AbstractAdd() throw();
00053 
00055     static void clearDictionary();
00056 
00058     static GUIGlObject_AbstractAdd* get(const std::string& name);
00059 
00061     static const std::vector<GUIGlObject_AbstractAdd*> &getObjectList();
00062 
00064     static std::vector<GUIGlID> getIDList();
00065 
00066 
00067 protected:
00069     static std::map<std::string, GUIGlObject_AbstractAdd*> myObjects;
00070 
00072     static std::vector<GUIGlObject_AbstractAdd*> myObjectList;
00073 
00074 };
00075 
00076 
00077 #endif
00078 
00079 /****************************************************************************/
00080 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines