Main Page   Class Hierarchy   Alphabetical List   Compound List   Examples  
contentid.h
1 /***************************************************************************
2  copyright : (C) 2002-2008 by Stefano Barbato
3  email : stefano@codesink.org
4 
5  $Id: contentid.h,v 1.11 2008-10-07 11:06:25 tat Exp $
6  ***************************************************************************/
7 #ifndef _MIMETIC_CONTENTID_H_
8 #define _MIMETIC_CONTENTID_H_
9 #include <string>
10 #include <mimetic/utils.h>
11 #include <mimetic/os/utils.h>
12 #include <mimetic/rfc822/fieldvalue.h>
13 
14 namespace mimetic
15 {
16 
17 /// Content-ID field value
18 struct ContentId: public FieldValue
19 {
20  // format: yyyymmgg.pid.seq@hostname
21  static const char label[];
22  ContentId();
23  ContentId(const char*);
24  ContentId(const std::string&);
25  void set(const std::string&);
26  std::string str() const;
27 protected:
28  FieldValue* clone() const;
29 private:
30  static unsigned int ms_sequence_number;
31  std::string m_cid;
32 };
33 
34 }
35 
36 #endif
Value of an header field (base class)
Definition: fieldvalue.h:17
Content-ID field value.
Definition: contentid.h:18