From 05182c2214c5983c8ce7376c42805ad9802c75e5 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 9 Aug 2012 12:04:43 +0200 Subject: Added session files to admin session list. --- server/src/sessionheaderparser.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'server/src/sessionheaderparser.h') diff --git a/server/src/sessionheaderparser.h b/server/src/sessionheaderparser.h index a56215a..5f2d3cf 100644 --- a/server/src/sessionheaderparser.h +++ b/server/src/sessionheaderparser.h @@ -44,6 +44,13 @@ */ class SessionHeaderParser : public SAXParser { public: + class Header { + public: + std::string patientid; + std::string templ; + std::string id; + }; + /** * Constructor. * @param sessionfile A std::string containing the name of the file to parse. @@ -71,8 +78,7 @@ public: * freed upon parser deletion. * @return A pointer to the macro or NULL on error. */ - std::string getPatientID(); - std::string getTemplate(); + Header getHeader(); protected: /** @@ -85,8 +91,7 @@ private: bool done; - std::string patientid; - std::string templ; + Header header; std::string file; // Error callback function. -- cgit v1.2.3