Engauge Digitizer
2
Toggle main menu visibility
Loading...
Searching...
No Matches
Point
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
13
class
QXmlStreamReader;
14
class
QXmlStreamWriter;
15
16
typedef
QHash<QString, bool>
PointIdentifiersInternal
;
17
19
class
PointIdentifiers
20
{
21
public
:
23
PointIdentifiers
();
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
39
void
loadXml
(QXmlStreamReader &reader);
40
42
void
saveXml
(QXmlStreamWriter &writer)
const
;
43
45
void
setKeyValue
(
const
QString &pointIdentifier,
46
bool
value);
47
48
private
:
49
50
PointIdentifiersInternal
m_pointIdentifiers;
51
};
52
53
#endif
// POINT_IDENTIFIERS_H
PointIdentifiersInternal
QHash< QString, bool > PointIdentifiersInternal
Definition
PointIdentifiers.h:16
PointIdentifiers::contains
bool contains(const QString &pointIdentifier) const
True if specified entry exists in the table.
Definition
PointIdentifiers.cpp:20
PointIdentifiers::PointIdentifiers
PointIdentifiers()
Single constructor.
Definition
PointIdentifiers.cpp:16
PointIdentifiers::getKey
QString getKey(int i) const
Get key for index.
Definition
PointIdentifiers.cpp:33
PointIdentifiers::loadXml
void loadXml(QXmlStreamReader &reader)
Load from serialized xml.
Definition
PointIdentifiers.cpp:49
PointIdentifiers::count
int count() const
Number of entries.
Definition
PointIdentifiers.cpp:28
PointIdentifiers::getValue
bool getValue(const QString &pointIdentifier) const
Get value for key.
Definition
PointIdentifiers.cpp:42
PointIdentifiers::setKeyValue
void setKeyValue(const QString &pointIdentifier, bool value)
Set key/value pair.
Definition
PointIdentifiers.cpp:107
PointIdentifiers::saveXml
void saveXml(QXmlStreamWriter &writer) const
Serialize table to xml.
Definition
PointIdentifiers.cpp:91
Generated on
for Engauge Digitizer by
1.17.0