aboutsummaryrefslogtreecommitdiff
path: root/MemDriverWeb/minitmpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'MemDriverWeb/minitmpl.h')
-rw-r--r--MemDriverWeb/minitmpl.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/MemDriverWeb/minitmpl.h b/MemDriverWeb/minitmpl.h
deleted file mode 100644
index 820c3ee..0000000
--- a/MemDriverWeb/minitmpl.h
+++ /dev/null
@@ -1,18 +0,0 @@
-#pragma once
-
-#include <map>
-#include <sstream>
-
-typedef std::function<std::string&(std::string&, void *)> template_cb;
-
-class TemplateString : public std::stringstream
-{
-public:
- static void registerTemplateCallback(const char *variable, template_cb cb, void *user_ptr = NULL, bool recursive = false) {
- TemplateString::template_callbacks[std::string(variable)] = std::pair<template_cb, std::pair<bool, void *>>(cb, std::pair<bool, void *>(recursive, user_ptr));
- }
- std::string doTemplateStr();
-private:
- std::string in_cache, out_cache;
- static std::map<std::string, std::pair<template_cb, std::pair<bool, void *>>> template_callbacks;
-}; \ No newline at end of file