diff options
author | deva <deva> | 2011-02-18 14:16:09 +0000 |
---|---|---|
committer | deva <deva> | 2011-02-18 14:16:09 +0000 |
commit | bb1c42800a2f48129100222317520b690f13c40e (patch) | |
tree | 16ac5d47d22c308f98f4e508b8bb4cfc8ae8ad16 /server/src/session.h | |
parent | 4a42852b13d84a283abe54ee569c6d1a8334fa09 (diff) |
Made Session isreadonly property private and created new commitMacro method.
Diffstat (limited to 'server/src/session.h')
-rw-r--r-- | server/src/session.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/src/session.h b/server/src/session.h index 533f7a0..e2751bd 100644 --- a/server/src/session.h +++ b/server/src/session.h @@ -34,11 +34,14 @@ #include <vector> #include "mutex.h" +#include "transaction.h" +#include "template.h" class Environment; class Journal; class Session { + friend class SessionSerialiser; public: Session(Environment *env, std::string sessionid, std::string patientid, std::string templ); @@ -53,6 +56,8 @@ public: void nocommit(); void discard(); + void commitMacro(Transaction &transaction, Commit &commit, Macro ¯o); + Journal *journal(); std::string patientid; @@ -61,13 +66,14 @@ public: bool idle(); void setIdle(bool idle); - bool isreadonly; + bool isReadonly() { return isreadonly; } private: Environment *env; Journal *_journal; Mutex mutex; std::string sessionid; + bool isreadonly; }; class Sessions { |