Fraxinus  17.12-rc3
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 67 of file cxRecordSession.h.

Member Typedef Documentation

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

Definition at line 93 of file cxRecordSession.h.

Constructor & Destructor Documentation

cx::RecordSession::RecordSession ( )

Definition at line 47 of file cxRecordSession.cpp.

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

Definition at line 52 of file cxRecordSession.cpp.

cx::RecordSession::~RecordSession ( )
virtual

Definition at line 60 of file cxRecordSession.cpp.

Member Function Documentation

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

Definition at line 118 of file cxRecordSession.cpp.

void cx::RecordSession::cancelLastInterval ( )

Definition at line 77 of file cxRecordSession.cpp.

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

Definition at line 170 of file cxRecordSession.cpp.

QString cx::RecordSession::getDescription ( ) const

another legacy uid, used for folder creation etc

Definition at line 109 of file cxRecordSession.cpp.

QString cx::RecordSession::getHumanDescription ( ) const

description useful for display in gui.

Definition at line 89 of file cxRecordSession.cpp.

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

Definition at line 261 of file cxRecordSession.cpp.

unsigned cx::RecordSession::getIntervalCount ( ) const

Definition at line 266 of file cxRecordSession.cpp.

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

Definition at line 84 of file cxRecordSession.cpp.

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

Definition at line 234 of file cxRecordSession.cpp.

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

Definition at line 209 of file cxRecordSession.cpp.

QString cx::RecordSession::getUid ( ) const

Definition at line 100 of file cxRecordSession.cpp.

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

Definition at line 175 of file cxRecordSession.cpp.

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

Definition at line 132 of file cxRecordSession.cpp.

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

Definition at line 180 of file cxRecordSession.cpp.

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

Definition at line 203 of file cxRecordSession.cpp.

void cx::RecordSession::startNewInterval ( )

Definition at line 63 of file cxRecordSession.cpp.

void cx::RecordSession::stopLastInterval ( )

Definition at line 69 of file cxRecordSession.cpp.

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

Definition at line 165 of file cxRecordSession.cpp.

Member Data Documentation

QString cx::RecordSession::mCategory
protected

Definition at line 96 of file cxRecordSession.h.

int cx::RecordSession::mId
protected

Definition at line 97 of file cxRecordSession.h.

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

Definition at line 94 of file cxRecordSession.h.

QDateTime cx::RecordSession::mTimestamp
protected

Definition at line 95 of file cxRecordSession.h.


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