summaryrefslogtreecommitdiff
path: root/server/src/formattools.h
diff options
context:
space:
mode:
authordeva <deva>2008-10-30 13:09:47 +0000
committerdeva <deva>2008-10-30 13:09:47 +0000
commit5968c3af2c26abe61cf98bf45f672835ef4b51ba (patch)
tree5dd6672a8bcd038cc3bc705367b40a226798dc1a /server/src/formattools.h
parentaa8483b30a4e824ede7f10e03fdd41d2f28c9947 (diff)
Complete but highly unstable implementation of formattools.
Diffstat (limited to 'server/src/formattools.h')
-rw-r--r--server/src/formattools.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/src/formattools.h b/server/src/formattools.h
index fcfb372..5bad492 100644
--- a/server/src/formattools.h
+++ b/server/src/formattools.h
@@ -30,6 +30,9 @@
#include <string>
#include <map>
+// For Fields
+#include "transaction.h"
+
/**
* Escape all { and } characters.
*/
@@ -43,7 +46,7 @@ std::string escape_resume_string(std::string str);
/**
* Get name/value pair list from multilist result string.
*/
-std::map<std::string, std::string> get_multilist_values(std::string str);
+Fields get_multilist_values(std::string str);
/**
* Render tekst from multilist result string, by inserting the values at the
@@ -55,6 +58,6 @@ std::string render_multilist_string(std::string str);
* Render resume tekst, by running the embedded LUA code and replacing the ${...}
* placeholders with the output and de-escaping {{ and }}.
*/
-std::string render_resume_string(std::string str);
+std::string render_resume_string(std::string str, Fields &fields);
#endif/*__PRACRO_FORMATTOOLS_H__*/