From 5968c3af2c26abe61cf98bf45f672835ef4b51ba Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 30 Oct 2008 13:09:47 +0000 Subject: Complete but highly unstable implementation of formattools. --- server/src/formattools.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'server/src/formattools.h') 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 #include +// 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 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__*/ -- cgit v1.2.3