dynamic: Add DynamicContent{Get,Set}Var

This commit is contained in:
2022-03-29 22:33:32 +02:00
parent 3e736db0ef
commit e876b15c5d
4 changed files with 68 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#ifndef DYNAMCCONTENTPUSHVAR_H
#define DYNAMCCONTENTPUSHVAR_H
#include "dynamiccontent.h"
class DynamicContentSetVar : public DynamicContent
{
private:
std::map<std::string, std::string> *map;
public:
using DynamicContent::DynamicContent;
std::string render();
void setArgument(std::string argument);
void setMap(std::map<std::string, std::string> &map);
};
#endif // DYNAMCCONTENTPUSHVAR_H