SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PointOfInterest.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // A point-of-interest (2D)
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
12 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 #ifndef PointOfInterest_h
23 #define PointOfInterest_h
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 #include <string>
36 #include <utils/common/RGBColor.h>
37 #include <utils/geom/Position.h>
38 #include <utils/common/Named.h>
39 
40 
41 // ===========================================================================
42 // class definitions
43 // ===========================================================================
48 class PointOfInterest : public RGBColor, public Position, public Named {
49 public:
56  PointOfInterest(const std::string& id, const std::string& type,
57  const Position& p, const RGBColor& c)
58  : RGBColor(c), Position(p), Named(id), myType(type) { }
59 
60 
62  virtual ~PointOfInterest() { }
63 
64 
65 
69  const std::string& getType() const {
70  return myType;
71  }
72 
73 
77  void setType(const std::string& type) {
78  myType = type;
79  }
80 
81 
82 protected:
84  std::string myType;
85 
86 };
87 
88 
89 #endif
90 
91 /****************************************************************************/
92