Web framework C++  2.0.0
Simple web framework on c++ designed to easily create web pages, etc
Public Member Functions | List of all members
FormEntity Class Reference

Wrapper class for value form. More...

#include <form_entity.h>

Collaboration diagram for FormEntity:
Collaboration graph

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)
 
FormEntitygetNext ()
 
std::list< FormEntity * > getArrayValue ()
 

Detailed Description

Wrapper class for value form.

Object of this class could store data and some additional information about parsed value

Constructor & Destructor Documentation

FormEntity::FormEntity ( std::string &  value)
explicit

Create parsed form value entity

Parameters
valueserialized value
FormEntity::~FormEntity ( )

delete all inner objects

Member Function Documentation

std::list<FormEntity *> FormEntity::getArrayValue ( )

Get all form values with same name

Returns
list of FormEntity objects
std::string FormEntity::getCharset ( )

Get charset property to form value

Returns
encoding of form value
std::string FormEntity::getContentType ( )

Get additional content type property to form value

Returns
content type of loaded file
std::string FormEntity::getFileName ( )

Get additional file name property to form value

Returns
name of file, loaded via form
FormEntity* FormEntity::getNext ( )

Get another form value with same name

Returns
FormEntity object
std::string FormEntity::getValue ( )

Get serialized value of form entity

Returns
serialized value passed by from
bool FormEntity::isFileContent ( )

Check, if this form value is file

Returns
true, if this object is file, false - otherwise
void FormEntity::setCharset ( std::string  charset)

Set charset property to form value

Parameters
charsetencoding of form value
void FormEntity::setContentType ( std::string &  contentType)

Set additional content type property to form value

Parameters
contentTypecontent type of loaded file
void FormEntity::setFileName ( std::string &  filename)

Set additional file name property to form value

Parameters
filenamename of file, loaded via form
void FormEntity::setNext ( FormEntity next)

Add another form value with same name

Parameters
nextFormEntity object
void FormEntity::setValue ( std::string &  val)

Set serialized value of form entity

Returns
serialized value passed by from

The documentation for this class was generated from the following file: