Web framework C++
2.0.0
Simple web framework on c++ designed to easily create web pages, etc
|
Wrapper class for value form. More...
#include <form_entity.h>
Public Member Functions | |
FormEntity (std::string &value) | |
~FormEntity () | |
void | setFileName (std::string &filename) |
std::string | getFileName () |
void | setContentType (std::string &contentType) |
std::string | getContentType () |
void | setCharset (std::string charset) |
std::string | getCharset () |
void | setValue (std::string &val) |
std::string | getValue () |
bool | isFileContent () |
void | setNext (FormEntity *next) |
FormEntity * | getNext () |
std::list< FormEntity * > | getArrayValue () |
Wrapper class for value form.
Object of this class could store data and some additional information about parsed value
|
explicit |
Create parsed form value entity
value | serialized value |
FormEntity::~FormEntity | ( | ) |
delete all inner objects
std::list<FormEntity *> FormEntity::getArrayValue | ( | ) |
Get all form values with same name
std::string FormEntity::getCharset | ( | ) |
Get charset property to form value
std::string FormEntity::getContentType | ( | ) |
Get additional content type property to form value
std::string FormEntity::getFileName | ( | ) |
Get additional file name property to form value
FormEntity* FormEntity::getNext | ( | ) |
Get another form value with same name
std::string FormEntity::getValue | ( | ) |
Get serialized value of form entity
bool FormEntity::isFileContent | ( | ) |
Check, if this form value is file
void FormEntity::setCharset | ( | std::string | charset | ) |
Set charset property to form value
charset | encoding of form value |
void FormEntity::setContentType | ( | std::string & | contentType | ) |
Set additional content type property to form value
contentType | content type of loaded file |
void FormEntity::setFileName | ( | std::string & | filename | ) |
Set additional file name property to form value
filename | name of file, loaded via form |
void FormEntity::setNext | ( | FormEntity * | next | ) |
Add another form value with same name
next | FormEntity object |
void FormEntity::setValue | ( | std::string & | val | ) |
Set serialized value of form entity