Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
mitkUSDeviceWriterXML.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found 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>
19 #include <mitkUSDeviceReaderXML.h>
20 
21 namespace tinyxml2
22 {
23  class XMLDocument;
24  class XMLElement;
25 }
26 
27 namespace mitk {
28  class MITKUS_EXPORT USDeviceWriterXML : public AbstractFileWriter
29  {
30  public:
31 
33  ~USDeviceWriterXML() override;
34 
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
mitk::USDeviceReaderXML::USDeviceConfigData_
Definition: mitkUSDeviceReaderXML.h:40
mitkAbstractFileWriter.h
mitk::AbstractFileWriter::Write
void Write() override=0
Write the base data to the specified location or output stream.
mitk::AbstractFileWriter
Base class for writing mitk::BaseData objects to files or streams.
Definition: mitkAbstractFileWriter.h:50
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::USDeviceWriterXML
Definition: mitkUSDeviceWriterXML.h:28
mitkUSDeviceReaderXML.h
tinyxml2
Definition: mitkXMLSerializable.h:20