source: subversion/applications/editors/osm-editor/qt3/NodeMetaDataHandler.h @ 16590

Last change on this file since 16590 was 1158, checked in by nick, 13 years ago

moved current version to qt3 directory in preparation for qt4

File size: 633 bytes
Line 
1#ifndef NODEMETADATAHANDLER_H
2#define NODEMETADATAHANDLER_H
3
4#include <map>
5#include <qstring.h>
6
7namespace OpenStreetMap
8{
9
10class NodeMetaData
11{
12        public:
13                QString key, value;
14
15        NodeMetaData() { key=value=""; }
16        NodeMetaData(QString k, QString v)  { key=k; value=v; }
17        bool testmatch(const NodeMetaData& indata);
18};
19
20// Class for obtaining the permissions on a particular
21class NodeMetaDataHandler
22{
23private:
24        std::map<QString,NodeMetaData> nData;
25
26public:
27        NodeMetaDataHandler();
28        NodeMetaData getMetaData(const QString& type);
29        QString getNodeType(const QString&, const QString&);
30        bool keyExists(const QString& k);
31};
32
33}
34#endif
Note: See TracBrowser for help on using the repository browser.