EHS Embedded HTTP Server  1.5.1.0
formvalue.h
1 /* $Id: formvalue.h 66 2011-11-16 10:54:13Z felfert $
2  *
3  * EHS is a library for embedding HTTP(S) support into a C++ application
4  *
5  * Copyright (C) 2004 Zachary J. Hansen
6  *
7  * Code cleanup, new features and bugfixes: Copyright (C) 2010 Fritz Elfert
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License version 2.1 as published by the Free Software Foundation;
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21  *
22  * This can be found in the 'COPYING' file.
23  *
24  */
25 
26 #ifndef FORMVALUE_H
27 #define FORMVALUE_H
28 
29 #include <string>
30 
31 #include <ehstypes.h>
32 #include <contentdisposition.h>
33 
39 class FormValue {
40 
41  public:
42 
44  StringMap m_oFormHeaders;
45 
48 
50  std::string m_sBody;
51 
54 
60  FormValue(std::string & irsBody, ContentDisposition & ioContentDisposition);
61 
63  FormValue(const FormValue & iroFormValue);
64 
66  virtual ~FormValue();
67 };
68 
69 #endif // FORMVALUE_H
FormValue::~FormValue
virtual ~FormValue()
Destructor.
FormValue::m_oContentDisposition
ContentDisposition m_oContentDisposition
everything in the content disposition line
Definition: formvalue.h:47
FormValue::FormValue
FormValue(std::string &irsBody, ContentDisposition &ioContentDisposition)
Constructs a new instance.
FormValue::m_oFormHeaders
StringMap m_oFormHeaders
for MIME attachments only, normal header information like content-type – everything except content-di...
Definition: formvalue.h:44
FormValue::FormValue
FormValue()
Default constructor.
ContentDisposition
This class stores the content disposition of a subbody.
Definition: contentdisposition.h:36
FormValue::FormValue
FormValue(const FormValue &iroFormValue)
Copy constructor.
FormValue
This class stores form data sent from the client in GET and POST requests.
Definition: formvalue.h:39
FormValue::m_sBody
std::string m_sBody
the body of the value. For non-MIME-style attachments, this is the only part used.
Definition: formvalue.h:50