summaryrefslogtreecommitdiff
path: root/server/src/journal_commit.h
diff options
context:
space:
mode:
authordeva <deva>2009-05-15 11:52:52 +0000
committerdeva <deva>2009-05-15 11:52:52 +0000
commitba614b9d61f9eb7407108d7836177aa0608823e6 (patch)
treed71cfa6bcd472ed6cc41a69f015d16a4cb9326eb /server/src/journal_commit.h
parent124384095470c9b2cfb046ff931152583c6df65a (diff)
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.
Diffstat (limited to 'server/src/journal_commit.h')
-rw-r--r--server/src/journal_commit.h7
1 files changed, 4 insertions, 3 deletions
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 <string>
-#include <vector>
+#include <map>
#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__*/