CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::RecordSession Class Reference

#include <cxRecordSession.h>

Public Member Functions

 RecordSession ()
 
 RecordSession (int id, QString category)
 
virtual ~RecordSession ()
 
QString getUid () const
 
QString getHumanDescription () const
 description useful for display in gui. More...
 
QString getDescription () const
 another legacy uid, used for folder creation etc More...
 
std::pair< QDateTime, QDateTime > getInterval (int i)
 
unsigned getIntervalCount () const
 
void startNewInterval ()
 
void stopLastInterval ()
 
void cancelLastInterval ()
 
void addXml (QDomNode &node)
 
void parseXml (QDomNode &node)
 

Static Public Member Functions

static TimedTransformMap getToolHistory_prMt (ToolPtr tool, RecordSessionPtr session, bool verbose)
 
static std::map< double, ToolPositionMetadatagetToolHistory_metadata (ToolPtr tool, RecordSessionPtr session, bool verbose)
 

Protected Types

typedef std::pair< QDateTime, QDateTime > IntervalType
 

Protected Member Functions

QDateTime getTimestamp () const
 
QDateTime timestamp2datetime (QString in) const
 
QString datetime2timestamp (QDateTime in) const
 
bool isOldStyleXmlFormat (QDomNode &node)
 
void parseXml_oldstyle (QDomNode &parentNode)
 
void setIdAndTimestampFromUid (QString uid)
 

Protected Attributes

std::vector< IntervalTypemIntervals
 
QDateTime mTimestamp
 
QString mCategory
 
int mId
 

Detailed Description

RecordSession

Date
Dec 8, 2010
Author
Janne Beate Bakeng

Definition at line 46 of file cxRecordSession.h.

Member Typedef Documentation

typedef std::pair<QDateTime, QDateTime> cx::RecordSession::IntervalType
protected

Definition at line 72 of file cxRecordSession.h.

Constructor & Destructor Documentation

cx::RecordSession::RecordSession ( )

Definition at line 26 of file cxRecordSession.cpp.

cx::RecordSession::RecordSession ( int  id,
QString  category 
)

Definition at line 31 of file cxRecordSession.cpp.

cx::RecordSession::~RecordSession ( )
virtual

Definition at line 39 of file cxRecordSession.cpp.

Member Function Documentation

void cx::RecordSession::addXml ( QDomNode &  node)

Definition at line 97 of file cxRecordSession.cpp.

void cx::RecordSession::cancelLastInterval ( )

Definition at line 56 of file cxRecordSession.cpp.

QString cx::RecordSession::datetime2timestamp ( QDateTime  in) const
protected

Definition at line 149 of file cxRecordSession.cpp.

QString cx::RecordSession::getDescription ( ) const

another legacy uid, used for folder creation etc

Definition at line 88 of file cxRecordSession.cpp.

QString cx::RecordSession::getHumanDescription ( ) const

description useful for display in gui.

Definition at line 68 of file cxRecordSession.cpp.

std::pair< QDateTime, QDateTime > cx::RecordSession::getInterval ( int  i)

Definition at line 240 of file cxRecordSession.cpp.

unsigned cx::RecordSession::getIntervalCount ( ) const

Definition at line 245 of file cxRecordSession.cpp.

QDateTime cx::RecordSession::getTimestamp ( ) const
protected

Definition at line 63 of file cxRecordSession.cpp.

std::map< double, cx::ToolPositionMetadata > cx::RecordSession::getToolHistory_metadata ( ToolPtr  tool,
RecordSessionPtr  session,
bool  verbose 
)
static

Definition at line 213 of file cxRecordSession.cpp.

TimedTransformMap cx::RecordSession::getToolHistory_prMt ( ToolPtr  tool,
RecordSessionPtr  session,
bool  verbose 
)
static

Definition at line 188 of file cxRecordSession.cpp.

QString cx::RecordSession::getUid ( ) const

Definition at line 79 of file cxRecordSession.cpp.

bool cx::RecordSession::isOldStyleXmlFormat ( QDomNode &  node)
protected

Definition at line 154 of file cxRecordSession.cpp.

void cx::RecordSession::parseXml ( QDomNode &  node)

Definition at line 111 of file cxRecordSession.cpp.

void cx::RecordSession::parseXml_oldstyle ( QDomNode &  parentNode)
protected

Definition at line 159 of file cxRecordSession.cpp.

void cx::RecordSession::setIdAndTimestampFromUid ( QString  uid)
protected

Definition at line 182 of file cxRecordSession.cpp.

void cx::RecordSession::startNewInterval ( )

Definition at line 42 of file cxRecordSession.cpp.

void cx::RecordSession::stopLastInterval ( )

Definition at line 48 of file cxRecordSession.cpp.

QDateTime cx::RecordSession::timestamp2datetime ( QString  in) const
protected

Definition at line 144 of file cxRecordSession.cpp.

Member Data Documentation

QString cx::RecordSession::mCategory
protected

Definition at line 75 of file cxRecordSession.h.

int cx::RecordSession::mId
protected

Definition at line 76 of file cxRecordSession.h.

std::vector<IntervalType> cx::RecordSession::mIntervals
protected

Definition at line 73 of file cxRecordSession.h.

QDateTime cx::RecordSession::mTimestamp
protected

Definition at line 74 of file cxRecordSession.h.


The documentation for this class was generated from the following files: