44
54
<tr><td class="mdescLeft"> </td><td class="mdescRight">Shortcut for a DataValue auto pointer. <br></td></tr>
45
55
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
46
<tr><td colspan="2"><div class="groupHeader">Creators</div></td></tr>
47
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ecfbbc2bc400abbbdd2d4282356a0ddd"></a><!-- doxytag: member="Exiv2::DataValue::DataValue" ref="ecfbbc2bc400abbbdd2d4282356a0ddd" args="(TypeId typeId=undefined)" -->
48
</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#ecfbbc2bc400abbbdd2d4282356a0ddd">DataValue</a> (<a class="el" href="namespaceExiv2.html#5153319711f35fe81cbc13f4b852450c">TypeId</a> typeId=undefined)</td></tr>
50
<tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br></td></tr>
51
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="614ccfa52204af130091f7b1d7d27ea7"></a><!-- doxytag: member="Exiv2::DataValue::DataValue" ref="614ccfa52204af130091f7b1d7d27ea7" args="(const byte *buf, long len, ByteOrder byteOrder=invalidByteOrder, TypeId typeId=undefined)" -->
52
</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#614ccfa52204af130091f7b1d7d27ea7">DataValue</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, <a class="el" href="namespaceExiv2.html#5153319711f35fe81cbc13f4b852450c">TypeId</a> typeId=undefined)</td></tr>
54
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br></td></tr>
55
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="409c9e6564e05af3f375933cabd973cf"></a><!-- doxytag: member="Exiv2::DataValue::~DataValue" ref="409c9e6564e05af3f375933cabd973cf" args="()" -->
56
virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#409c9e6564e05af3f375933cabd973cf">~DataValue</a> ()</td></tr>
58
<tr><td class="mdescLeft"> </td><td class="mdescRight">Virtual destructor. <br></td></tr>
59
56
<tr><td colspan="2"><div class="groupHeader">Manipulators</div></td></tr>
60
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="268ccff7788ddde11bde2769f12df006"></a><!-- doxytag: member="Exiv2::DataValue::operator=" ref="268ccff7788ddde11bde2769f12df006" args="(const DataValue &rhs)" -->
61
<a class="el" href="classExiv2_1_1DataValue.html">DataValue</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#268ccff7788ddde11bde2769f12df006">operator=</a> (const <a class="el" href="classExiv2_1_1DataValue.html">DataValue</a> &rhs)</td></tr>
57
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8159eb23ba4cf30c4c4aa680253bed97"></a><!-- doxytag: member="Exiv2::DataValue::operator=" ref="8159eb23ba4cf30c4c4aa680253bed97" args="(const DataValue &rhs)" -->
58
<a class="el" href="classExiv2_1_1DataValue.html">DataValue</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#8159eb23ba4cf30c4c4aa680253bed97">operator=</a> (const <a class="el" href="classExiv2_1_1DataValue.html">DataValue</a> &rhs)</td></tr>
63
60
<tr><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <br></td></tr>
64
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#927fef988688e4b33d4fcaffb51679dc">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>
61
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#d09a8313bc8b11729c43d10c6f1a3ffb">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>
66
<tr><td class="mdescLeft"> </td><td class="mdescRight">Read the value from a character buffer. <a href="#927fef988688e4b33d4fcaffb51679dc"></a><br></td></tr>
67
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fb8d9321e3b80c239b3a8df9b1ca4083"></a><!-- doxytag: member="Exiv2::DataValue::read" ref="fb8d9321e3b80c239b3a8df9b1ca4083" args="(const std::string &buf)" -->
68
virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#fb8d9321e3b80c239b3a8df9b1ca4083">read</a> (const std::string &buf)</td></tr>
63
<tr><td class="mdescLeft"> </td><td class="mdescRight">Read the value from a character buffer. <a href="#d09a8313bc8b11729c43d10c6f1a3ffb"></a><br></td></tr>
64
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ad4184ffd8169a69f3c4d62d7da1a8b5"></a><!-- doxytag: member="Exiv2::DataValue::read" ref="ad4184ffd8169a69f3c4d62d7da1a8b5" args="(const std::string &buf)" -->
65
virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#ad4184ffd8169a69f3c4d62d7da1a8b5">read</a> (const std::string &buf)</td></tr>
70
67
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the data from a string of integer values (e.g., "0 1 2 3"). <br></td></tr>
71
68
<tr><td colspan="2"><div class="groupHeader">Accessors</div></td></tr>
72
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f4ba7060e604c9934006329baf7dd2af"></a><!-- doxytag: member="Exiv2::DataValue::clone" ref="f4ba7060e604c9934006329baf7dd2af" args="() const " -->
73
<a class="el" href="classExiv2_1_1DataValue.html#46b580e6be9aa7708a75eed270f5c89f">AutoPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#f4ba7060e604c9934006329baf7dd2af">clone</a> () const </td></tr>
69
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b755fef63ef8c2cc2a59913a86f00d48"></a><!-- doxytag: member="Exiv2::DataValue::clone" ref="b755fef63ef8c2cc2a59913a86f00d48" args="() const" -->
70
<a class="el" href="classExiv2_1_1Value.html#0f62e585b82c97738858b743e60dff21">AutoPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#b755fef63ef8c2cc2a59913a86f00d48">clone</a> () const</td></tr>
75
72
<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>
76
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#d96c8ded5036c82f33d9eb214ed12587">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>
73
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#691a3ccb0ec086259f022da9cdeb8b3b">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>
78
<tr><td class="mdescLeft"> </td><td class="mdescRight">Write value to a character data buffer. <a href="#d96c8ded5036c82f33d9eb214ed12587"></a><br></td></tr>
79
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="713b772a1f6d666f70985e9eb185ebf7"></a><!-- doxytag: member="Exiv2::DataValue::count" ref="713b772a1f6d666f70985e9eb185ebf7" args="() const " -->
80
virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#713b772a1f6d666f70985e9eb185ebf7">count</a> () const </td></tr>
75
<tr><td class="mdescLeft"> </td><td class="mdescRight">Write value to a character data buffer. <a href="#691a3ccb0ec086259f022da9cdeb8b3b"></a><br></td></tr>
76
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0464f6d48f5b487ca5645a16daba7877"></a><!-- doxytag: member="Exiv2::DataValue::count" ref="0464f6d48f5b487ca5645a16daba7877" args="() const" -->
77
virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#0464f6d48f5b487ca5645a16daba7877">count</a> () const</td></tr>
82
79
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the number of components of the value. <br></td></tr>
83
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="09524728bded980d22d93e3d95331dea"></a><!-- doxytag: member="Exiv2::DataValue::size" ref="09524728bded980d22d93e3d95331dea" args="() const " -->
84
virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#09524728bded980d22d93e3d95331dea">size</a> () const </td></tr>
80
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c1a7fc0348caad77ba45e7126216983d"></a><!-- doxytag: member="Exiv2::DataValue::size" ref="c1a7fc0348caad77ba45e7126216983d" args="() const" -->
81
virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#c1a7fc0348caad77ba45e7126216983d">size</a> () const</td></tr>
86
83
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the size of the value in bytes. <br></td></tr>
87
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="aabdc32e781b5d1ad83d5db6ce68c340"></a><!-- doxytag: member="Exiv2::DataValue::write" ref="aabdc32e781b5d1ad83d5db6ce68c340" args="(std::ostream &os) const " -->
88
virtual std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#aabdc32e781b5d1ad83d5db6ce68c340">write</a> (std::ostream &os) const </td></tr>
84
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8625b50b0cf9798cf31a48920130f6cf"></a><!-- doxytag: member="Exiv2::DataValue::write" ref="8625b50b0cf9798cf31a48920130f6cf" args="(std::ostream &os) const" -->
85
virtual std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#8625b50b0cf9798cf31a48920130f6cf">write</a> (std::ostream &os) const</td></tr>
90
87
<tr><td class="mdescLeft"> </td><td class="mdescRight">Write the value to an output stream. You do not usually have to use this function; it is used for the implementation of the output operator for Value, <a class="el" href="namespaceExiv2.html#be882054db13fc2f4f6f7e8e1261d982">operator<<(std::ostream &os, const Value &value)</a>. <br></td></tr>
91
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#5f0c7bdb70a0135f5e608d75c75f4642">toLong</a> (long n=0) const </td></tr>
93
<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="#5f0c7bdb70a0135f5e608d75c75f4642"></a><br></td></tr>
94
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual float </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#fcde22deccfcd99dba3c0754a0644ca5">toFloat</a> (long n=0) const </td></tr>
96
<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="#fcde22deccfcd99dba3c0754a0644ca5"></a><br></td></tr>
97
<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_1DataValue.html#3cfd0fdecb3db12c6d77c84fa4fe3de6">toRational</a> (long n=0) const </td></tr>
99
<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="#3cfd0fdecb3db12c6d77c84fa4fe3de6"></a><br></td></tr>
88
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#dc7089881e2014fb7d27d473aba11a4b">toLong</a> (long n=0) const</td></tr>
90
<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="#dc7089881e2014fb7d27d473aba11a4b"></a><br></td></tr>
91
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual float </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#1e8c9e25b6cbfed141e8dccc6fc36ede">toFloat</a> (long n=0) const</td></tr>
93
<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="#1e8c9e25b6cbfed141e8dccc6fc36ede"></a><br></td></tr>
94
<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_1DataValue.html#b6065699831a706b141c91ff40e04262">toRational</a> (long n=0) const</td></tr>
96
<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="#b6065699831a706b141c91ff40e04262"></a><br></td></tr>
101
98
<hr><a name="_details"></a><h2>Detailed Description</h2>
102
99
Value for an undefined data type.
104
101
<hr><h2>Member Function Documentation</h2>
105
<a class="anchor" name="d96c8ded5036c82f33d9eb214ed12587"></a><!-- doxytag: member="Exiv2::DataValue::copy" ref="d96c8ded5036c82f33d9eb214ed12587" args="(byte *buf, ByteOrder byteOrder=invalidByteOrder) const " --><p>
106
<table class="mdTable" cellpadding="2" cellspacing="0">
109
<table cellpadding="0" cellspacing="0" border="0">
111
<td class="md" nowrap valign="top">long Exiv2::DataValue::copy </td>
112
<td class="md" valign="top">( </td>
113
<td class="md" nowrap valign="top"><a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td>
114
<td class="mdname" nowrap> <em>buf</em>, </td>
117
<td class="md" nowrap align="right"></td>
119
<td class="md" nowrap><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> </td>
120
<td class="mdname" nowrap> <em>byteOrder</em> = <code>invalidByteOrder</code></td>
124
<td class="md">) </td>
125
<td class="md" colspan="2"> const<code> [virtual]</code></td>
131
<table cellspacing="5" cellpadding="0" border="0">
102
<a class="anchor" name="d09a8313bc8b11729c43d10c6f1a3ffb"></a><!-- doxytag: member="Exiv2::DataValue::read" ref="d09a8313bc8b11729c43d10c6f1a3ffb" args="(const byte *buf, long len, ByteOrder byteOrder=invalidByteOrder)" -->
103
<div class="memitem">
104
<div class="memproto">
105
<table class="memname">
107
<td class="memname">virtual int Exiv2::DataValue::read </td>
109
<td class="paramtype">const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td>
110
<td class="paramname"> <em>buf</em>, </td>
113
<td class="paramkey"></td>
115
<td class="paramtype">long </td>
116
<td class="paramname"> <em>len</em>, </td>
119
<td class="paramkey"></td>
121
<td class="paramtype"><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> </td>
122
<td class="paramname"> <em>byteOrder</em> = <code>invalidByteOrder</code></td><td> </td>
127
<td></td><td></td><td width="100%"><code> [virtual]</code></td>
134
Read the value from a character buffer.
136
<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>
137
<dl compact><dt><b>Parameters:</b></dt><dd>
138
<table border="0" cellspacing="2" cellpadding="0">
139
<tr><td valign="top"></td><td valign="top"><em>buf</em> </td><td>Pointer to the data buffer to read from </td></tr>
140
<tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>Number of bytes in the data buffer </td></tr>
141
<tr><td valign="top"></td><td valign="top"><em>byteOrder</em> </td><td>Byte order. Not needed.</td></tr>
144
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if successful. </dd></dl>
147
Implements <a class="el" href="classExiv2_1_1Value.html#cc8870f802ebcdf9d4e081816ad8956e">Exiv2::Value</a>.
150
<a class="anchor" name="691a3ccb0ec086259f022da9cdeb8b3b"></a><!-- doxytag: member="Exiv2::DataValue::copy" ref="691a3ccb0ec086259f022da9cdeb8b3b" args="(byte *buf, ByteOrder byteOrder=invalidByteOrder) const" -->
151
<div class="memitem">
152
<div class="memproto">
153
<table class="memname">
155
<td class="memname">virtual long Exiv2::DataValue::copy </td>
157
<td class="paramtype"><a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td>
158
<td class="paramname"> <em>buf</em>, </td>
161
<td class="paramkey"></td>
163
<td class="paramtype"><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> </td>
164
<td class="paramname"> <em>byteOrder</em> = <code>invalidByteOrder</code></td><td> </td>
169
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
139
176
Write value to a character data buffer.
141
<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>
178
<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>
142
179
The user must ensure that the buffer has enough memory. Otherwise the call results in undefined behaviour.<p>
143
180
<dl compact><dt><b>Parameters:</b></dt><dd>
144
181
<table border="0" cellspacing="2" cellpadding="0">
146
183
<tr><td valign="top"></td><td valign="top"><em>byteOrder</em> </td><td>Byte order. Not needed. </td></tr>
149
<dl compact><dt><b>Returns:</b></dt><dd>Number of characters written. </dd></dl>
152
Implements <a class="el" href="classExiv2_1_1Value.html#3bf4f9c2eda4f7850a390de98668ce15">Exiv2::Value</a>. </td>
155
<a class="anchor" name="927fef988688e4b33d4fcaffb51679dc"></a><!-- doxytag: member="Exiv2::DataValue::read" ref="927fef988688e4b33d4fcaffb51679dc" args="(const byte *buf, long len, ByteOrder byteOrder=invalidByteOrder)" --><p>
156
<table class="mdTable" cellpadding="2" cellspacing="0">
159
<table cellpadding="0" cellspacing="0" border="0">
161
<td class="md" nowrap valign="top">int Exiv2::DataValue::read </td>
162
<td class="md" valign="top">( </td>
163
<td class="md" nowrap valign="top">const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td>
164
<td class="mdname" nowrap> <em>buf</em>, </td>
167
<td class="md" nowrap align="right"></td>
169
<td class="md" nowrap>long </td>
170
<td class="mdname" nowrap> <em>len</em>, </td>
173
<td class="md" nowrap align="right"></td>
175
<td class="md" nowrap><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> </td>
176
<td class="mdname" nowrap> <em>byteOrder</em> = <code>invalidByteOrder</code></td>
180
<td class="md">) </td>
181
<td class="md" colspan="2"><code> [virtual]</code></td>
187
<table cellspacing="5" cellpadding="0" border="0">
195
Read the value from a character buffer.
197
<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>
198
<dl compact><dt><b>Parameters:</b></dt><dd>
199
<table border="0" cellspacing="2" cellpadding="0">
200
<tr><td valign="top"></td><td valign="top"><em>buf</em> </td><td>Pointer to the data buffer to read from </td></tr>
201
<tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>Number of bytes in the data buffer </td></tr>
202
<tr><td valign="top"></td><td valign="top"><em>byteOrder</em> </td><td>Byte order. Not needed.</td></tr>
205
<dl compact><dt><b>Returns:</b></dt><dd>0 if successful. </dd></dl>
208
Implements <a class="el" href="classExiv2_1_1Value.html#cc8870f802ebcdf9d4e081816ad8956e">Exiv2::Value</a>. </td>
211
<a class="anchor" name="fcde22deccfcd99dba3c0754a0644ca5"></a><!-- doxytag: member="Exiv2::DataValue::toFloat" ref="fcde22deccfcd99dba3c0754a0644ca5" args="(long n=0) const " --><p>
212
<table class="mdTable" cellpadding="2" cellspacing="0">
215
<table cellpadding="0" cellspacing="0" border="0">
217
<td class="md" nowrap valign="top">virtual float Exiv2::DataValue::toFloat </td>
218
<td class="md" valign="top">( </td>
219
<td class="md" nowrap valign="top">long </td>
220
<td class="mdname1" valign="top" nowrap> <em>n</em> = <code>0</code> </td>
221
<td class="md" valign="top"> ) </td>
222
<td class="md" nowrap> const<code> [inline, virtual]</code></td>
228
<table cellspacing="5" cellpadding="0" border="0">
186
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Number of characters written. </dd></dl>
189
Implements <a class="el" href="classExiv2_1_1Value.html#712b88cbf8272da2f62483de8dc3519d">Exiv2::Value</a>.
192
<a class="anchor" name="dc7089881e2014fb7d27d473aba11a4b"></a><!-- doxytag: member="Exiv2::DataValue::toLong" ref="dc7089881e2014fb7d27d473aba11a4b" args="(long n=0) const" -->
193
<div class="memitem">
194
<div class="memproto">
195
<table class="memname">
197
<td class="memname">virtual long Exiv2::DataValue::toLong </td>
199
<td class="paramtype">long </td>
200
<td class="paramname"> <em>n</em> = <code>0</code> </td>
201
<td> ) </td>
202
<td width="100%"> const<code> [inline, virtual]</code></td>
209
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.
211
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
214
Implements <a class="el" href="classExiv2_1_1Value.html#e764f3abd43f1eaeedaf85be9c4e45f4">Exiv2::Value</a>.
217
<a class="anchor" name="1e8c9e25b6cbfed141e8dccc6fc36ede"></a><!-- doxytag: member="Exiv2::DataValue::toFloat" ref="1e8c9e25b6cbfed141e8dccc6fc36ede" args="(long n=0) const" -->
218
<div class="memitem">
219
<div class="memproto">
220
<table class="memname">
222
<td class="memname">virtual float Exiv2::DataValue::toFloat </td>
224
<td class="paramtype">long </td>
225
<td class="paramname"> <em>n</em> = <code>0</code> </td>
226
<td> ) </td>
227
<td width="100%"> const<code> [inline, virtual]</code></td>
236
234
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.
238
<dl compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
241
Implements <a class="el" href="classExiv2_1_1Value.html#22d257caa6c1ffe6416ce02de7bd8c1c">Exiv2::Value</a>. </td>
244
<a class="anchor" name="5f0c7bdb70a0135f5e608d75c75f4642"></a><!-- doxytag: member="Exiv2::DataValue::toLong" ref="5f0c7bdb70a0135f5e608d75c75f4642" args="(long n=0) const " --><p>
245
<table class="mdTable" cellpadding="2" cellspacing="0">
248
<table cellpadding="0" cellspacing="0" border="0">
250
<td class="md" nowrap valign="top">virtual long Exiv2::DataValue::toLong </td>
251
<td class="md" valign="top">( </td>
252
<td class="md" nowrap valign="top">long </td>
253
<td class="mdname1" valign="top" nowrap> <em>n</em> = <code>0</code> </td>
254
<td class="md" valign="top"> ) </td>
255
<td class="md" nowrap> const<code> [inline, virtual]</code></td>
261
<table cellspacing="5" cellpadding="0" border="0">
269
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.
271
<dl compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
274
Implements <a class="el" href="classExiv2_1_1Value.html#4530a3fc3e2305cf994de5476f46f953">Exiv2::Value</a>. </td>
277
<a class="anchor" name="3cfd0fdecb3db12c6d77c84fa4fe3de6"></a><!-- doxytag: member="Exiv2::DataValue::toRational" ref="3cfd0fdecb3db12c6d77c84fa4fe3de6" args="(long n=0) const " --><p>
278
<table class="mdTable" cellpadding="2" cellspacing="0">
281
<table cellpadding="0" cellspacing="0" border="0">
283
<td class="md" nowrap valign="top">virtual <a class="el" href="namespaceExiv2.html#95756f3f7fa19103f83addf5fa088a30">Rational</a> Exiv2::DataValue::toRational </td>
284
<td class="md" valign="top">( </td>
285
<td class="md" nowrap valign="top">long </td>
286
<td class="mdname1" valign="top" nowrap> <em>n</em> = <code>0</code> </td>
287
<td class="md" valign="top"> ) </td>
288
<td class="md" nowrap> const<code> [inline, virtual]</code></td>
294
<table cellspacing="5" cellpadding="0" border="0">
236
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
239
Implements <a class="el" href="classExiv2_1_1Value.html#4b49aea294b66e6b5e5f083210273fde">Exiv2::Value</a>.
242
<a class="anchor" name="b6065699831a706b141c91ff40e04262"></a><!-- doxytag: member="Exiv2::DataValue::toRational" ref="b6065699831a706b141c91ff40e04262" args="(long n=0) const" -->
243
<div class="memitem">
244
<div class="memproto">
245
<table class="memname">
247
<td class="memname">virtual <a class="el" href="namespaceExiv2.html#95756f3f7fa19103f83addf5fa088a30">Rational</a> Exiv2::DataValue::toRational </td>
249
<td class="paramtype">long </td>
250
<td class="paramname"> <em>n</em> = <code>0</code> </td>
251
<td> ) </td>
252
<td width="100%"> const<code> [inline, virtual]</code></td>
302
259
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.
304
<dl compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
261
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
307
Implements <a class="el" href="classExiv2_1_1Value.html#595a4cb549bec8c19d290ca3e95a2678">Exiv2::Value</a>. </td>
310
<hr>The documentation for this class was generated from the following files:<ul>
311
<li><a class="el" href="value_8hpp.html">value.hpp</a><li>value.cpp</ul>
312
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 2 23:55:38 2006 for Exiv2 by
264
Implements <a class="el" href="classExiv2_1_1Value.html#e633d9fc821a71dda86f37751c18c5d7">Exiv2::Value</a>.
267
<hr>The documentation for this class was generated from the following file:<ul>
268
<li><a class="el" href="value_8hpp.html">value.hpp</a></ul>
269
<hr size="1"><address style="align: right;"><small>Generated on Mon Nov 27 20:16:37 2006 for Exiv2 by
313
270
<a href="http://www.doxygen.org/index.html">
314
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
271
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>