CustusX
22.04-rc5
An IGT application
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
cxOrderedQDomDocument.h
Go to the documentation of this file.
1
/*=========================================================================
2
This file is part of CustusX, an Image Guided Therapy Application.
3
4
Copyright (c) SINTEF Department of Medical Technology.
5
All rights reserved.
6
7
CustusX is released under a BSD 3-Clause license.
8
9
See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10
=========================================================================*/
11
#ifndef ORDEREDQDOMDOCUMENT_H
12
#define ORDEREDQDOMDOCUMENT_H
13
14
#include <QDomDocument>
15
#include <QHash>
16
17
24
class
OrderedQDomDocument
25
{
26
public
:
27
OrderedQDomDocument
()
28
{
29
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
30
// set fixed hash seed
31
qSetGlobalQHashSeed(0);
32
#endif
33
mDoc = QDomDocument();
34
}
35
~OrderedQDomDocument
()
36
{
37
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
38
// reset hash seed with new random value.
39
qSetGlobalQHashSeed(-1);
40
#endif
41
}
42
43
QDomDocument&
doc
() {
return
mDoc; }
44
private
:
45
QDomDocument mDoc;
46
};
47
48
#endif // ORDEREDQDOMDOCUMENT_H
OrderedQDomDocument
Definition:
cxOrderedQDomDocument.h:24
OrderedQDomDocument::OrderedQDomDocument
OrderedQDomDocument()
Definition:
cxOrderedQDomDocument.h:27
OrderedQDomDocument::doc
QDomDocument & doc()
Definition:
cxOrderedQDomDocument.h:43
OrderedQDomDocument::~OrderedQDomDocument
~OrderedQDomDocument()
Definition:
cxOrderedQDomDocument.h:35
CX
source
resource
core
utilities
cxOrderedQDomDocument.h
Generated on Thu Jun 16 2022 21:30:02 for CustusX by
1.8.11