summaryrefslogtreecommitdiff
path: root/server/src/sessionheaderparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/sessionheaderparser.h')
-rw-r--r--server/src/sessionheaderparser.h13
1 files changed, 9 insertions, 4 deletions
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.