Main Page   Class Hierarchy   Alphabetical List   Compound List   Examples  

fieldparam.h

00001 /***************************************************************************
00002     copyright            : (C) 2002-2008 by Stefano Barbato
00003     email                : stefano@codesink.org
00004 
00005     $Id: fieldparam.h,v 1.7 2008-10-07 11:06:25 tat Exp $
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 /// Field param
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