18 #ifndef MITKNavigationDataReaderXML_H_HEADER_INCLUDED_
19 #define MITKNavigationDataReaderXML_H_HEADER_INCLUDED_
24 #include <mitkIGTException.h>
25 #include <mitkIGTIOException.h>
39 virtual std::vector<itk::SmartPointer<BaseData>>
Read()
override;
108 #endif // MITKNavigationDataReaderXML_H_HEADER_INCLUDED_
virtual std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.
itk::SmartPointer< Self > Pointer
TiXmlNode * m_currentNode
unsigned int GetNumberOfNavigationDatas(std::istream *stream)
Returns the number of tracked tools out of the XML document.
TiXmlElement * m_parentElement
mitk::NavigationData::Pointer ReadVersion1()
This method reads one line of the XML document and returns the data as a NavigationData object If the...
DataCollection - Class to facilitate loading/accessing structured data.
int m_FileVersion
indicates which XML encoding is used
virtual std::vector< itk::SmartPointer< BaseData > > Read() override=0
Reads a path or stream and creates a list of BaseData objects.
void StreamInvalid(std::string message)
This is a helping method which gives an error message and throws an exception with the given message...
bool m_StreamValid
stores if the input stream is valid or not
std::string m_ErrorMessage
stores the error message if the stream is invalid
NavigationDataSet::Pointer ReadNavigationDataSet()
mitk::NavigationData::Pointer ReadNavigationData(TiXmlElement *elem)
virtual ~NavigationDataReaderXML()
NavigationDataReaderXML()
virtual mitk::NavigationDataReaderXML * Clone() const override
Base class for creating mitk::BaseData objects from files or streams.
int m_NumberOfOutputs
stores the number of outputs known from the XML document
bool m_StreamEnd
stores if the input stream arrived at end
unsigned int GetFileVersion(std::istream *stream)
Creates a stream out of the filename given by the variable m_FileName. The stream is then set to m_St...