~ubuntu-branches/ubuntu/precise/exiv2/precise

« back to all changes in this revision

Viewing changes to doc/html/classExiv2_1_1DataValue.html

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2006-12-07 18:40:10 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20061207184010-0ouu8v0dr8nznob9
Tags: 0.12-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
5
<link href="tabs.css" rel="stylesheet" type="text/css">
6
6
</head><body>
7
 
<!-- Generated by Doxygen 1.4.6 -->
 
7
<!-- Generated by Doxygen 1.5.1 -->
8
8
<div class="tabs">
9
9
  <ul>
10
10
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
12
    <li id="current"><a href="classes.html"><span>Classes</span></a></li>
13
13
    <li><a href="files.html"><span>Files</span></a></li>
14
14
    <li><a href="examples.html"><span>Examples</span></a></li>
 
15
    <li>
 
16
      <form action="search.php" method="get">
 
17
        <table cellspacing="0" cellpadding="0" border="0">
 
18
          <tr>
 
19
            <td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
 
20
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
 
21
          </tr>
 
22
        </table>
 
23
      </form>
 
24
    </li>
15
25
  </ul></div>
16
26
<div class="tabs">
17
27
  <ul>
29
39
<p>
30
40
Inheritance diagram for Exiv2::DataValue:<p><center><img src="classExiv2_1_1DataValue__inherit__graph.png" border="0" usemap="#Exiv2_1_1DataValue__inherit__map" alt="Inheritance graph"></center>
31
41
<map name="Exiv2_1_1DataValue__inherit__map">
32
 
<area href="classExiv2_1_1Value.html" shape="rect" coords="19,7,115,31" alt="">
 
42
<area href="classExiv2_1_1Value.html" shape="rect" coords="22,7,126,31" alt="">
33
43
</map>
34
44
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for Exiv2::DataValue:<p><center><img src="classExiv2_1_1DataValue__coll__graph.png" border="0" usemap="#Exiv2_1_1DataValue__coll__map" alt="Collaboration graph"></center>
35
45
<map name="Exiv2_1_1DataValue__coll__map">
36
 
<area href="classExiv2_1_1Value.html" shape="rect" coords="5,188,101,212" alt="">
 
46
<area href="classExiv2_1_1Value.html" shape="rect" coords="5,188,109,212" alt="">
37
47
</map>
38
48
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classExiv2_1_1DataValue-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
39
49
<tr><td></td></tr>
43
53
 
44
54
<tr><td class="mdescLeft">&nbsp;</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
 
&nbsp;</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>
49
 
 
50
 
<tr><td class="mdescLeft">&nbsp;</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
 
&nbsp;</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>
53
 
 
54
 
<tr><td class="mdescLeft">&nbsp;</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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#409c9e6564e05af3f375933cabd973cf">~DataValue</a> ()</td></tr>
57
 
 
58
 
<tr><td class="mdescLeft">&nbsp;</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 &amp;rhs)" -->
61
 
<a class="el" href="classExiv2_1_1DataValue.html">DataValue</a> &amp;&nbsp;</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> &amp;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 &amp;rhs)" -->
 
58
<a class="el" href="classExiv2_1_1DataValue.html">DataValue</a> &amp;&nbsp;</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> &amp;rhs)</td></tr>
62
59
 
63
60
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assignment operator. <br></td></tr>
64
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</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&nbsp;</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>
65
62
 
66
 
<tr><td class="mdescLeft">&nbsp;</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 &amp;buf)" -->
68
 
virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#fb8d9321e3b80c239b3a8df9b1ca4083">read</a> (const std::string &amp;buf)</td></tr>
 
63
<tr><td class="mdescLeft">&nbsp;</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 &amp;buf)" -->
 
65
virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#ad4184ffd8169a69f3c4d62d7da1a8b5">read</a> (const std::string &amp;buf)</td></tr>
69
66
 
70
67
<tr><td class="mdescLeft">&nbsp;</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>&nbsp;</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>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#b755fef63ef8c2cc2a59913a86f00d48">clone</a> () const</td></tr>
74
71
 
