Main Page   Class Hierarchy   Alphabetical List   Compound List   Examples  

fieldparam.h

00001 /***************************************************************************
00002     copyright            : (C) 2002-2005 by Stefano Barbato
00003     email                : [email protected]
00004 
00005     $Id: fieldparam_8h-source.html,v 1.4 2006-03-12 12:28:31 tat Exp $
00006  ***************************************************************************/
00007 
00008 /***************************************************************************
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
00014  *                                                                         *
00015  ***************************************************************************/
00016 #ifndef _MIMETIC_FIELD_PARAM_H_
00017 #define _MIMETIC_FIELD_PARAM_H_
00018 #include <string>
00019 #include <iostream>
00020 #include <list>
00021 #include <mimetic/strutils.h>
00022 
00023 namespace mimetic
00024 {
00025 
00026 /// Field param
00027 struct FieldParam
00028 {
00029     FieldParam();
00030     FieldParam(const std::string&);
00031     FieldParam(const std::string&, const std::string&);
00032     const istring& name() const;
00033     const std::string& value() const;
00034     void name(const std::string&);
00035     void value(const std::string&);
00036     friend std::ostream& operator<<(std::ostream&, const FieldParam&);
00037 private:
00038     istring m_name;
00039     std::string m_value;
00040 };
00041 
00042 typedef std::list<FieldParam> FieldParamList;
00043 }
00044 
00045 #endif