Main Page   Class Hierarchy   Alphabetical List   Compound List   Examples  
contentdescription.h
00001 /***************************************************************************
00002     copyright            : (C) 2002-2008 by Stefano Barbato
00003     email                : stefano@codesink.org
00004 
00005     $Id: contentdescription.h,v 1.12 2008-10-07 11:06:25 tat Exp $
00006  ***************************************************************************/
00007 #ifndef _MIMETIC_CONTENT_DESCRIPTION_H_
00008 #define _MIMETIC_CONTENT_DESCRIPTION_H_
00009 #include <string>
00010 #include <mimetic/rfc822/fieldvalue.h>
00011 
00012 namespace mimetic
00013 {
00014 
00015 /// Content-Description field value
00016 struct ContentDescription: public FieldValue
00017 {
00018     static const char label[];
00019     ContentDescription();
00020     ContentDescription(const char*);
00021     ContentDescription(const std::string&);
00022     void set(const std::string&);
00023     std::string str() const;
00024 protected:
00025     FieldValue* clone() const;
00026 private:
00027     std::string m_value;
00028 };
00029 
00030 }
00031 
00032 #endif
00033