Main Page Class Hierarchy Alphabetical List Compound List Examples |
00001 /*************************************************************************** 00002 copyright : (C) 2002-2005 by Stefano Barbato 00003 email : [email protected] 00004 00005 $Id: mimeversion_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_MIMEVERSION_H_ 00017 #define _MIMETIC_MIMEVERSION_H_ 00018 #include <string> 00019 #include <iostream> 00020 #include <mimetic/rfc822/fieldvalue.h> 00021 #include <mimetic/version.h> 00022 namespace mimetic 00023 { 00024 00025 // major & minor are macro defined in /usr/include/sys/sysmacros.h (linux) 00026 // so we'll better use maj & min instead 00027 00028 /// Mime-Version field value 00029 struct MimeVersion: public Version, public FieldValue 00030 { 00031 static const char label[]; 00032 00033 MimeVersion(); 00034 MimeVersion(const std::string&); 00035 MimeVersion(ver_type, ver_type); 00036 00037 void set(const std::string&); 00038 std::string str() const; 00039 protected: 00040 FieldValue* clone() const; 00041 }; 00042 00043 } 00044 #endif