From ba614b9d61f9eb7407108d7836177aa0608823e6 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 15 May 2009 11:52:52 +0000 Subject: Journal entries are now committed in the order in which they appear in the course description (the template). Misspelled 'macroes' have been corrected to 'macros' in template.h and all affected files. --- server/src/journal_commit.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'server/src/journal_commit.h') diff --git a/server/src/journal_commit.h b/server/src/journal_commit.h index 0f8ae57..0565f34 100644 --- a/server/src/journal_commit.h +++ b/server/src/journal_commit.h @@ -28,7 +28,7 @@ #define __PRACRO_JOURNAL_COMMIT_H__ #include -#include +#include #include "transaction.h" @@ -42,7 +42,8 @@ class JournalWriter { public: JournalWriter(std::string host, unsigned short int port); - void addEntry(Transaction &transaction, Commit &commit, std::string resume, std::string course_resume); + void addEntry(Transaction &transaction, Commit &commit, + std::string resume, std::string course_resume); void commit(); @@ -53,7 +54,7 @@ private: std::string currentuser; std::string currentcpr; - std::vector< ResumeEntry > entrylist; + std::map< int, ResumeEntry > entrylist; }; #endif/*__PRACRO_JOURNAL_COMMIT_H__*/ -- cgit v1.2.3