diff options
Diffstat (limited to 'server/src/formattools.h')
-rw-r--r-- | server/src/formattools.h | 7 |
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__*/ |