Logs data node properties to an XML file.
More...
#include <mitkUSNavigationExperimentLogging.h>
|
| mitkClassMacroItkParent (USNavigationExperimentLogging, itk::Object) |
|
| itkNewMacro (USNavigationExperimentLogging) |
|
void | Reset () |
| Clears the XML tree. Can be used to start logging a new experiment. Make sure that the output file name was changed by calling SetFileName() before setting a new result by calling SetResult() if you do not want your previous results to be overwritten.
|
|
void | SetFileName (const std::string &fileName) |
| Setter for the file path and name of the XML 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 under the root of the XML tree and the XML node will get the name of the data node as its name. The properties of the data node are stored as nodes under this XML node. The current tree is written to the output file on every call of this method.
|
|
| itkSetMacro (KeyPrefix, std::string) |
| Only properties with this prefix are written into the output file.
|
|
| itkGetMacro (KeyPrefix, std::string) |
|
Logs data node properties to an XML file.
Definition at line 41 of file mitkUSNavigationExperimentLogging.h.
◆ USNavigationExperimentLogging()
mitk::USNavigationExperimentLogging::USNavigationExperimentLogging |
( |
| ) |
|
|
protected |
◆ ~USNavigationExperimentLogging()
mitk::USNavigationExperimentLogging::~USNavigationExperimentLogging |
( |
| ) |
|
|
overrideprotected |
◆ AddCurrentTimeAttributes()
void mitk::USNavigationExperimentLogging::AddCurrentTimeAttributes |
( |
Poco::AutoPtr< Poco::XML::Element > | element | ) |
|
|
protected |
◆ itkGetMacro()
mitk::USNavigationExperimentLogging::itkGetMacro |
( |
KeyPrefix | , |
|
|
std::string | ) |
◆ itkNewMacro()
◆ itkSetMacro()
mitk::USNavigationExperimentLogging::itkSetMacro |
( |
KeyPrefix | , |
|
|
std::string | ) |
Only properties with this prefix are written into the output file.
◆ mitkClassMacroItkParent()
◆ Reset()
void mitk::USNavigationExperimentLogging::Reset |
( |
| ) |
|
Clears the XML tree. Can be used to start logging a new experiment. Make sure that the output file name was changed by calling SetFileName() before setting a new result by calling SetResult() if you do not want your previous results to be overwritten.
The real time clock is restarted, too.
Definition at line 36 of file mitkUSNavigationExperimentLogging.cpp.
◆ SetFileName()
void mitk::USNavigationExperimentLogging::SetFileName |
( |
const std::string & | fileName | ) |
|
◆ SetResult()
void mitk::USNavigationExperimentLogging::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 under the root of the XML tree and the XML node will get the name of the data node as its name. The properties of the data node are stored as nodes under this XML node. The current tree is written to the output file on every call of this method.
If a key prefix is set by SetKeyPrefix, only properties which keys that are starting with this prefix are stored in the XML tree. The prefix is cut from the resulting key for the XML tree.
Definition at line 50 of file mitkUSNavigationExperimentLogging.cpp.
◆ WriteXmlToFile()
void mitk::USNavigationExperimentLogging::WriteXmlToFile |
( |
| ) |
|
|
protected |
◆ m_CurrentResultNumber
unsigned int mitk::USNavigationExperimentLogging::m_CurrentResultNumber |
|
protected |
◆ m_FileName
std::string mitk::USNavigationExperimentLogging::m_FileName |
|
protected |
◆ m_KeyPrefix
std::string mitk::USNavigationExperimentLogging::m_KeyPrefix |
|
protected |
◆ m_OutputXML
Poco::AutoPtr<Poco::XML::Document> mitk::USNavigationExperimentLogging::m_OutputXML |
|
protected |
◆ m_OutputXMLRoot
Poco::AutoPtr<Poco::XML::Element> mitk::USNavigationExperimentLogging::m_OutputXMLRoot |
|
protected |
◆ m_RealTimeClock
itk::SmartPointer<itk::RealTimeClock> mitk::USNavigationExperimentLogging::m_RealTimeClock |
|
protected |
◆ m_StartTime
double mitk::USNavigationExperimentLogging::m_StartTime |
|
protected |
The documentation for this class was generated from the following files: