Engauge Digitizer 2
Loading...
Searching...
No Matches
PointIdentifiers.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef POINT_IDENTIFIERS_H
8#define POINT_IDENTIFIERS_H
9
10#include <QHash>
11#include <QString>
12
15
17
20{
21public:
24
26 bool contains(const QString &pointIdentifier) const;
27
29 int count() const;
30
33 QString getKey (int i) const;
34
36 bool getValue (const QString &pointIdentifier) const;
37
40
42 void saveXml (QXmlStreamWriter &writer) const;
43
46 bool value);
47
48private:
49
50 PointIdentifiersInternal m_pointIdentifiers;
51};
52
53#endif // POINT_IDENTIFIERS_H
const int INNER_RADIUS_MIN
QHash< QString, bool > PointIdentifiersInternal
Hash table class that tracks point identifiers as the key, with a corresponding boolean value.
bool contains(const QString &pointIdentifier) const
True if specified entry exists in the table.
PointIdentifiers()
Single constructor.
QString getKey(int i) const
Get key for index.
void loadXml(QXmlStreamReader &reader)
Load from serialized xml.
int count() const
Number of entries.
bool getValue(const QString &pointIdentifier) const
Get value for key.
void setKeyValue(const QString &pointIdentifier, bool value)
Set key/value pair.
void saveXml(QXmlStreamWriter &writer) const
Serialize table to xml.