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

Contents of /mimetic/branches/upstream/current/mimetic/header.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: 3156 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: header.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/header.h>
17
18 namespace mimetic
19 {
20 using namespace std;
21
22 // MIME-Version:
23 const MimeVersion& Header::mimeVersion() const
24 {
25 return getField<MimeVersion>(MimeVersion::label);
26 }
27
28 MimeVersion& Header::mimeVersion()
29 {
30 return getField<MimeVersion>(MimeVersion::label);
31 }
32
33 void Header::mimeVersion(const MimeVersion& val)
34 {
35 setField(MimeVersion::label, val);
36 }
37
38 // Content-Type
39 const ContentType& Header::contentType() const
40 {
41 return getField<ContentType>(ContentType::label);
42 }
43
44 ContentType& Header::contentType()
45 {
46 return getField<ContentType>(ContentType::label);
47 }
48
49 void Header::contentType(const ContentType& val)
50 {
51 setField(ContentType::label, val);
52 }
53
54 // Content-Transfer-Encoding
55 const ContentTransferEncoding& Header::contentTransferEncoding() const
56 {
57 return getField<ContentTransferEncoding>(ContentTransferEncoding::label);
58 }
59
60 ContentTransferEncoding& Header::contentTransferEncoding()
61 {
62 return getField<ContentTransferEncoding>(ContentTransferEncoding::label);
63 }
64
65 void Header::contentTransferEncoding(const ContentTransferEncoding& val)
66 {
67 setField(ContentTransferEncoding::label, val);
68 }
69
70 // Content-Disposition
71 const ContentDisposition& Header::contentDisposition() const
72 {
73 return getField<ContentDisposition>(ContentDisposition::label);
74 }
75
76 ContentDisposition& Header::contentDisposition()
77 {
78 return getField<ContentDisposition>(ContentDisposition::label);
79 }
80
81 void Header::contentDisposition(const ContentDisposition& val)
82 {
83 setField(ContentDisposition::label, val);
84 }
85
86 // Content-Description
87 const ContentDescription& Header::contentDescription() const
88 {
89 return getField<ContentDescription>(ContentDescription::label);
90 }
91
92 ContentDescription& Header::contentDescription()
93 {
94 return getField<ContentDescription>(ContentDescription::label);
95 }
96
97 void Header::contentDescription(const ContentDescription& val)
98 {
99 setField(ContentDescription::label, val);
100 }
101
102 // Content-Id
103 const ContentId& Header::contentId() const
104 {
105 return getField<ContentId>(ContentId::label);
106 }
107
108 ContentId& Header::contentId()
109 {
110 return getField<ContentId>(ContentId::label);
111 }
112
113 void Header::contentId(const ContentId& val)
114 {
115 setField(ContentId::label, val);
116 }
117
118 }
119

  ViewVC Help
Powered by ViewVC 1.1.26