75
72
<tr><td class="mdescLeft">&nbsp;</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&nbsp;</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&nbsp;</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>
77
74
 
78
 
<tr><td class="mdescLeft">&nbsp;</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&nbsp;</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">&nbsp;</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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#0464f6d48f5b487ca5645a16daba7877">count</a> () const</td></tr>
81
78
 
82
79
<tr><td class="mdescLeft">&nbsp;</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&nbsp;</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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#c1a7fc0348caad77ba45e7126216983d">size</a> () const</td></tr>
85
82
 
86
83
<tr><td class="mdescLeft">&nbsp;</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 &amp;os) const " -->
88
 
virtual std::ostream &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#aabdc32e781b5d1ad83d5db6ce68c340">write</a> (std::ostream &amp;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 &amp;os) const" -->
 
85
virtual std::ostream &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#8625b50b0cf9798cf31a48920130f6cf">write</a> (std::ostream &amp;os) const</td></tr>
89
86
 
90
87
<tr><td class="mdescLeft">&nbsp;</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&lt;&lt;(std::ostream &amp;os, const Value &amp;value)</a>. <br></td></tr>
91
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#5f0c7bdb70a0135f5e608d75c75f4642">toLong</a> (long n=0) const </td></tr>
92
 
 
93
 
<tr><td class="mdescLeft">&nbsp;</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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#fcde22deccfcd99dba3c0754a0644ca5">toFloat</a> (long n=0) const </td></tr>
95
 
 
96
 
<tr><td class="mdescLeft">&nbsp;</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>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#3cfd0fdecb3db12c6d77c84fa4fe3de6">toRational</a> (long n=0) const </td></tr>
98
 
 
99
 
<tr><td class="mdescLeft">&nbsp;</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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#dc7089881e2014fb7d27d473aba11a4b">toLong</a> (long n=0) const</td></tr>
 
89
 
 
90
<tr><td class="mdescLeft">&nbsp;</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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#1e8c9e25b6cbfed141e8dccc6fc36ede">toFloat</a> (long n=0) const</td></tr>
 
92
 
 
93
<tr><td class="mdescLeft">&nbsp;</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>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#b6065699831a706b141c91ff40e04262">toRational</a> (long n=0) const</td></tr>
 
95
 
 
96
<tr><td class="mdescLeft">&nbsp;</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>
100
97
</table>
101
98
<hr><a name="_details"></a><h2>Detailed Description</h2>
102
99
Value for an undefined data type. 
103
100
<p>
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">
107
 
  <tr>
108
 
    <td class="mdRow">
109
 
      <table cellpadding="0" cellspacing="0" border="0">
110
 
        <tr>
111
 
          <td class="md" nowrap valign="top">long Exiv2::DataValue::copy           </td>
112
 
          <td class="md" valign="top">(&nbsp;</td>
113
 
          <td class="md" nowrap valign="top"><a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&nbsp;</td>
114
 
          <td class="mdname" nowrap> <em>buf</em>, </td>
115
 
        </tr>
116
 
        <tr>
117
 
          <td class="md" nowrap align="right"></td>
118
 
          <td class="md"></td>
119
 
          <td class="md" nowrap><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a>&nbsp;</td>
120
 
          <td class="mdname" nowrap> <em>byteOrder</em> = <code>invalidByteOrder</code></td>
121
 
        </tr>
122
 
        <tr>
123
 
          <td class="md"></td>
124
 
          <td class="md">)&nbsp;</td>
125
 
          <td class="md" colspan="2"> const<code> [virtual]</code></td>
126
 
        </tr>
127
 
      </table>
128
 
    </td>
129
 
  </tr>
130
 
</table>
131
 
<table cellspacing="5" cellpadding="0" border="0">
132
 
  <tr>
133
 
    <td>
134
 
      &nbsp;
135
 
    </td>
136
 
    <td>
 
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">
 
106
        <tr>
 
107
          <td class="memname">virtual int Exiv2::DataValue::read           </td>
 
