Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 class TiXmlDocument;
22 class TiXmlElement;
23 
24 namespace mitk {
25  class MITKUS_EXPORT USDeviceWriterXML : public AbstractFileWriter
26  {
27  public:
28 
30  ~USDeviceWriterXML() override;
31 
33  void Write() override;
34 
38  void SetFilename(std::string filename);
39 
44  bool WriteUltrasoundDeviceConfiguration(mitk::USDeviceReaderXML::USDeviceConfigData &config);
45 
46  protected:
48  mitk::USDeviceWriterXML* Clone() const override;
49 
56  void CreateXmlInformationOfUltrasoundDeviceTag( TiXmlDocument &document,
57  TiXmlElement *ultrasoundDeviceTag,
59 
66  void CreateXmlInformationOfGeneralSettingsTag( TiXmlElement *parentTag,
67  TiXmlElement *generalSettingsTag,
69 
76  void CreateXmlInformationOfProbesTag( TiXmlElement *parentTag,
78  private:
82  std::string m_Filename;
83 
84 
85  };
86 }
87 
88 #endif // mitkUSDeviceWriterXML_H_Header_INCLUDED_
void Write() override=0
Write the base data to the specified location or output stream.
DataCollection - Class to facilitate loading/accessing structured data.
static mitk::PlanarFigure::Pointer Clone(mitk::PlanarFigure::Pointer original)
Base class for writing mitk::BaseData objects to files or streams.