Main Page   Class Hierarchy   Alphabetical List   Compound List   Examples  
mimeversion.h
1 /***************************************************************************
2  copyright : (C) 2002-2008 by Stefano Barbato
3  email : stefano@codesink.org
4 
5  $Id: mimeversion.h,v 1.12 2008-10-07 11:06:26 tat Exp $
6  ***************************************************************************/
7 #ifndef _MIMETIC_MIMEVERSION_H_
8 #define _MIMETIC_MIMEVERSION_H_
9 #include <string>
10 #include <iostream>
11 #include <mimetic/rfc822/fieldvalue.h>
12 #include <mimetic/version.h>
13 namespace mimetic
14 {
15 
16 // major & minor are macro defined in /usr/include/sys/sysmacros.h (linux)
17 // so we'll better use maj & min instead
18 
19 /// Mime-Version field value
20 struct MimeVersion: public Version, public FieldValue
21 {
22  static const char label[];
23 
24  MimeVersion();
25  MimeVersion(const std::string&);
26  MimeVersion(ver_type, ver_type);
27 
28  void set(const std::string&);
29  std::string str() const;
30 protected:
31  FieldValue* clone() const;
32 };
33 
34 }
35 #endif
Value of an header field (base class)
Definition: fieldvalue.h:17
Mime-Version field value.
Definition: mimeversion.h:20
A three levels version string class.
Definition: version.h:32