Web framework C++  2.0.0
Simple web framework on c++ designed to easily create web pages, etc
form_entity.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <list>
5 
12 class FormEntity {
13  std::string value;
14  std::string fileName;
15  std::string contentType;
16  std::string charset;
17  FormEntity * next;
18  bool isFile;
19 public:
26  explicit FormEntity(std::string & value);
27 
31  ~FormEntity();
32 
39  void setFileName(std::string & filename);
40 
47  std::string getFileName();
48 
55  void setContentType(std::string & contentType);
56 
63  std::string getContentType();
64 
71  void setCharset(std::string charset);
72 
79  std::string getCharset();
80 
87  void setValue(std::string & val);
88 
95  std::string getValue();
96 
103  bool isFileContent();
104 
111  void setNext(FormEntity * next);
112 
119  FormEntity * getNext();
120 
127  std::list<FormEntity *> getArrayValue();
128 };
std::string getValue()
void setNext(FormEntity *next)
FormEntity * getNext()
std::string getContentType()
std::string getFileName()
void setValue(std::string &val)
void setContentType(std::string &contentType)
std::list< FormEntity * > getArrayValue()
FormEntity(std::string &value)
bool isFileContent()
void setFileName(std::string &filename)
Wrapper class for value form.
Definition: form_entity.h:12
std::string getCharset()
void setCharset(std::string charset)