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

Contents of /mimetic/branches/upstream/current/mimetic/contenttransferencoding.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: 1827 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: contenttransferencoding.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/contenttransferencoding.h>
17
18 namespace mimetic
19 {
20 using namespace std;
21
22 const char ContentTransferEncoding::label[] = "Content-Transfer-Encoding";
23
24 ContentTransferEncoding::ContentTransferEncoding()
25 {
26 }
27
28 ContentTransferEncoding::ContentTransferEncoding(const char* cstr)
29 : m_mechanism(cstr)
30 {
31 }
32
33
34 ContentTransferEncoding::ContentTransferEncoding(const string& mechanism)
35 : m_mechanism(mechanism)
36 {
37 }
38
39 const istring& ContentTransferEncoding::mechanism() const
40 {
41 return m_mechanism;
42 }
43
44 void ContentTransferEncoding::mechanism(const string& mechanism)
45 {
46 m_mechanism = mechanism;
47 }
48
49 void ContentTransferEncoding::set(const string& val)
50 {
51 mechanism(val);
52 }
53
54 string ContentTransferEncoding::str() const
55 {
56 return mechanism();
57 }
58
59 FieldValue* ContentTransferEncoding::clone() const
60 {
61 return new ContentTransferEncoding(*this);
62 }
63
64 }
65

  ViewVC Help
Powered by ViewVC 1.1.26