12 #ifndef CXRecordSession_H_
13 #define CXRecordSession_H_
15 #include "org_custusx_acquisition_Export.h"
20 #include "boost/shared_ptr.hpp"
53 QString getUid()
const;
54 QString getHumanDescription()
const;
55 QString getDescription()
const;
56 std::pair<QDateTime,QDateTime> getInterval(
int i);
57 unsigned getIntervalCount()
const;
59 void startNewInterval();
60 void stopLastInterval();
61 void cancelLastInterval();
63 void addXml(QDomNode& node);
64 void parseXml(QDomNode& node);
67 static std::map<double, ToolPositionMetadata> getToolHistory_metadata(
ToolPtr tool,
RecordSessionPtr session,
bool verbose);
70 QDateTime getTimestamp()
const;
78 QDateTime timestamp2datetime(QString in)
const;
79 QString datetime2timestamp(QDateTime in)
const;
81 bool isOldStyleXmlFormat(QDomNode& node);
82 void parseXml_oldstyle(QDomNode& parentNode);
83 void setIdAndTimestampFromUid(QString uid);