Main Page Class Hierarchy Alphabetical List Compound List Examples

fieldparam.h
1/***************************************************************************
2 copyright : (C) 2002-2008 by Stefano Barbato
3 email : stefano@codesink.org
4
5 $Id: fieldparam.h,v 1.7 2008-10-07 11:06:25 tat Exp $
6 ***************************************************************************/
7#ifndef _MIMETIC_FIELD_PARAM_H_
8#define _MIMETIC_FIELD_PARAM_H_
9#include <string>
10#include <iostream>
11#include <list>
12#include <mimetic/strutils.h>
13
14 namespace mimetic
15{
16
17/// Field param
18 struct FieldParam
19{
20 FieldParam();
21 FieldParam(const std::string&);
22 FieldParam(const std::string&, const std::string&);
23 const istring& name() const;
24 const std::string& value() const;
25 void name(const std::string&);
26 void value(const std::string&);
27 friend std::ostream& operator<<(std::ostream&, const FieldParam&);
28 private:
29 istring m_name;
30 std::string m_value;
31};
32
33 typedef std::list<FieldParam> FieldParamList;
34}
35
36#endif
mimetic
Definition body.h:18