CustusX  16.5.0-rc9
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::SessionStorageServiceImpl Class Reference

#include <cxSessionStorageServiceImpl.h>

Inheritance diagram for cx::SessionStorageServiceImpl:
cx::SessionStorageService

Public Member Functions

 SessionStorageServiceImpl (ctkPluginContext *context)
 
virtual ~SessionStorageServiceImpl ()
 
virtual void load (QString dir)
 load session from dir, or create new session in this location if none exist More...
 
virtual void save ()
 Save all application data to XML file. More...
 
virtual void clear ()
 
virtual bool isValid () const
 
virtual QString getRootFolder () const
 
virtual bool isNull () const
 
- Public Member Functions inherited from cx::SessionStorageService
 SessionStorageService ()
 
virtual ~SessionStorageService ()
 
QString getSubFolder (QString relative)
 return and create a folder/path relative to root. Created if necessary. More...
 

Additional Inherited Members

- Signals inherited from cx::SessionStorageService
void cleared ()
 emitted when session is cleared, before isLoading is called More...
 
void sessionChanged ()
 emitted after change to a new session (new or loaded or cleared) More...
 
void isSaving (QDomElement &root)
 xml storage is available More...
 
void isSavingSecond (QDomElement &root)
 Triggered after the isSaving signal, to allow for data that. More...
 
void isLoading (QDomElement &root)
 emitted while loading a session. Xml storage is available, getRootFolder() is set to loaded value. More...
 
void isLoadingSecond (QDomElement &root)
 Emitted after the isLoading signal, to allow for structures that must be loaded after core structures like PatientModel. More...
 
- Static Public Member Functions inherited from cx::SessionStorageService
static SessionStorageServicePtr getNullObject ()
 

Detailed Description

given a root node, use the /-separated path to descend into the root children recursively. Create elements if necessary.

Date
2014-12-03
Author
Christian Askeland

Definition at line 59 of file cxSessionStorageServiceImpl.h.

Constructor & Destructor Documentation

cx::SessionStorageServiceImpl::SessionStorageServiceImpl ( ctkPluginContext *  context)

Definition at line 50 of file cxSessionStorageServiceImpl.cpp.

cx::SessionStorageServiceImpl::~SessionStorageServiceImpl ( )
virtual

Definition at line 59 of file cxSessionStorageServiceImpl.cpp.

Member Function Documentation

void cx::SessionStorageServiceImpl::clear ( )
virtual

Implements cx::SessionStorageService.

Definition at line 166 of file cxSessionStorageServiceImpl.cpp.

QString cx::SessionStorageServiceImpl::getRootFolder ( ) const
virtual

Implements cx::SessionStorageService.

Definition at line 179 of file cxSessionStorageServiceImpl.cpp.

bool cx::SessionStorageServiceImpl::isNull ( ) const
virtual

Implements cx::SessionStorageService.

Definition at line 64 of file cxSessionStorageServiceImpl.cpp.

bool cx::SessionStorageServiceImpl::isValid ( ) const
virtual

Implements cx::SessionStorageService.

Definition at line 173 of file cxSessionStorageServiceImpl.cpp.

void cx::SessionStorageServiceImpl::load ( QString  dir)
virtual

load session from dir, or create new session in this location if none exist

Implements cx::SessionStorageService.

Definition at line 69 of file cxSessionStorageServiceImpl.cpp.

void cx::SessionStorageServiceImpl::save ( )
virtual

Save all application data to XML file.

Implements cx::SessionStorageService.

Definition at line 130 of file cxSessionStorageServiceImpl.cpp.


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