/[debian]/mimetic/branches/upstream/current/mimetic/contentdescription.cxx
ViewVC logotype

Contents of /mimetic/branches/upstream/current/mimetic/contentdescription.cxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 128 - (show annotations)
Sat Feb 25 16:49:20 2006 UTC (15 years, 5 months ago) by gregoa
File size: 1531 byte(s)
[svn-inject] Installing original source of mimetic
1 /***************************************************************************
2 copyright : (C) 2002-2005 by Stefano Barbato
3 email : stefano@codesink.org
4
5 $Id: contentdescription.cxx,v 1.2 2005/02/23 10:26:14 tat Exp $
6 ***************************************************************************/
7
8 /***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16 #include <mimetic/contentdescription.h>
17
18 namespace mimetic
19 {
20 using namespace std;
21
22 const char ContentDescription::label[] = "Content-Description";
23
24 ContentDescription::ContentDescription()
25 {
26 }
27
28 ContentDescription::ContentDescription(const char* cstr)
29 {
30 set(cstr);
31 }
32
33 ContentDescription::ContentDescription(const string& val)
34 {
35 set(val);
36 }
37
38
39 void ContentDescription::set(const string& val)
40 {
41 m_value = val;
42 }
43
44 string ContentDescription::str() const
45 {
46 return m_value;
47 }
48
49
50 FieldValue* ContentDescription::clone() const
51 {
52 return new ContentDescription(*this);
53 }
54
55 }

  ViewVC Help
Powered by ViewVC 1.1.26