Main Page   Class Hierarchy   Alphabetical List   Compound List   Examples  
mimeversion.h
00001 /***************************************************************************
00002     copyright            : (C) 2002-2008 by Stefano Barbato
00003     email                : stefano@codesink.org
00004 
00005     $Id: mimeversion.h,v 1.12 2008-10-07 11:06:26 tat Exp $
00006  ***************************************************************************/
00007 #ifndef _MIMETIC_MIMEVERSION_H_
00008 #define _MIMETIC_MIMEVERSION_H_
00009 #include <string>
00010 #include <iostream>
00011 #include <mimetic/rfc822/fieldvalue.h>
00012 #include <mimetic/version.h>
00013 namespace mimetic
00014 {
00015 
00016 // major & minor are macro defined in /usr/include/sys/sysmacros.h (linux)
00017 // so we'll better use maj & min instead
00018 
00019 /// Mime-Version field value
00020 struct MimeVersion: public Version, public FieldValue
00021 {
00022     static const char label[];
00023     
00024     MimeVersion();
00025     MimeVersion(const std::string&);
00026     MimeVersion(ver_type, ver_type);
00027 
00028     void set(const std::string&);
00029     std::string str() const;
00030 protected:
00031     FieldValue* clone() const;
00032 };
00033 
00034 }
00035 #endif