Medical Imaging Interaction Toolkit  2021.02.99-e55a5d2f
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_Header_INCLUDED_
14 #define mitkUSDeviceWriterXML_H_Header_INCLUDED_
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 {
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 // mitkUSDeviceWriterXML_H_Header_INCLUDED_
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKUS_EXPORT
Definition: MitkUSExports.h:15
Base class for writing mitk::BaseData objects to files or streams.