You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.1 KiB

#ifndef FORMDATA_H
#define FORMDATA_H
#include <string>
#include <map>
#include "parsers/markup/TagNode.h"
std::unique_ptr<std::map<std::string, std::string>> buildFormData(std::shared_ptr<Node> formNode, std::unique_ptr<std::map<std::string, std::string>> result);
std::unique_ptr<std::vector<Node>> searchNodeTree(const std::shared_ptr<Node> &node, std::unique_ptr<std::vector<Node>> ret);
class FormData {
// creates arrays out of values
//void append(std::string name, std::string value);
//void append(std::string name, std::string value, str::string filename);
// overwrites value
//void set(std::string name, std::string value);
//void set(std::string name, std::string value, str::string filename);
// gets value (list if array)
//void getAll(std::string name);
std::map<std::string, std::string>::iterator entries();
//std::map<std::string, std::string>::iterator keys();
//std::map<std::string, std::string>::iterator values();
std::map<std::string, std::string> data;