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
14namespace mimetic
15{
16
17/// Content-ID field value
18struct 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;
27protected:
28 FieldValue* clone() const;
29private:
30 static unsigned int ms_sequence_number;
31 std::string m_cid;
32};
33
34}
35
36#endif
Definition: body.h:18
Content-ID field value.
Definition: contentid.h:19
Value of an header field (base class)
Definition: fieldvalue.h:18