108
          <td>(</td>
 
109
          <td class="paramtype">const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&nbsp;</td>
 
110
          <td class="paramname"> <em>buf</em>, </td>
 
111
        </tr>
 
112
        <tr>
 
113
          <td class="paramkey"></td>
 
114
          <td></td>
 
115
          <td class="paramtype">long&nbsp;</td>
 
116
          <td class="paramname"> <em>len</em>, </td>
 
117
        </tr>
 
118
        <tr>
 
119
          <td class="paramkey"></td>
 
120
          <td></td>
 
121
          <td class="paramtype"><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a>&nbsp;</td>
 
122
          <td class="paramname"> <em>byteOrder</em> = <code>invalidByteOrder</code></td><td>&nbsp;</td>
 
123
        </tr>
 
124
        <tr>
 
125
          <td></td>
 
126
          <td>)</td>
 
127
          <td></td><td></td><td width="100%"><code> [virtual]</code></td>
 
128
        </tr>
 
129
      </table>
 
130
</div>
 
131
<div class="memdoc">
 
132
 
 
133
<p>
 
134
Read the value from a character buffer. 
 
135
<p>
 
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>&nbsp;</td><td>Pointer to the data buffer to read from </td></tr>
 
140
    <tr><td valign="top"></td><td valign="top"><em>len</em>&nbsp;</td><td>Number of bytes in the data buffer </td></tr>
 
141
    <tr><td valign="top"></td><td valign="top"><em>byteOrder</em>&nbsp;</td><td>Byte order. Not needed.</td></tr>
 
142
  </table>
 
143
</dl>
 
144
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if successful. </dd></dl>
 
145
 
 
146
<p>
 
147
Implements <a class="el" href="classExiv2_1_1Value.html#cc8870f802ebcdf9d4e081816ad8956e">Exiv2::Value</a>.
 
148
</div>
 
149
</div><p>
 
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">
 
154
        <tr>
 
155
          <td class="memname">virtual long Exiv2::DataValue::copy           </td>
 
156
          <td>(</td>
 
157
          <td class="paramtype"><a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&nbsp;</td>
 
158
          <td class="paramname"> <em>buf</em>, </td>
 
159
        </tr>
 
160
        <tr>
 
161
          <td class="paramkey"></td>
 
162
          <td></td>
 
163
          <td class="paramtype"><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a>&nbsp;</td>
 
164
          <td class="paramname"> <em>byteOrder</em> = <code>invalidByteOrder</code></td><td>&nbsp;</td>
 
165
        </tr>
 
166
        <tr>
 
167
          <td></td>
 
168
          <td>)</td>
 
169
          <td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
 
170
        </tr>
 
171
      </table>
 
172
</div>
 
173
<div class="memdoc">
137
174
 
138
175
<p>
139
176
Write value to a character data buffer. 
140
177
<p>
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>&nbsp;</td><td>Byte order. Not needed. </td></tr>
147
184
  </table>
148
185
</dl>
149
 
<dl compact><dt><b>Returns:</b></dt><dd>Number of characters written. </dd></dl>
150
 
 
151
 
<p>
152
 
Implements <a class="el" href="classExiv2_1_1Value.html#3bf4f9c2eda4f7850a390de98668ce15">Exiv2::Value</a>.    </td>
153
 
  </tr>
154
 
</table>
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">
157
 
  <tr>
158
 
    <td class="mdRow">
159
 
      <table cellpadding="0" cellspacing="0" border="0">
160
 
        <tr>
161
 
          <td class="md" nowrap valign="top">int Exiv2::DataValue::read           </td>
162
 
          <td class="md" valign="top">(&nbsp;</td>
163
 
          <td class="md" nowrap valign="top">const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&nbsp;</td>
164
 
          <td class="mdname" nowrap> <em>buf</em>, </td>
165
 
        </tr>
166
 
        <tr>
167
 
          <td class="md" nowrap align="right"></td>
168
 
          <td class="md"></td>
169
 
          <td class="md" nowrap>long&nbsp;</td>
170
 
          <td class="mdname" nowrap> <em>len</em>, </td>
171
 
        </tr>
172
 
        <tr>
173
 
          <td class="md" nowrap align="right"></td>
174
 
          <td class="md"></td>
175
 
          <td class="md" nowrap><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a>&nbsp;</td>
176
 
          <td class="mdname" nowrap> <em>byteOrder</em> = <code>invalidByteOrder</code></td>
177
 
        </tr>
178
 
        <tr>
179
 
          <td class="md"></td>
180
 
          <td class="md">)&nbsp;</td>
