13#ifndef mitkUSNavigationExperimentLogging_h
14#define mitkUSNavigationExperimentLogging_h
16#include <mitkCommon.h>
17#include <itkObjectFactory.h>
18#include <Poco/DOM/AutoPtr.h>
22template<
class T>
class SmartPointer;
Logs data node properties to an XML file.
itkSetMacro(KeyPrefix, std::string)
Only properties with this prefix are written into the output file.
void SetResult(const itk::SmartPointer< mitk::DataNode > resultNode)
The properties of the given node are appended to the XML tree. The data node gets its own XML node un...
itkGetMacro(KeyPrefix, std::string)
Poco::AutoPtr< Poco::XML::Document > m_OutputXML
void WriteXmlToFile()
Does the actual writing of the complete XML tree to the file system.
void SetFileName(const std::string &fileName)
Setter for the file path and name of the XML file.
USNavigationExperimentLogging()
Constructs an empty XML tree and starts the real time clock.
itkNewMacro(USNavigationExperimentLogging)
~USNavigationExperimentLogging() override
void Reset()
Clears the XML tree. Can be used to start logging a new experiment. Make sure that the output file na...
void AddCurrentTimeAttributes(Poco::AutoPtr< Poco::XML::Element >)
Poco::AutoPtr< Poco::XML::Element > m_OutputXMLRoot
mitkClassMacroItkParent(USNavigationExperimentLogging, itk::Object)
unsigned int m_CurrentResultNumber
itk::SmartPointer< itk::RealTimeClock > m_RealTimeClock