12 #ifndef CXPATIENTSTORAGE_H 13 #define CXPATIENTSTORAGE_H 15 #include "cxResourceExport.h" 18 #include <boost/shared_ptr.hpp> 19 #include <boost/function.hpp> 20 #include <boost/bind.hpp> 47 PatientStorage(SessionStorageServicePtr sessionStorageService, QString baseNodeName,
bool delayedLoad =
false);
54 void storeVariable(QString nodeName, boost::function<QString ()> getValueFunction, boost::function<
void (QString)> setValueFunction);
56 void duringSavePatientSlot(QDomElement &node);
57 void duringLoadPatientSlot(QDomElement &node);
59 QString mBaseNodeName;
60 std::map<QString, boost::function<QString()> > mGetFunctions;
61 std::map<QString, boost::function<void(QString value)> > mSetFunctions;
62 void addXml(QDomNode &parentNode);
63 void parseXml(QDomNode &dataNode);
67 #endif // CXPATIENTSTORAGE_H Helper class for storing variables in the patient file.
boost::shared_ptr< class PatientStorage > PatientStoragePtr
boost::shared_ptr< class SessionStorageService > SessionStorageServicePtr
Namespace for all CustusX production code.