45
55
<tr><td class="mdescLeft"> </td><td class="mdescRight">Shortcut for a DateValue auto pointer. <br></td></tr>
46
56
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
47
<tr><td colspan="2"><div class="groupHeader">Creators</div></td></tr>
48
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c64871fa22e0b3af3819838d65dcc7a5"></a><!-- doxytag: member="Exiv2::DateValue::DateValue" ref="c64871fa22e0b3af3819838d65dcc7a5" args="()" -->
49
</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#c64871fa22e0b3af3819838d65dcc7a5">DateValue</a> ()</td></tr>
51
<tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br></td></tr>
52
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f337f8a13ff9656ff610398091d271cd"></a><!-- doxytag: member="Exiv2::DateValue::DateValue" ref="f337f8a13ff9656ff610398091d271cd" args="(int year, int month, int day)" -->
53
</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#f337f8a13ff9656ff610398091d271cd">DateValue</a> (int year, int month, int day)</td></tr>
55
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br></td></tr>
56
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c33c577a2e833f9d8726fcaa21b5dac2"></a><!-- doxytag: member="Exiv2::DateValue::~DateValue" ref="c33c577a2e833f9d8726fcaa21b5dac2" args="()" -->
57
virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#c33c577a2e833f9d8726fcaa21b5dac2">~DateValue</a> ()</td></tr>
59
<tr><td class="mdescLeft"> </td><td class="mdescRight">Virtual destructor. <br></td></tr>
60
57
<tr><td colspan="2"><div class="groupHeader">Manipulators</div></td></tr>
61
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="141a0258be171bc8c2e6745c2bbdd2ea"></a><!-- doxytag: member="Exiv2::DateValue::operator=" ref="141a0258be171bc8c2e6745c2bbdd2ea" args="(const DateValue &rhs)" -->
62
<a class="el" href="classExiv2_1_1DateValue.html">DateValue</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#141a0258be171bc8c2e6745c2bbdd2ea">operator=</a> (const <a class="el" href="classExiv2_1_1DateValue.html">DateValue</a> &rhs)</td></tr>
58
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="98571f4fc27c45967df3cc2fdf1506d6"></a><!-- doxytag: member="Exiv2::DateValue::operator=" ref="98571f4fc27c45967df3cc2fdf1506d6" args="(const DateValue &rhs)" -->
59
<a class="el" href="classExiv2_1_1DateValue.html">DateValue</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#98571f4fc27c45967df3cc2fdf1506d6">operator=</a> (const <a class="el" href="classExiv2_1_1DateValue.html">DateValue</a> &rhs)</td></tr>
64
61
<tr><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <br></td></tr>
65
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#cb8fa5f6fcd5383b5fddce094a251961">read</a> (const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, long len, <a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> byteOrder=invalidByteOrder)</td></tr>
67
<tr><td class="mdescLeft"> </td><td class="mdescRight">Read the value from a character buffer. <a href="#cb8fa5f6fcd5383b5fddce094a251961"></a><br></td></tr>
68
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#6eba2be86bf4744bc947b0909aa0c6f2">read</a> (const std::string &buf)</td></tr>
70
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the value to that of the string buf. <a href="#6eba2be86bf4744bc947b0909aa0c6f2"></a><br></td></tr>
62
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#b4c990cb1e24751c786e26bac8272ce9">read</a> (const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, long len, <a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> byteOrder=invalidByteOrder)</td></tr>
64
<tr><td class="mdescLeft"> </td><td class="mdescRight">Read the value from a character buffer. <a href="#b4c990cb1e24751c786e26bac8272ce9"></a><br></td></tr>
65
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#a79469b67dd280fcab1186eb855573e1">read</a> (const std::string &buf)</td></tr>
67
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the value to that of the string buf. <a href="#a79469b67dd280fcab1186eb855573e1"></a><br></td></tr>
71
68
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dfb7f12fa25958b6d7ff3ca5912616ab"></a><!-- doxytag: member="Exiv2::DateValue::setDate" ref="dfb7f12fa25958b6d7ff3ca5912616ab" args="(const Date &src)" -->
72
69
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#dfb7f12fa25958b6d7ff3ca5912616ab">setDate</a> (const <a class="el" href="structExiv2_1_1DateValue_1_1Date.html">Date</a> &src)</td></tr>
74
71
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the date. <br></td></tr>
75
72
<tr><td colspan="2"><div class="groupHeader">Accessors</div></td></tr>
76
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="85dd67fbbdded614b3c1d6383bec3e1e"></a><!-- doxytag: member="Exiv2::DateValue::clone" ref="85dd67fbbdded614b3c1d6383bec3e1e" args="() const " -->
77
<a class="el" href="classExiv2_1_1DateValue.html#eb4c3309897e696326e9cb55a8f6cb68">AutoPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#85dd67fbbdded614b3c1d6383bec3e1e">clone</a> () const </td></tr>
73
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="aae27f8bc2cc95de69104e644486c377"></a><!-- doxytag: member="Exiv2::DateValue::clone" ref="aae27f8bc2cc95de69104e644486c377" args="() const" -->
74
<a class="el" href="classExiv2_1_1Value.html#0f62e585b82c97738858b743e60dff21">AutoPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#aae27f8bc2cc95de69104e644486c377">clone</a> () const</td></tr>
79
76
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return an auto-pointer to a copy of itself (deep copy). The caller owns this copy and the auto-pointer ensures that it will be deleted. <br></td></tr>
80
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#b058c2ba2c53659564a8adfa3a751cd1">copy</a> (<a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, <a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> byteOrder=invalidByteOrder) const </td></tr>
77
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#deb54be19c827a7b4c7b354bfee00d86">copy</a> (<a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, <a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> byteOrder=invalidByteOrder) const</td></tr>
82
<tr><td class="mdescLeft"> </td><td class="mdescRight">Write value to a character data buffer. <a href="#b058c2ba2c53659564a8adfa3a751cd1"></a><br></td></tr>
83
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c35c777f6b3291353252a3af0e032a89"></a><!-- doxytag: member="Exiv2::DateValue::getDate" ref="c35c777f6b3291353252a3af0e032a89" args="() const " -->
84
virtual const <a class="el" href="structExiv2_1_1DateValue_1_1Date.html">Date</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#c35c777f6b3291353252a3af0e032a89">getDate</a> () const </td></tr>
79
<tr><td class="mdescLeft"> </td><td class="mdescRight">Write value to a character data buffer. <a href="#deb54be19c827a7b4c7b354bfee00d86"></a><br></td></tr>
80
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5f3b4d33d63bd462e8306635b44d4f47"></a><!-- doxytag: member="Exiv2::DateValue::getDate" ref="5f3b4d33d63bd462e8306635b44d4f47" args="() const" -->
81
virtual const <a class="el" href="structExiv2_1_1DateValue_1_1Date.html">Date</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#5f3b4d33d63bd462e8306635b44d4f47">getDate</a> () const</td></tr>
86
83
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return date struct containing date information. <br></td></tr>
87
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2283680f859bd8531436d7bd3fb268c4"></a><!-- doxytag: member="Exiv2::DateValue::count" ref="2283680f859bd8531436d7bd3fb268c4" args="() const " -->
88
virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#2283680f859bd8531436d7bd3fb268c4">count</a> () const </td></tr>
84
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="786550d67c1186507e13d07352e2082a"></a><!-- doxytag: member="Exiv2::DateValue::count" ref="786550d67c1186507e13d07352e2082a" args="() const" -->
85
virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#786550d67c1186507e13d07352e2082a">count</a> () const</td></tr>
90
87
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the number of components of the value. <br></td></tr>
91
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fb2c24dffd2d7ad0d9079854eeb063c2"></a><!-- doxytag: member="Exiv2::DateValue::size" ref="fb2c24dffd2d7ad0d9079854eeb063c2" args="() const " -->
92
virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#fb2c24dffd2d7ad0d9079854eeb063c2">size</a> () const </td></tr>
88
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7f21ec42eec17e792be13e0e058fcd9d"></a><!-- doxytag: member="Exiv2::DateValue::size" ref="7f21ec42eec17e792be13e0e058fcd9d" args="() const" -->
89
virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#7f21ec42eec17e792be13e0e058fcd9d">size</a> () const</td></tr>
94
91
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the size of the value in bytes. <br></td></tr>
95
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="15e73dd1a8a9016ccfd18c75086ec108"></a><!-- doxytag: member="Exiv2::DateValue::write" ref="15e73dd1a8a9016ccfd18c75086ec108" args="(std::ostream &os) const " -->
96
virtual std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#15e73dd1a8a9016ccfd18c75086ec108">write</a> (std::ostream &os) const </td></tr>
92
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6cb595c38c6235ae3f8f996b6fe9af01"></a><!-- doxytag: member="Exiv2::DateValue::write" ref="6cb595c38c6235ae3f8f996b6fe9af01" args="(std::ostream &os) const" -->
93
virtual std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#6cb595c38c6235ae3f8f996b6fe9af01">write</a> (std::ostream &os) const</td></tr>
98
95
<tr><td class="mdescLeft"> </td><td class="mdescRight">Write the value to an output stream. . <br></td></tr>
99
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#80ca3538d96fa26f9f196e9db9ff0c43">toLong</a> (long n=0) const </td></tr>
101
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convert the n-th component of the value to a long. The behaviour of this method may be undefined if there is no n-th component. <a href="#80ca3538d96fa26f9f196e9db9ff0c43"></a><br></td></tr>
102
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual float </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#e569670f2a52546812ca750cc7b1bb69">toFloat</a> (long n=0) const </td></tr>
104
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convert the n-th component of the value to a float. The behaviour of this method may be undefined if there is no n-th component. <a href="#e569670f2a52546812ca750cc7b1bb69"></a><br></td></tr>
105
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="namespaceExiv2.html#95756f3f7fa19103f83addf5fa088a30">Rational</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#9a4641ab53245fcd36531bcd92e80e32">toRational</a> (long n=0) const </td></tr>
107
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convert the n-th component of the value to a Rational. The behaviour of this method may be undefined if there is no n-th component. <a href="#9a4641ab53245fcd36531bcd92e80e32"></a><br></td></tr>
96
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#eca49fa9f7758840cb0ed1a3dfde4cad">toLong</a> (long n=0) const</td></tr>
98
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convert the n-th component of the value to a long. The behaviour of this method may be undefined if there is no n-th component. <a href="#eca49fa9f7758840cb0ed1a3dfde4cad"></a><br></td></tr>
99
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual float </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#932a5ee21962467a8975b5318c3195a3">toFloat</a> (long n=0) const</td></tr>
101
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convert the n-th component of the value to a float. The behaviour of this method may be undefined if there is no n-th component. <a href="#932a5ee21962467a8975b5318c3195a3"></a><br></td></tr>
102
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="namespaceExiv2.html#95756f3f7fa19103f83addf5fa088a30">Rational</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DateValue.html#4791c815f29473b084dfe369f0a23881">toRational</a> (long n=0) const</td></tr>
104
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convert the n-th component of the value to a Rational. The behaviour of this method may be undefined if there is no n-th component. <a href="#4791c815f29473b084dfe369f0a23881"></a><br></td></tr>
108
105
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
109
106
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structExiv2_1_1DateValue_1_1Date.html">Date</a></td></tr>
116
113
This class is limited to parsing simple date strings in the ISO 8601 format CCYYMMDD (century, year, month, day).
118
115
<hr><h2>Member Function Documentation</h2>
119
<a class="anchor" name="b058c2ba2c53659564a8adfa3a751cd1"></a><!-- doxytag: member="Exiv2::DateValue::copy" ref="b058c2ba2c53659564a8adfa3a751cd1" args="(byte *buf, ByteOrder byteOrder=invalidByteOrder) const " --><p>
120
<table class="mdTable" cellpadding="2" cellspacing="0">
123
<table cellpadding="0" cellspacing="0" border="0">
125
<td class="md" nowrap valign="top">long Exiv2::DateValue::copy </td>
126
<td class="md" valign="top">( </td>
127
<td class="md" nowrap valign="top"><a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td>
128
<td class="mdname" nowrap> <em>buf</em>, </td>
131
<td class="md" nowrap align="right"></td>
133
<td class="md" nowrap><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> </td>
134
<td class="mdname" nowrap> <em>byteOrder</em> = <code>invalidByteOrder</code></td>
138
<td class="md">) </td>
139
<td class="md" colspan="2"> const<code> [virtual]</code></td>
145
<table cellspacing="5" cellpadding="0" border="0">
116
<a class="anchor" name="b4c990cb1e24751c786e26bac8272ce9"></a><!-- doxytag: member="Exiv2::DateValue::read" ref="b4c990cb1e24751c786e26bac8272ce9" args="(const byte *buf, long len, ByteOrder byteOrder=invalidByteOrder)" -->
117
<div class="memitem">
118
<div class="memproto">
119
<table class="memname">
121
<td class="memname">virtual int Exiv2::DateValue::read </td>
123
<td class="paramtype">const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td>
124
<td class="paramname"> <em>buf</em>, </td>
127
<td class="paramkey"></td>
129
<td class="paramtype">long </td>
130
<td class="paramname"> <em>len</em>, </td>
133
<td class="paramkey"></td>
135
<td class="paramtype"><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> </td>
136
<td class="paramname"> <em>byteOrder</em> = <code>invalidByteOrder</code></td><td> </td>
141
<td></td><td></td><td width="100%"><code> [virtual]</code></td>
148
Read the value from a character buffer.
150
<dl class="note" compact><dt><b>Note:</b></dt><dd>The byte order is required by the interface but not used by this method, so just use the default.</dd></dl>
151
<dl compact><dt><b>Parameters:</b></dt><dd>
152
<table border="0" cellspacing="2" cellpadding="0">
153
<tr><td valign="top"></td><td valign="top"><em>buf</em> </td><td>Pointer to the data buffer to read from </td></tr>
154
<tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>Number of bytes in the data buffer </td></tr>
155
<tr><td valign="top"></td><td valign="top"><em>byteOrder</em> </td><td>Byte order. Not needed.</td></tr>
158
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if successful<br>
159
1 in case of an unsupported date format </dd></dl>
162
Implements <a class="el" href="classExiv2_1_1Value.html#cc8870f802ebcdf9d4e081816ad8956e">Exiv2::Value</a>.
165
<a class="anchor" name="a79469b67dd280fcab1186eb855573e1"></a><!-- doxytag: member="Exiv2::DateValue::read" ref="a79469b67dd280fcab1186eb855573e1" args="(const std::string &buf)" -->
166
<div class="memitem">
167
<div class="memproto">
168
<table class="memname">
170
<td class="memname">virtual int Exiv2::DateValue::read </td>
172
<td class="paramtype">const std::string & </td>
173
<td class="paramname"> <em>buf</em> </td>
174
<td> ) </td>
175
<td width="100%"><code> [virtual]</code></td>
182
Set the value to that of the string buf.
184
<dl compact><dt><b>Parameters:</b></dt><dd>
185
<table border="0" cellspacing="2" cellpadding="0">
186
<tr><td valign="top"></td><td valign="top"><em>buf</em> </td><td>String containing the date</td></tr>
189
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if successful<br>
190
1 in case of an unsupported date format </dd></dl>
193
Implements <a class="el" href="classExiv2_1_1Value.html#2864378d7572310aa5f4cf4127365862">Exiv2::Value</a>.
196
<a class="anchor" name="deb54be19c827a7b4c7b354bfee00d86"></a><!-- doxytag: member="Exiv2::DateValue::copy" ref="deb54be19c827a7b4c7b354bfee00d86" args="(byte *buf, ByteOrder byteOrder=invalidByteOrder) const" -->
197
<div class="memitem">
198
<div class="memproto">
199
<table class="memname">
201
<td class="memname">virtual long Exiv2::DateValue::copy </td>
203
<td class="paramtype"><a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td>
204
<td class="paramname"> <em>buf</em>, </td>
207
<td class="paramkey"></td>
209
<td class="paramtype"><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> </td>
210
<td class="paramname"> <em>byteOrder</em> = <code>invalidByteOrder</code></td><td> </td>
215
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
153
222
Write value to a character data buffer.
155
224
The user must ensure that the buffer has enough memory. Otherwise the call results in undefined behaviour.<p>
156
<dl compact><dt><b>Note:</b></dt><dd>The byte order is required by the interface but not used by this method, so just use the default.</dd></dl>
225
<dl class="note" compact><dt><b>Note:</b></dt><dd>The byte order is required by the interface but not used by this method, so just use the default.</dd></dl>
157
226
<dl compact><dt><b>Parameters:</b></dt><dd>
158
227
<table border="0" cellspacing="2" cellpadding="0">
159
228
<tr><td valign="top"></td><td valign="top"><em>buf</em> </td><td>Data buffer to write to. </td></tr>
160
229
<tr><td valign="top"></td><td valign="top"><em>byteOrder</em> </td><td>Byte order. Not used. </td></tr>
163
<dl compact><dt><b>Returns:</b></dt><dd>Number of characters written. </dd></dl>
166
Implements <a class="el" href="classExiv2_1_1Value.html#3bf4f9c2eda4f7850a390de98668ce15">Exiv2::Value</a>. </td>
169
<a class="anchor" name="6eba2be86bf4744bc947b0909aa0c6f2"></a><!-- doxytag: member="Exiv2::DateValue::read" ref="6eba2be86bf4744bc947b0909aa0c6f2" args="(const std::string &buf)" --><p>
170
<table class="mdTable" cellpadding="2" cellspacing="0">
173
<table cellpadding="0" cellspacing="0" border="0">
175
<td class="md" nowrap valign="top">int Exiv2::DateValue::read </td>
176
<td class="md" valign="top">( </td>
177
<td class="md" nowrap valign="top">const std::string & </td>
178
<td class="mdname1" valign="top" nowrap> <em>buf</em> </td>
179
<td class="md" valign="top"> ) </td>
180
<td class="md" nowrap><code> [virtual]</code></td>
186
<table cellspacing="5" cellpadding="0" border="0">
194
Set the value to that of the string buf.
196
<dl compact><dt><b>Parameters:</b></dt><dd>
197
<table border="0" cellspacing="2" cellpadding="0">
198
<tr><td valign="top"></td><td valign="top"><em>buf</em> </td><td>String containing the date</td></tr>
201
<dl compact><dt><b>Returns:</b></dt><dd>0 if successful<br>
202
1 in case of an unsupported date format </dd></dl>
205
Implements <a class="el" href="classExiv2_1_1Value.html#2864378d7572310aa5f4cf4127365862">Exiv2::Value</a>. </td>
208
<a class="anchor" name="cb8fa5f6fcd5383b5fddce094a251961"></a><!-- doxytag: member="Exiv2::DateValue::read" ref="cb8fa5f6fcd5383b5fddce094a251961" args="(const byte *buf, long len, ByteOrder byteOrder=invalidByteOrder)" --><p>
209
<table class="mdTable" cellpadding="2" cellspacing="0">
212
<table cellpadding="0" cellspacing="0" border="0">
214
<td class="md" nowrap valign="top">int Exiv2::DateValue::read </td>
215
<td class="md" valign="top">( </td>
216
<td class="md" nowrap valign="top">const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td>
217
<td class="mdname" nowrap> <em>buf</em>, </td>
220
<td class="md" nowrap align="right"></td>
222
<td class="md" nowrap>long </td>
223
<td class="mdname" nowrap> <em>len</em>, </td>
226
<td class="md" nowrap align="right"></td>
228
<td class="md" nowrap><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> </td>
229
<td class="mdname" nowrap> <em>byteOrder</em> = <code>invalidByteOrder</code></td>
233
<td class="md">) </td>
234
<td class="md" colspan="2"><code> [virtual]</code></td>
240
<table cellspacing="5" cellpadding="0" border="0">
248
Read the value from a character buffer.
250
<dl compact><dt><b>Note:</b></dt><dd>The byte order is required by the interface but not used by this method, so just use the default.</dd></dl>
251
<dl compact><dt><b>Parameters:</b></dt><dd>
252
<table border="0" cellspacing="2" cellpadding="0">
253
<tr><td valign="top"></td><td valign="top"><em>buf</em> </td><td>Pointer to the data buffer to read from </td></tr>
254
<tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>Number of bytes in the data buffer </td></tr>
255
<tr><td valign="top"></td><td valign="top"><em>byteOrder</em> </td><td>Byte order. Not needed.</td></tr>
258
<dl compact><dt><b>Returns:</b></dt><dd>0 if successful<br>
259
1 in case of an unsupported date format </dd></dl>
262
Implements <a class="el" href="classExiv2_1_1Value.html#cc8870f802ebcdf9d4e081816ad8956e">Exiv2::Value</a>. </td>
265
<a class="anchor" name="e569670f2a52546812ca750cc7b1bb69"></a><!-- doxytag: member="Exiv2::DateValue::toFloat" ref="e569670f2a52546812ca750cc7b1bb69" args="(long n=0) const " --><p>
266
<table class="mdTable" cellpadding="2" cellspacing="0">
269
<table cellpadding="0" cellspacing="0" border="0">
271
<td class="md" nowrap valign="top">virtual float Exiv2::DateValue::toFloat </td>
272
<td class="md" valign="top">( </td>
273
<td class="md" nowrap valign="top">long </td>
274
<td class="mdname1" valign="top" nowrap> <em>n</em> = <code>0</code> </td>
275
<td class="md" valign="top"> ) </td>
276
<td class="md" nowrap> const<code> [inline, virtual]</code></td>
282
<table cellspacing="5" cellpadding="0" border="0">
232
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Number of characters written. </dd></dl>
235
Implements <a class="el" href="classExiv2_1_1Value.html#712b88cbf8272da2f62483de8dc3519d">Exiv2::Value</a>.
238
<a class="anchor" name="eca49fa9f7758840cb0ed1a3dfde4cad"></a><!-- doxytag: member="Exiv2::DateValue::toLong" ref="eca49fa9f7758840cb0ed1a3dfde4cad" args="(long n=0) const" -->
239
<div class="memitem">
240
<div class="memproto">
241
<table class="memname">
243
<td class="memname">virtual long Exiv2::DateValue::toLong </td>
245
<td class="paramtype">long </td>
246
<td class="paramname"> <em>n</em> = <code>0</code> </td>
247
<td> ) </td>
248
<td width="100%"> const<code> [virtual]</code></td>
255
Convert the n-th component of the value to a long. The behaviour of this method may be undefined if there is no n-th component.
257
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
260
Implements <a class="el" href="classExiv2_1_1Value.html#e764f3abd43f1eaeedaf85be9c4e45f4">Exiv2::Value</a>.
263
<a class="anchor" name="932a5ee21962467a8975b5318c3195a3"></a><!-- doxytag: member="Exiv2::DateValue::toFloat" ref="932a5ee21962467a8975b5318c3195a3" args="(long n=0) const" -->
264
<div class="memitem">
265
<div class="memproto">
266
<table class="memname">
268
<td class="memname">virtual float Exiv2::DateValue::toFloat </td>
270
<td class="paramtype">long </td>
271
<td class="paramname"> <em>n</em> = <code>0</code> </td>
272
<td> ) </td>
273
<td width="100%"> const<code> [inline, virtual]</code></td>
290
280
Convert the n-th component of the value to a float. The behaviour of this method may be undefined if there is no n-th component.
292
<dl compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
295
Implements <a class="el" href="classExiv2_1_1Value.html#22d257caa6c1ffe6416ce02de7bd8c1c">Exiv2::Value</a>. </td>
298
<a class="anchor" name="80ca3538d96fa26f9f196e9db9ff0c43"></a><!-- doxytag: member="Exiv2::DateValue::toLong" ref="80ca3538d96fa26f9f196e9db9ff0c43" args="(long n=0) const " --><p>
299
<table class="mdTable" cellpadding="2" cellspacing="0">
302
<table cellpadding="0" cellspacing="0" border="0">
304
<td class="md" nowrap valign="top">long Exiv2::DateValue::toLong </td>
305
<td class="md" valign="top">( </td>
306
<td class="md" nowrap valign="top">long </td>
307
<td class="mdname1" valign="top" nowrap> <em>n</em> = <code>0</code> </td>
308
<td class="md" valign="top"> ) </td>
309
<td class="md" nowrap> const<code> [virtual]</code></td>
315
<table cellspacing="5" cellpadding="0" border="0">
323
Convert the n-th component of the value to a long. The behaviour of this method may be undefined if there is no n-th component.
325
<dl compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
328
Implements <a class="el" href="classExiv2_1_1Value.html#4530a3fc3e2305cf994de5476f46f953">Exiv2::Value</a>. </td>
331
<a class="anchor" name="9a4641ab53245fcd36531bcd92e80e32"></a><!-- doxytag: member="Exiv2::DateValue::toRational" ref="9a4641ab53245fcd36531bcd92e80e32" args="(long n=0) const " --><p>
332
<table class="mdTable" cellpadding="2" cellspacing="0">
335
<table cellpadding="0" cellspacing="0" border="0">
337
<td class="md" nowrap valign="top">virtual <a class="el" href="namespaceExiv2.html#95756f3f7fa19103f83addf5fa088a30">Rational</a> Exiv2::DateValue::toRational </td>
338
<td class="md" valign="top">( </td>
339
<td class="md" nowrap valign="top">long </td>
340
<td class="mdname1" valign="top" nowrap> <em>n</em> = <code>0</code> </td>
341
<td class="md" valign="top"> ) </td>
342
<td class="md" nowrap> const<code> [inline, virtual]</code></td>
348
<table cellspacing="5" cellpadding="0" border="0">
282
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
285
Implements <a class="el" href="classExiv2_1_1Value.html#4b49aea294b66e6b5e5f083210273fde">Exiv2::Value</a>.
288
<a class="anchor" name="4791c815f29473b084dfe369f0a23881"></a><!-- doxytag: member="Exiv2::DateValue::toRational" ref="4791c815f29473b084dfe369f0a23881" args="(long n=0) const" -->
289
<div class="memitem">
290
<div class="memproto">
291
<table class="memname">
293
<td class="memname">virtual <a class="el" href="namespaceExiv2.html#95756f3f7fa19103f83addf5fa088a30">Rational</a> Exiv2::DateValue::toRational </td>
295
<td class="paramtype">long </td>
296
<td class="paramname"> <em>n</em> = <code>0</code> </td>
297
<td> ) </td>
298
<td width="100%"> const<code> [inline, virtual]</code></td>
356
305
Convert the n-th component of the value to a Rational. The behaviour of this method may be undefined if there is no n-th component.
358
<dl compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
307
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
361
Implements <a class="el" href="classExiv2_1_1Value.html#595a4cb549bec8c19d290ca3e95a2678">Exiv2::Value</a>. </td>
364
<hr>The documentation for this class was generated from the following files:<ul>
365
<li><a class="el" href="value_8hpp.html">value.hpp</a><li>value.cpp</ul>
366
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 2 23:55:43 2006 for Exiv2 by
310
Implements <a class="el" href="classExiv2_1_1Value.html#e633d9fc821a71dda86f37751c18c5d7">Exiv2::Value</a>.
313
<hr>The documentation for this class was generated from the following file:<ul>
314
<li><a class="el" href="value_8hpp.html">value.hpp</a></ul>
315
<hr size="1"><address style="align: right;"><small>Generated on Mon Nov 27 20:16:38 2006 for Exiv2 by
367
316
<a href="http://www.doxygen.org/index.html">
368
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
317
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>