From 20c7a5d63dc1f68fcf0e1aa053a4b725235e6f78 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 3 Sep 2007 14:51:37 +0000 Subject: Added some XML parsing => DOM (pracro, requests and commits). --- server/src/transaction.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'server/src/transaction.h') diff --git a/server/src/transaction.h b/server/src/transaction.h index 41559e0..d898ef7 100644 --- a/server/src/transaction.h +++ b/server/src/transaction.h @@ -30,30 +30,40 @@ #include #include + class Request { public: std::string macro; }; typedef std::vector< Request > Requests; + class CommitValue { public: std::string name; std::string value; }; +typedef std::vector< CommitValue > CommitValues; + class Commit { public: - std::vector< CommitValue > values; + std::string user; + std::string macro; + std::string version; + CommitValues values; }; typedef std::vector< Commit > Commits; + class Transaction { public: std::string cpr; + std::string version; Requests requests; Commits commits; }; + #endif/*__PRACRO_TRANSACTION_H__*/ -- cgit v1.2.3