source: subversion/applications/lib/libosm/FeatureClassification.h @ 34693

Last change on this file since 34693 was 11684, checked in by nienhueser, 11 years ago

Less inline definitions. Start to document things (doxygen style)

File size: 661 bytes
Line 
1#ifndef FEATURECLASSIFICATION_H
2#define FEATURECLASSIFICATION_H
3
4#include "Object.h"
5
6#include <iostream>
7#include <map>
8#include <string>
9#include <vector>
10
11namespace OSM
12{
13
14struct KeyVal
15{
16        std::string k, v;
17        KeyVal(std::string k = std::string(), std::string v = std::string())
18        {
19                this->k = k;
20                this->v = v;
21        }
22};
23
24class FeatureClassification
25{
26public:
27        FeatureClassification();
28
29        void addWayDef(const std::string& k, const std::string& v);
30
31        void addAreaDef(const std::string& k, const std::string& v);
32
33        std::string getFeatureClass(Object *object) const;
34
35private:
36        std::vector<KeyVal> areas, ways;
37};
38
39}
40
41#endif
Note: See TracBrowser for help on using the repository browser.