diff options
author | deva <deva> | 2009-07-30 08:36:12 +0000 |
---|---|---|
committer | deva <deva> | 2009-07-30 08:36:12 +0000 |
commit | 77272458e7a8906d871b241b5385bbd0f783d861 (patch) | |
tree | 7e32f988654c042be251c4ba31b72902402059f3 /server/src/transactionparser.cc | |
parent | 1f8c58836dfd8dc8c9a0abeeaef6789325189f1b (diff) |
Removed the term 'course' everywhere, and replaced it by 'template'. This reduced/simplified the Template class structure a bit.
Diffstat (limited to 'server/src/transactionparser.cc')
-rw-r--r-- | server/src/transactionparser.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/src/transactionparser.cc b/server/src/transactionparser.cc index 3135929..d4f7c76 100644 --- a/server/src/transactionparser.cc +++ b/server/src/transactionparser.cc @@ -78,14 +78,14 @@ void TransactionParser::startTag(std::string name, std::map< std::string, std::s if(name == "request") { Request r; - r.course = attributes["course"]; + r.templ = attributes["template"]; r.macro = attributes["macro"]; transaction->requests.push_back(r); } if(name == "commit") { Commit c; - c.course = attributes["course"]; + c.templ = attributes["template"]; c.macro = attributes["macro"]; c.version = attributes["version"]; transaction->commits.push_back(c); @@ -124,14 +124,14 @@ static char xml_minimal[] = static char xml_request[] = "<?xml version='1.0' encoding='UTF-8'?>\n" "<pracro version=\"1.0\" user=\"testuser\" cpr=\"1505050505\">\n" -" <request macro=\"test\" course=\"test\"/>\n" +" <request macro=\"test\" template=\"test\"/>\n" "</pracro>\n" ; static char xml_commit[] = "<?xml version='1.0' encoding='UTF-8'?>\n" "<pracro version=\"1.0\" user=\"testuser\" cpr=\"1505050505\">\n" -" <commit version=\"\" macro=\"referral\" course=\"amd_forunders\" >\n" +" <commit version=\"\" macro=\"referral\" template=\"amd_forunders\" >\n" " <field value=\"Some docs\" name=\"referral.doctor\"/>\n" " <field value=\"DIMS\" name=\"referral.diagnosecode\"/>\n" " <field value=\"Avs\" name=\"referral.diagnose\"/>\n" @@ -142,7 +142,7 @@ static char xml_commit[] = static char xml_fail[] = "<?xml version='1.0' encoding='UTF-8'?>\n" "<pracro version=\"1.0\" user=\"testuser\" cpr=\"1505050505\">\n" -" <request macro=\"test course=\"test\"/>\n" +" <request macro=\"test template=\"test\"/>\n" "</pracro>\n" ; |