181
 
          <td class="md" colspan="2"><code> [virtual]</code></td>
182
 
        </tr>
183
 
      </table>
184
 
    </td>
185
 
  </tr>
186
 
</table>
187
 
<table cellspacing="5" cellpadding="0" border="0">
188
 
  <tr>
189
 
    <td>
190
 
      &nbsp;
191
 
    </td>
192
 
    <td>
193
 
 
194
 
<p>
195
 
Read the value from a character buffer. 
196
 
<p>
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>&nbsp;</td><td>Pointer to the data buffer to read from </td></tr>
201
 
    <tr><td valign="top"></td><td valign="top"><em>len</em>&nbsp;</td><td>Number of bytes in the data buffer </td></tr>
202
 
    <tr><td valign="top"></td><td valign="top"><em>byteOrder</em>&nbsp;</td><td>Byte order. Not needed.</td></tr>
203
 
  </table>
204
 
</dl>
205
 
<dl compact><dt><b>Returns:</b></dt><dd>0 if successful. </dd></dl>
206
 
 
207
 
<p>
208
 
Implements <a class="el" href="classExiv2_1_1Value.html#cc8870f802ebcdf9d4e081816ad8956e">Exiv2::Value</a>.    </td>
209
 
  </tr>
210
 
</table>
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">
213
 
  <tr>
214
 
    <td class="mdRow">
215
 
      <table cellpadding="0" cellspacing="0" border="0">
216
 
        <tr>
217
 
          <td class="md" nowrap valign="top">virtual float Exiv2::DataValue::toFloat           </td>
