33 #ifndef CXPATIENTSTORAGE_H 34 #define CXPATIENTSTORAGE_H 36 #include "cxResourceExport.h" 39 #include <boost/shared_ptr.hpp> 40 #include <boost/function.hpp> 41 #include <boost/bind.hpp> 68 PatientStorage(SessionStorageServicePtr sessionStorageService, QString baseNodeName,
bool delayedLoad =
false);
75 void storeVariable(QString nodeName, boost::function<QString ()> getValueFunction, boost::function<
void (QString)> setValueFunction);
77 void duringSavePatientSlot(QDomElement &node);
78 void duringLoadPatientSlot(QDomElement &node);
80 QString mBaseNodeName;
81 std::map<QString, boost::function<QString()> > mGetFunctions;
82 std::map<QString, boost::function<void(QString value)> > mSetFunctions;
83 void addXml(QDomNode &parentNode);
84 void parseXml(QDomNode &dataNode);
88 #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.