00001
00002
00003
00004
00005
00006
00007 #ifndef POINT_IDENTIFIERS_H
00008 #define POINT_IDENTIFIERS_H
00009
00010 #include <QHash>
00011 #include <QString>
00012
00013 class QXmlStreamReader;
00014 class QXmlStreamWriter;
00015
00016 typedef QHash<QString, bool> PointIdentifiersInternal;
00017
00019 class PointIdentifiers
00020 {
00021 public:
00023 PointIdentifiers();
00024
00026 bool contains(const QString &pointIdentifier) const;
00027
00029 int count() const;
00030
00033 QString getKey (int i) const;
00034
00036 bool getValue (const QString &pointIdentifier) const;
00037
00039 void loadXml (QXmlStreamReader &reader);
00040
00042 void saveXml (QXmlStreamWriter &writer) const;
00043
00045 void setKeyValue (const QString &pointIdentifier,
00046 bool value);
00047
00048 private:
00049
00050 PointIdentifiersInternal m_pointIdentifiers;
00051 };
00052
00053 #endif // POINT_IDENTIFIERS_H