218
 
          <td class="md" valign="top">(&nbsp;</td>
219
 
          <td class="md" nowrap valign="top">long&nbsp;</td>
220
 
          <td class="mdname1" valign="top" nowrap> <em>n</em> = <code>0</code>          </td>
221
 
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
222
 
          <td class="md" nowrap> const<code> [inline, virtual]</code></td>
223
 
        </tr>
224
 
      </table>
225
 
    </td>
226
 
  </tr>
227
 
</table>
228
 
<table cellspacing="5" cellpadding="0" border="0">
229
 
  <tr>
230
 
    <td>
231
 
      &nbsp;
232
 
    </td>
233
 
    <td>
 
186
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Number of characters written. </dd></dl>
 
187
 
 
188
<p>
 
189
Implements <a class="el" href="classExiv2_1_1Value.html#712b88cbf8272da2f62483de8dc3519d">Exiv2::Value</a>.
 
190
</div>
 
191
</div><p>
 
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">
 
196
        <tr>
 
197
          <td class="memname">virtual long Exiv2::DataValue::toLong           </td>
 
198
          <td>(</td>
 
199
          <td class="paramtype">long&nbsp;</td>
 
200
          <td class="paramname"> <em>n</em> = <code>0</code>          </td>
 
201
          <td>&nbsp;)&nbsp;</td>
 
202
          <td width="100%"> const<code> [inline, virtual]</code></td>
 
203
        </tr>
 
204
      </table>
 
205
</div>
 
206
<div class="memdoc">
 
207
 
 
208
<p>
 
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. 
 
210
<p>
 
211
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
 
212
 
 
213
<p>
 
214
Implements <a class="el" href="classExiv2_1_1Value.html#e764f3abd43f1eaeedaf85be9c4e45f4">Exiv2::Value</a>.
 
215
</div>
 
216
</div><p>
 
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">
 
221
        <tr>
 
222
          <td class="memname">virtual float Exiv2::DataValue::toFloat           </td>
 
223
          <td>(</td>
 
224
          <td class="paramtype">long&nbsp;</td>
 
225
          <td class="paramname"> <em>n</em> = <code>0</code>          </td>
 
226
          <td>&nbsp;)&nbsp;</td>
 
227
          <td width="100%"> const<code> [inline, virtual]</code></td>
 
228
        </tr>
 
229
      </table>
 
230
</div>
 
231
<div class="memdoc">
234
232
 
235
233
<p>
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. 
237
235
<p>
238
 
<dl compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
239
 
 
240
 
<p>
241
 
Implements <a class="el" href="classExiv2_1_1Value.html#22d257caa6c1ffe6416ce02de7bd8c1c">Exiv2::Value</a>.    </td>
242
 
  </tr>
243
 
</table>
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">
246
 
  <tr>
247
 
    <td class="mdRow">
248
 
      <table cellpadding="0" cellspacing="0" border="0">
249
 
        <tr>
250
 
          <td class="md" nowrap valign="top">virtual long Exiv2::DataValue::toLong           </td>
251
 
          <td class="md" valign="top">(&nbsp;</td>
252
 
          <td class="md" nowrap valign="top">long&nbsp;</td>
253
 
          <td class="mdname1" valign="top" nowrap> <em>n</em> = <code>0</code>          </td>
254
 
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
255
 
          <td class="md" nowrap> const<code> [inline, virtual]</code></td>
256
 
        </tr>
257
 
      </table>
258
 
    </td>
259
 
  </tr>
260
 
</table>
261
 
<table cellspacing="5" cellpadding="0" border="0">
262
 
  <tr>
263
 
    <td>
264
 
      &nbsp;
265
 
    </td>
266
 
    <td>
267
 
 
268
 
<p>
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. 
270
 
<p>
271
 
<dl compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
272
 
 
273
 
<p>
274
 
Implements <a class="el" href="classExiv2_1_1Value.html#4530a3fc3e2305cf994de5476f46f953">Exiv2::Value</a>.    </td>
275
 
  </tr>
276
 
</table>
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">
279
 
  <tr>
280
 
    <td class="mdRow">
281
 
      <table cellpadding="0" cellspacing="0" border="0">
282
 
        <tr>
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">(&nbsp;</td>
285
 
          <td class="md" nowrap valign="top">long&nbsp;</td>
286
 
          <td class="mdname1" valign="top" nowrap> <em>n</em> = <code>0</code>          </td>
287
 
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
288
 
          <td class="md" nowrap> const<code> [inline, virtual]</code></td>
289
 
        </tr>
290
 
      </table>
291
 
    </td>
292
 
  </tr>
293
 
</table>
294
 
<table cellspacing="5" cellpadding="0" border="0">
295
 
  <tr>
296
 
    <td>
297
 
      &nbsp;
298
 
    </td>
299
 
    <td>
 
236
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
 
237
 
 
238
<p>
 
239
Implements <a class="el" href="classExiv2_1_1Value.html#4b49aea294b66e6b5e5f083210273fde">Exiv2::Value</a>.
 
240
</div>
 
241
</div><p>
 
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">
 
246
        <tr>
 
247
          <td class="memname">virtual <a class="el" href="namespaceExiv2.html#95756f3f7fa19103f83addf5fa088a30">Rational</a> Exiv2::DataValue::toRational           </td>
 
248
          <td>(</td>
 
249
          <td class="paramtype">long&nbsp;</td>
 
250
          <td class="paramname"> <em>n</em> = <code>0</code>          </td>
 
251
          <td>&nbsp;)&nbsp;</td>
 
252
          <td width="100%"> const<code> [inline, virtual]</code></td>
 
253
        </tr>
 
254
      </table>
 
255
</div>
 
256
<div class="memdoc">
300
257
 
301
258
<p>
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. 
303
260
<p>
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>
305
262
 
306
263
<p>
307
 
Implements <a class="el" href="classExiv2_1_1Value.html#595a4cb549bec8c19d290ca3e95a2678">Exiv2::Value</a>.    </td>
308
 
  </tr>
309
 
</table>
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&nbsp;
 
264
Implements <a class="el" href="classExiv2_1_1Value.html#e633d9fc821a71dda86f37751c18c5d7">Exiv2::Value</a>.
 
265
</div>
 
266
</div><p>
 
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&nbsp;
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>
315
272
</body>
316
273
</html>