aboutsummaryrefslogtreecommitdiff
path: root/MemDriverWeb/minitmpl.h
diff options
context:
space:
mode:
authorsegfault <toni@impl.cc>2020-08-09 03:26:36 -0700
committerToni Uhlig <matzeton@googlemail.com>2020-08-09 13:03:50 +0200
commit64c541a06eb667e1519251e3e3279bd485050b47 (patch)
tree8b5dce8747dcdb9b165cd1992585f81e86a3c7ea /MemDriverWeb/minitmpl.h
parenta5d3dde5c1f5820fe41d01372928461d24a7f4f9 (diff)
removed obsolete MemDriverWeb
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