MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkUSDeviceWriterXML.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#ifndef mitkUSDeviceWriterXML_h
14#define mitkUSDeviceWriterXML_h
15
16#include <MitkUSExports.h>
17
18#include <mitkAbstractFileWriter.h>
20
21namespace tinyxml2
22{
23 class XMLDocument;
24 class XMLElement;
25}
26
27namespace mitk {
28 class MITKUS_EXPORT USDeviceWriterXML : public AbstractFileWriter
29 {
30 public:
31
33 ~USDeviceWriterXML() override;
34
35 using AbstractFileWriter::Write;
36 void Write() override;
37
41 void SetFilename(std::string filename);
42
47 bool WriteUltrasoundDeviceConfiguration(mitk::USDeviceReaderXML::USDeviceConfigData &config);
48
49 protected:
51 mitk::USDeviceWriterXML* Clone() const override;
52
59 void CreateXmlInformationOfUltrasoundDeviceTag( tinyxml2::XMLDocument &document,
60 tinyxml2::XMLElement *ultrasoundDeviceTag,
62
69 void CreateXmlInformationOfGeneralSettingsTag( tinyxml2::XMLElement *parentTag,
70 tinyxml2::XMLElement *generalSettingsTag,
72
79 void CreateXmlInformationOfProbesTag( tinyxml2::XMLElement*parentTag,
81 private:
85 std::string m_Filename;
86
87
88 };
89}
90
91#endif
IGT Exceptions.