NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cxSonixProbeFileReader.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 CXSONIXPROBEFILEREADER_H
12 #define CXSONIXPROBEFILEREADER_H
13 
14 #include "cxGrabberExport.h"
15 
16 #include <QDomDocument>
17 #include <QFile>
18 
19 class QString;
20 class QDomNode;
21 
22 namespace cx {
23 
30 class cxGrabber_EXPORT SonixProbeFileReader
31 {
32 public:
33  SonixProbeFileReader(QString probeFile);
34  bool init();
35  QDomNode getProbeNode(QString probeName);
36  QDomElement getProbes();
37  bool isProbeLinear(QDomNode probeNode);
38  long getProbeLenght(QDomNode probeNode);
39  long getProbeParam(QDomNode probeNode, QString param);
40 
41 private:
42  QFile mFile;
43  QDomDocument mDoc;
44  QDomElement mDocElem;
45 
46  bool openFile();
47  bool openDomDocument();
48  bool openDocumentElement();
49  QDomElement getChildWithTag(QDomNode parent, QString tagName);
50 };
51 
56 }
57 #endif // CXSONIXPROBEFILEREADER_H
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::SonixProbeFileReader
Definition: cxSonixProbeFileReader.h:30