00001
00002
00003
00004
00005
00006
00007 #ifndef _MIMETIC_FIELD_PARAM_H_
00008 #define _MIMETIC_FIELD_PARAM_H_
00009 #include <string>
00010 #include <iostream>
00011 #include <list>
00012 #include <mimetic/strutils.h>
00013
00014 namespace mimetic
00015 {
00016
00017
00018 struct FieldParam
00019 {
00020 FieldParam();
00021 FieldParam(const std::string&);
00022 FieldParam(const std::string&, const std::string&);
00023 const istring& name() const;
00024 const std::string& value() const;
00025 void name(const std::string&);
00026 void value(const std::string&);
00027 friend std::ostream& operator<<(std::ostream&, const FieldParam&);
00028 private:
00029 istring m_name;
00030 std::string m_value;
00031 };
00032
00033 typedef std::list<FieldParam> FieldParamList;
00034 }
00035
00036 #endif