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

« back to all changes in this revision

Viewing changes to doc/html/classExiv2_1_1StringValueBase.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::StringValueBase:<p><center><img src="classExiv2_1_1StringValueBase__inherit__graph.png" border="0" usemap="#Exiv2_1_1StringValueBase__inherit__map" alt="Inheritance graph"></center>
31
41
<map name="Exiv2_1_1StringValueBase__inherit__map">
32
 
<area href="classExiv2_1_1AsciiValue.html" shape="rect" coords="6,156,128,180" alt="">
33
 
<area href="classExiv2_1_1CommentValue.html" shape="rect" coords="152,156,307,180" alt="">
34
 
<area href="classExiv2_1_1StringValue.html" shape="rect" coords="331,156,462,180" alt="">
35
 
<area href="classExiv2_1_1Value.html" shape="rect" coords="182,7,278,31" alt="">
 
42
<area href="classExiv2_1_1AsciiValue.html" shape="rect" coords="5,156,141,180" alt="">
 
43
<area href="classExiv2_1_1CommentValue.html" shape="rect" coords="165,156,336,180" alt="">
 
44
<area href="classExiv2_1_1StringValue.html" shape="rect" coords="360,156,507,180" alt="">
 
45
<area href="classExiv2_1_1Value.html" shape="rect" coords="199,7,303,31" alt="">
36
46
</map>
37
47
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for Exiv2::StringValueBase:<p><center><img src="classExiv2_1_1StringValueBase__coll__graph.png" border="0" usemap="#Exiv2_1_1StringValueBase__coll__map" alt="Collaboration graph"></center>
38
48
<map name="Exiv2_1_1StringValueBase__coll__map">
39
 
<area href="classExiv2_1_1Value.html" shape="rect" coords="5,175,101,199" alt="">
 
49
<area href="classExiv2_1_1Value.html" shape="rect" coords="5,175,109,199" alt="">
40
50
</map>
41
51
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classExiv2_1_1StringValueBase-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
42
52
<tr><td></td></tr>
46
56
 
47
57
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Shortcut for a StringValueBase auto pointer. <br></td></tr>
48
58
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
49
 
<tr><td colspan="2"><div class="groupHeader">Creators</div></td></tr>
50
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5787c8e04b3cec1870b3abd95d15ea6b"></a><!-- doxytag: member="Exiv2::StringValueBase::StringValueBase" ref="5787c8e04b3cec1870b3abd95d15ea6b" args="(TypeId typeId)" -->
51
 
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#5787c8e04b3cec1870b3abd95d15ea6b">StringValueBase</a> (<a class="el" href="namespaceExiv2.html#5153319711f35fe81cbc13f4b852450c">TypeId</a> typeId)</td></tr>
52
 
 
53
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor for subclasses. <br></td></tr>
54
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="837785dfc0f3561c939c2a9b4224ceb0"></a><!-- doxytag: member="Exiv2::StringValueBase::StringValueBase" ref="837785dfc0f3561c939c2a9b4224ceb0" args="(TypeId typeId, const std::string &amp;buf)" -->
55
 
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#837785dfc0f3561c939c2a9b4224ceb0">StringValueBase</a> (<a class="el" href="namespaceExiv2.html#5153319711f35fe81cbc13f4b852450c">TypeId</a> typeId, const std::string &amp;buf)</td></tr>
56
 
 
57
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor for subclasses. <br></td></tr>
58
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dba0f1f9e5ca8e2873d0b2815786f99e"></a><!-- doxytag: member="Exiv2::StringValueBase::StringValueBase" ref="dba0f1f9e5ca8e2873d0b2815786f99e" args="(const StringValueBase &amp;rhs)" -->
59
 
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#dba0f1f9e5ca8e2873d0b2815786f99e">StringValueBase</a> (const <a class="el" href="classExiv2_1_1StringValueBase.html">StringValueBase</a> &amp;rhs)</td></tr>
60
 
 
61
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor. <br></td></tr>
62
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2ac242f851ece0249691464db664e4e8"></a><!-- doxytag: member="Exiv2::StringValueBase::~StringValueBase" ref="2ac242f851ece0249691464db664e4e8" args="()" -->
63
 
virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#2ac242f851ece0249691464db664e4e8">~StringValueBase</a> ()</td></tr>
64
 
 
65
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Virtual destructor. <br></td></tr>
66
59
<tr><td colspan="2"><div class="groupHeader">Manipulators</div></td></tr>
67
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="63dbdd58d31e39e7803445931f18d701"></a><!-- doxytag: member="Exiv2::StringValueBase::operator=" ref="63dbdd58d31e39e7803445931f18d701" args="(const StringValueBase &amp;rhs)" -->
68
 
<a class="el" href="classExiv2_1_1StringValueBase.html">StringValueBase</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#63dbdd58d31e39e7803445931f18d701">operator=</a> (const <a class="el" href="classExiv2_1_1StringValueBase.html">StringValueBase</a> &amp;rhs)</td></tr>
 
60
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="281c13e6b4b440fa2eac1cc62cde3acd"></a><!-- doxytag: member="Exiv2::StringValueBase::operator=" ref="281c13e6b4b440fa2eac1cc62cde3acd" args="(const StringValueBase &amp;rhs)" -->
 
61
<a class="el" href="classExiv2_1_1StringValueBase.html">StringValueBase</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#281c13e6b4b440fa2eac1cc62cde3acd">operator=</a> (const <a class="el" href="classExiv2_1_1StringValueBase.html">StringValueBase</a> &amp;rhs)</td></tr>
69
62
 
70
63
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assignment operator. <br></td></tr>
71
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7e1a2e4e99a63eb1ef815317f012c57b"></a><!-- doxytag: member="Exiv2::StringValueBase::read" ref="7e1a2e4e99a63eb1ef815317f012c57b" args="(const std::string &amp;buf)" -->
72
 
virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#7e1a2e4e99a63eb1ef815317f012c57b">read</a> (const std::string &amp;buf)</td></tr>
 
64
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6882ba90138a30fcf2123c74f928a75e"></a><!-- doxytag: member="Exiv2::StringValueBase::read" ref="6882ba90138a30fcf2123c74f928a75e" args="(const std::string &amp;buf)" -->
 
65
virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#6882ba90138a30fcf2123c74f928a75e">read</a> (const std::string &amp;buf)</td></tr>
73
66
 
74
67
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Read the value from buf. This default implementation uses buf as it is. <br></td></tr>
75
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#b43f48f366770175d7a07ad229ebbd2d">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>
 
68
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#ae2b6c108c891670a4ee873946aedfea">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>
76
69
 
77
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Read the value from a character buffer.  <a href="#b43f48f366770175d7a07ad229ebbd2d"></a><br></td></tr>
 
70
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Read the value from a character buffer.  <a href="#ae2b6c108c891670a4ee873946aedfea"></a><br></td></tr>
78
71
<tr><td colspan="2"><div class="groupHeader">Accessors</div></td></tr>
79
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a415b8fb5420125c8003870cb397f1b6"></a><!-- doxytag: member="Exiv2::StringValueBase::clone" ref="a415b8fb5420125c8003870cb397f1b6" args="() const " -->
80
 
<a class="el" href="classExiv2_1_1StringValueBase.html#690234b43e80adc70a6c7ee5106e5326">AutoPtr</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#a415b8fb5420125c8003870cb397f1b6">clone</a> () const </td></tr>
 
72
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3b67027347c490c921060c1bbbe35f8"></a><!-- doxytag: member="Exiv2::StringValueBase::clone" ref="a3b67027347c490c921060c1bbbe35f8" args="() const" -->
 
73
<a class="el" href="classExiv2_1_1Value.html#0f62e585b82c97738858b743e60dff21">AutoPtr</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#a3b67027347c490c921060c1bbbe35f8">clone</a> () const</td></tr>
81
74
 
82
75
<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>
83
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#68503471612daaf314f4b70e2216ef3b">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>
 
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_1StringValueBase.html#202991e08046796657e14eb016757d56">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>
84
77
 
85
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Write value to a character data buffer.  <a href="#68503471612daaf314f4b70e2216ef3b"></a><br></td></tr>
86
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cab779c35ec7636a52ce77ad52e95a42"></a><!-- doxytag: member="Exiv2::StringValueBase::count" ref="cab779c35ec7636a52ce77ad52e95a42" args="() const " -->
87
 
virtual long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#cab779c35ec7636a52ce77ad52e95a42">count</a> () const </td></tr>
 
78
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Write value to a character data buffer.  <a href="#202991e08046796657e14eb016757d56"></a><br></td></tr>
 
79
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a463b14ecd57f5f45e864c4c31ce1516"></a><!-- doxytag: member="Exiv2::StringValueBase::count" ref="a463b14ecd57f5f45e864c4c31ce1516" args="() const" -->
 
80
virtual long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#a463b14ecd57f5f45e864c4c31ce1516">count</a> () const</td></tr>
88
81
 
89
82
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the number of components of the value. <br></td></tr>
90
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="893d78447a12cc30f1a2e5da2b1c9e7e"></a><!-- doxytag: member="Exiv2::StringValueBase::size" ref="893d78447a12cc30f1a2e5da2b1c9e7e" args="() const " -->
91
 
virtual long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#893d78447a12cc30f1a2e5da2b1c9e7e">size</a> () const </td></tr>
 
83
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fdf03548c974824ae53157ca3d6efd8e"></a><!-- doxytag: member="Exiv2::StringValueBase::size" ref="fdf03548c974824ae53157ca3d6efd8e" args="() const" -->
 
84
virtual long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#fdf03548c974824ae53157ca3d6efd8e">size</a> () const</td></tr>
92
85
 
93
86
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the size of the value in bytes. <br></td></tr>
94
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#14727751ab89f415781402d9f3b087f1">toLong</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 long. The behaviour of this method may be undefined if there is no n-th component.  <a href="#14727751ab89f415781402d9f3b087f1"></a><br></td></tr>
97
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#5ebf7bd7e0077ac4ee517f72145fe711">toFloat</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 float. The behaviour of this method may be undefined if there is no n-th component.  <a href="#5ebf7bd7e0077ac4ee517f72145fe711"></a><br></td></tr>
100
 
<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_1StringValueBase.html#d7ffbf58cb0496d3ad4b13e46ee8a29e">toRational</a> (long n=0) const </td></tr>
101
 
 
102
 
<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="#d7ffbf58cb0496d3ad4b13e46ee8a29e"></a><br></td></tr>
103
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cd6e46c7dbd429b137494ef0329d7335"></a><!-- doxytag: member="Exiv2::StringValueBase::write" ref="cd6e46c7dbd429b137494ef0329d7335" args="(std::ostream &amp;os) const " -->
104
 
virtual std::ostream &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#cd6e46c7dbd429b137494ef0329d7335">write</a> (std::ostream &amp;os) const </td></tr>
 
87
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#b02402d1d2c91f7aa38ca1edc2fe7664">toLong</a> (long n=0) const</td></tr>
 
88
 
 
89
<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="#b02402d1d2c91f7aa38ca1edc2fe7664"></a><br></td></tr>
 
90
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#7c515672cb1d6b1fddb10ca328c63dc8">toFloat</a> (long n=0) const</td></tr>
 
91
 
 
92
<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="#7c515672cb1d6b1fddb10ca328c63dc8"></a><br></td></tr>
 
93
<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_1StringValueBase.html#cd31553093967446fde0e382cd2e48ed">toRational</a> (long n=0) const</td></tr>
 
94
 
 
95
<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="#cd31553093967446fde0e382cd2e48ed"></a><br></td></tr>
 
96
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4b11ede405fee0bfb8d27acf6e03522c"></a><!-- doxytag: member="Exiv2::StringValueBase::write" ref="4b11ede405fee0bfb8d27acf6e03522c" args="(std::ostream &amp;os) const" -->
 
97
virtual std::ostream &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#4b11ede405fee0bfb8d27acf6e03522c">write</a> (std::ostream &amp;os) const</td></tr>
105
98
 
106
99
<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>
107
100
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
108
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bcaab81321b73e00ae6062e0dee93e81"></a><!-- doxytag: member="Exiv2::StringValueBase::clone_" ref="bcaab81321b73e00ae6062e0dee93e81" args="() const =0" -->
109
 
virtual <a class="el" href="classExiv2_1_1StringValueBase.html">StringValueBase</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#bcaab81321b73e00ae6062e0dee93e81">clone_</a> () const =0</td></tr>
 
101
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ab8f966519670820fb2ffb9f511d2baf"></a><!-- doxytag: member="Exiv2::StringValueBase::clone_" ref="ab8f966519670820fb2ffb9f511d2baf" args="() const=0" -->
 
102
virtual <a class="el" href="classExiv2_1_1StringValueBase.html">StringValueBase</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1StringValueBase.html#ab8f966519670820fb2ffb9f511d2baf">clone_</a> () const=0</td></tr>
110
103
 
111
104
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Internal virtual copy constructor. <br></td></tr>
112
105
<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
121
114
Uses a std::string to store the value and implements defaults for most operations. 
122
115
<p>
123
116
<hr><h2>Member Function Documentation</h2>
124
 
<a class="anchor" name="68503471612daaf314f4b70e2216ef3b"></a><!-- doxytag: member="Exiv2::StringValueBase::copy" ref="68503471612daaf314f4b70e2216ef3b" args="(byte *buf, ByteOrder byteOrder=invalidByteOrder) const " --><p>
125
 
<table class="mdTable" cellpadding="2" cellspacing="0">
126
 
  <tr>
127
 
    <td class="mdRow">
128
 
      <table cellpadding="0" cellspacing="0" border="0">
129
 
        <tr>
130
 
          <td class="md" nowrap valign="top">long Exiv2::StringValueBase::copy           </td>
131
 
          <td class="md" valign="top">(&nbsp;</td>
132
 
          <td class="md" nowrap valign="top"><a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&nbsp;</td>
133
 
          <td class="mdname" nowrap> <em>buf</em>, </td>
134
 
        </tr>
135
 
        <tr>
136
 
          <td class="md" nowrap align="right"></td>
137
 
          <td class="md"></td>
138
 
          <td class="md" nowrap><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a>&nbsp;</td>
139
 
          <td class="mdname" nowrap> <em>byteOrder</em> = <code>invalidByteOrder</code></td>
140
 
        </tr>
141
 
        <tr>
142
 
          <td class="md"></td>
143
 
          <td class="md">)&nbsp;</td>
144
 
          <td class="md" colspan="2"> const<code> [virtual]</code></td>
145
 
        </tr>
146
 
      </table>
147
 
    </td>
148
 
  </tr>
149
 
</table>
150
 
<table cellspacing="5" cellpadding="0" border="0">
151
 
  <tr>
152
 
    <td>
153
 
      &nbsp;
154
 
    </td>
155
 
    <td>
 
117
<a class="anchor" name="ae2b6c108c891670a4ee873946aedfea"></a><!-- doxytag: member="Exiv2::StringValueBase::read" ref="ae2b6c108c891670a4ee873946aedfea" args="(const byte *buf, long len, ByteOrder byteOrder=invalidByteOrder)" -->
 
118
<div class="memitem">
 
119
<div class="memproto">
 
120
      <table class="memname">
 
121
        <tr>
 
122
          <td class="memname">virtual int Exiv2::StringValueBase::read           </td>
 
123
          <td>(</td>
 
124
          <td class="paramtype">const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&nbsp;</td>
 
125
          <td class="paramname"> <em>buf</em>, </td>
 
126
        </tr>
 
127
        <tr>
 
128
          <td class="paramkey"></td>
 
129
          <td></td>
 
130
          <td class="paramtype">long&nbsp;</td>
 
131
          <td class="paramname"> <em>len</em>, </td>
 
132
        </tr>
 
133
        <tr>
 
134
          <td class="paramkey"></td>
 
135
          <td></td>
 
136
          <td class="paramtype"><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a>&nbsp;</td>
 
137
          <td class="paramname"> <em>byteOrder</em> = <code>invalidByteOrder</code></td><td>&nbsp;</td>
 
138
        </tr>
 
139
        <tr>
 
140
          <td></td>
 
141
          <td>)</td>
 
142
          <td></td><td></td><td width="100%"><code> [virtual]</code></td>
 
143
        </tr>
 
144
      </table>
 
145
</div>
 
146
<div class="memdoc">
 
147
 
 
148
<p>
 
149
Read the value from a character buffer. 
 
150
<p>
 
151
<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>
 
152
<dl compact><dt><b>Parameters:</b></dt><dd>
 
153
  <table border="0" cellspacing="2" cellpadding="0">
 
154
    <tr><td valign="top"></td><td valign="top"><em>buf</em>&nbsp;</td><td>Pointer to the data buffer to read from </td></tr>
 
155
    <tr><td valign="top"></td><td valign="top"><em>len</em>&nbsp;</td><td>Number of bytes in the data buffer </td></tr>
 
156
    <tr><td valign="top"></td><td valign="top"><em>byteOrder</em>&nbsp;</td><td>Byte order. Not needed.</td></tr>
 
157
  </table>
 
158
</dl>
 
159
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if successful. </dd></dl>
 
160
 
 
161
<p>
 
162
Implements <a class="el" href="classExiv2_1_1Value.html#cc8870f802ebcdf9d4e081816ad8956e">Exiv2::Value</a>.
 
163
</div>
 
164
</div><p>
 
165
<a class="anchor" name="202991e08046796657e14eb016757d56"></a><!-- doxytag: member="Exiv2::StringValueBase::copy" ref="202991e08046796657e14eb016757d56" args="(byte *buf, ByteOrder byteOrder=invalidByteOrder) const" -->
 
166
<div class="memitem">
 
167
<div class="memproto">
 
168
      <table class="memname">
 
169
        <tr>
 
170
          <td class="memname">virtual long Exiv2::StringValueBase::copy           </td>
 
171
          <td>(</td>
 
172
          <td class="paramtype"><a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&nbsp;</td>
 
173
          <td class="paramname"> <em>buf</em>, </td>
 
174
        </tr>
 
175
        <tr>
 
176
          <td class="paramkey"></td>
 
177
          <td></td>
 
178
          <td class="paramtype"><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a>&nbsp;</td>
 
179
          <td class="paramname"> <em>byteOrder</em> = <code>invalidByteOrder</code></td><td>&nbsp;</td>
 
180
        </tr>
 
181
        <tr>
 
182
          <td></td>
 
183
          <td>)</td>
 
184
          <td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
 
185
        </tr>
 
186
      </table>
 
187
</div>
 
188
<div class="memdoc">
156
189
 
157
190
<p>
158
191
Write value to a character data buffer. 
159
192
<p>
160
193
The user must ensure that the buffer has enough memory. Otherwise the call results in undefined behaviour.<p>
161
 
<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>
 
194
<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>
162
195
<dl compact><dt><b>Parameters:</b></dt><dd>
163
196
  <table border="0" cellspacing="2" cellpadding="0">
164
197
    <tr><td valign="top"></td><td valign="top"><em>buf</em>&nbsp;</td><td>Data buffer to write to. </td></tr>
165
198
    <tr><td valign="top"></td><td valign="top"><em>byteOrder</em>&nbsp;</td><td>Byte order. Not used. </td></tr>
166
199
  </table>
167
200
</dl>
168
 
<dl compact><dt><b>Returns:</b></dt><dd>Number of characters written. </dd></dl>
169
 
 
170
 
<p>
171
 
Implements <a class="el" href="classExiv2_1_1Value.html#3bf4f9c2eda4f7850a390de98668ce15">Exiv2::Value</a>.    </td>
172
 
  </tr>
173
 
</table>
174
 
<a class="anchor" name="b43f48f366770175d7a07ad229ebbd2d"></a><!-- doxytag: member="Exiv2::StringValueBase::read" ref="b43f48f366770175d7a07ad229ebbd2d" args="(const byte *buf, long len, ByteOrder byteOrder=invalidByteOrder)" --><p>
175
 
<table class="mdTable" cellpadding="2" cellspacing="0">
176
 
  <tr>
177
 
    <td class="mdRow">
178
 
      <table cellpadding="0" cellspacing="0" border="0">
179
 
        <tr>
180
 
          <td class="md" nowrap valign="top">int Exiv2::StringValueBase::read           </td>
181
 
          <td class="md" valign="top">(&nbsp;</td>
182
 
          <td class="md" nowrap valign="top">const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&nbsp;</td>
183
 
          <td class="mdname" nowrap> <em>buf</em>, </td>
184
 
        </tr>
185
 
        <tr>
186
 
          <td class="md" nowrap align="right"></td>
187
 
          <td class="md"></td>
188
 
          <td class="md" nowrap>long&nbsp;</td>
189
 
          <td class="mdname" nowrap> <em>len</em>, </td>
190
 
        </tr>
191
 
        <tr>
192
 
          <td class="md" nowrap align="right"></td>
193
 
          <td class="md"></td>
194
 
          <td class="md" nowrap><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a>&nbsp;</td>
195
 
          <td class="mdname" nowrap> <em>byteOrder</em> = <code>invalidByteOrder</code></td>
196
 
        </tr>
197
 
        <tr>
198
 
          <td class="md"></td>
199
 
          <td class="md">)&nbsp;</td>
200
 
          <td class="md" colspan="2"><code> [virtual]</code></td>
201
 
        </tr>
202
 
      </table>
203
 
    </td>
204
 
  </tr>
205
 
</table>
206
 
<table cellspacing="5" cellpadding="0" border="0">
207
 
  <tr>
208
 
    <td>
209
 
      &nbsp;
210
 
    </td>
211
 
    <td>
212
 
 
213
 
<p>
214
 
Read the value from a character buffer. 
215
 
<p>
216
 
<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>
217
 
<dl compact><dt><b>Parameters:</b></dt><dd>
218
 
  <table border="0" cellspacing="2" cellpadding="0">
219
 
    <tr><td valign="top"></td><td valign="top"><em>buf</em>&nbsp;</td><td>Pointer to the data buffer to read from </td></tr>
220
 
    <tr><td valign="top"></td><td valign="top"><em>len</em>&nbsp;</td><td>Number of bytes in the data buffer </td></tr>
221
 
    <tr><td valign="top"></td><td valign="top"><em>byteOrder</em>&nbsp;</td><td>Byte order. Not needed.</td></tr>
222
 
  </table>
223
 
</dl>
224
 
<dl compact><dt><b>Returns:</b></dt><dd>0 if successful. </dd></dl>
225
 
 
226
 
<p>
227
 
Implements <a class="el" href="classExiv2_1_1Value.html#cc8870f802ebcdf9d4e081816ad8956e">Exiv2::Value</a>.    </td>
228
 
  </tr>
229
 
</table>
230
 
<a class="anchor" name="5ebf7bd7e0077ac4ee517f72145fe711"></a><!-- doxytag: member="Exiv2::StringValueBase::toFloat" ref="5ebf7bd7e0077ac4ee517f72145fe711" args="(long n=0) const " --><p>
231
 
<table class="mdTable" cellpadding="2" cellspacing="0">
232
 
  <tr>
233
 
    <td class="mdRow">
234
 
      <table cellpadding="0" cellspacing="0" border="0">
235
 
        <tr>
236
 
          <td class="md" nowrap valign="top">virtual float Exiv2::StringValueBase::toFloat           </td>
237
 
          <td class="md" valign="top">(&nbsp;</td>
238
 
          <td class="md" nowrap valign="top">long&nbsp;</td>
239
 
          <td class="mdname1" valign="top" nowrap> <em>n</em> = <code>0</code>          </td>
240
 
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
241
 
          <td class="md" nowrap> const<code> [inline, virtual]</code></td>
242
 
        </tr>
243
 
      </table>
244
 
    </td>
245
 
  </tr>
246
 
</table>
247
 
<table cellspacing="5" cellpadding="0" border="0">
248
 
  <tr>
249
 
    <td>
250
 
      &nbsp;
251
 
    </td>
252
 
    <td>
 
201
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Number of characters written. </dd></dl>
 
202
 
 
203
<p>
 
204
Implements <a class="el" href="classExiv2_1_1Value.html#712b88cbf8272da2f62483de8dc3519d">Exiv2::Value</a>.
 
205
</div>
 
206
</div><p>
 
207
<a class="anchor" name="b02402d1d2c91f7aa38ca1edc2fe7664"></a><!-- doxytag: member="Exiv2::StringValueBase::toLong" ref="b02402d1d2c91f7aa38ca1edc2fe7664" args="(long n=0) const" -->
 
208
<div class="memitem">
 
209
<div class="memproto">
 
210
      <table class="memname">
 
211
        <tr>
 
212
          <td class="memname">virtual long Exiv2::StringValueBase::toLong           </td>
 
213
          <td>(</td>
 
214
          <td class="paramtype">long&nbsp;</td>
 
215
          <td class="paramname"> <em>n</em> = <code>0</code>          </td>
 
216
          <td>&nbsp;)&nbsp;</td>
 
217
          <td width="100%"> const<code> [inline, virtual]</code></td>
 
218
        </tr>
 
219
      </table>
 
220
</div>
 
221
<div class="memdoc">
 
222
 
 
223
<p>
 
224
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. 
 
225
<p>
 
226
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
 
227
 
 
228
<p>
 
229
Implements <a class="el" href="classExiv2_1_1Value.html#e764f3abd43f1eaeedaf85be9c4e45f4">Exiv2::Value</a>.
 
230
</div>
 
231
</div><p>
 
232
<a class="anchor" name="7c515672cb1d6b1fddb10ca328c63dc8"></a><!-- doxytag: member="Exiv2::StringValueBase::toFloat" ref="7c515672cb1d6b1fddb10ca328c63dc8" args="(long n=0) const" -->
 
233
<div class="memitem">
 
234
<div class="memproto">
 
235
      <table class="memname">
 
236
        <tr>
 
237
          <td class="memname">virtual float Exiv2::StringValueBase::toFloat           </td>
 
238
          <td>(</td>
 
239
          <td class="paramtype">long&nbsp;</td>
 
240
          <td class="paramname"> <em>n</em> = <code>0</code>          </td>
 
241
          <td>&nbsp;)&nbsp;</td>
 
242
          <td width="100%"> const<code> [inline, virtual]</code></td>
 
243
        </tr>
 
244
      </table>
 
245
</div>
 
246
<div class="memdoc">
253
247
 
254
248
<p>
255
249
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. 
256
250
<p>
257
 
<dl compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
258
 
 
259
 
<p>
260
 
Implements <a class="el" href="classExiv2_1_1Value.html#22d257caa6c1ffe6416ce02de7bd8c1c">Exiv2::Value</a>.    </td>
261
 
  </tr>
262
 
</table>
263
 
<a class="anchor" name="14727751ab89f415781402d9f3b087f1"></a><!-- doxytag: member="Exiv2::StringValueBase::toLong" ref="14727751ab89f415781402d9f3b087f1" args="(long n=0) const " --><p>
264
 
<table class="mdTable" cellpadding="2" cellspacing="0">
265
 
  <tr>
266
 
    <td class="mdRow">
267
 
      <table cellpadding="0" cellspacing="0" border="0">
268
 
        <tr>
269
 
          <td class="md" nowrap valign="top">virtual long Exiv2::StringValueBase::toLong           </td>
270
 
          <td class="md" valign="top">(&nbsp;</td>
271
 
          <td class="md" nowrap valign="top">long&nbsp;</td>
272
 
          <td class="mdname1" valign="top" nowrap> <em>n</em> = <code>0</code>          </td>
273
 
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
274
 
          <td class="md" nowrap> const<code> [inline, virtual]</code></td>
275
 
        </tr>
276
 
      </table>
277
 
    </td>
278
 
  </tr>
279
 
</table>
280
 
<table cellspacing="5" cellpadding="0" border="0">
281
 
  <tr>
282
 
    <td>
283
 
      &nbsp;
284
 
    </td>
285
 
    <td>
286
 
 
287
 
<p>
288
 
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. 
289
 
<p>
290
 
<dl compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
291
 
 
292
 
<p>
293
 
Implements <a class="el" href="classExiv2_1_1Value.html#4530a3fc3e2305cf994de5476f46f953">Exiv2::Value</a>.    </td>
294
 
  </tr>
295
 
</table>
296
 
<a class="anchor" name="d7ffbf58cb0496d3ad4b13e46ee8a29e"></a><!-- doxytag: member="Exiv2::StringValueBase::toRational" ref="d7ffbf58cb0496d3ad4b13e46ee8a29e" args="(long n=0) const " --><p>
297
 
<table class="mdTable" cellpadding="2" cellspacing="0">
298
 
  <tr>
299
 
    <td class="mdRow">
300
 
      <table cellpadding="0" cellspacing="0" border="0">
301
 
        <tr>
302
 
          <td class="md" nowrap valign="top">virtual <a class="el" href="namespaceExiv2.html#95756f3f7fa19103f83addf5fa088a30">Rational</a> Exiv2::StringValueBase::toRational           </td>
303
 
          <td class="md" valign="top">(&nbsp;</td>
304
 
          <td class="md" nowrap valign="top">long&nbsp;</td>
305
 
          <td class="mdname1" valign="top" nowrap> <em>n</em> = <code>0</code>          </td>
306
 
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
307
 
          <td class="md" nowrap> const<code> [inline, virtual]</code></td>
308
 
        </tr>
309
 
      </table>
310
 
    </td>
311
 
  </tr>
312
 
</table>
313
 
<table cellspacing="5" cellpadding="0" border="0">
314
 
  <tr>
315
 
    <td>
316
 
      &nbsp;
317
 
    </td>
318
 
    <td>
 
251
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
 
252
 
 
253
<p>
 
254
Implements <a class="el" href="classExiv2_1_1Value.html#4b49aea294b66e6b5e5f083210273fde">Exiv2::Value</a>.
 
255
</div>
 
256
</div><p>
 
257
<a class="anchor" name="cd31553093967446fde0e382cd2e48ed"></a><!-- doxytag: member="Exiv2::StringValueBase::toRational" ref="cd31553093967446fde0e382cd2e48ed" args="(long n=0) const" -->
 
258
<div class="memitem">
 
259
<div class="memproto">
 
260
      <table class="memname">
 
261
        <tr>
 
262
          <td class="memname">virtual <a class="el" href="namespaceExiv2.html#95756f3f7fa19103f83addf5fa088a30">Rational</a> Exiv2::StringValueBase::toRational           </td>
 
263
          <td>(</td>
 
264
          <td class="paramtype">long&nbsp;</td>
 
265
          <td class="paramname"> <em>n</em> = <code>0</code>          </td>
 
266
          <td>&nbsp;)&nbsp;</td>
 
267
          <td width="100%"> const<code> [inline, virtual]</code></td>
 
268
        </tr>
 
269
      </table>
 
270
</div>
 
271
<div class="memdoc">
319
272
 
320
273
<p>
321
274
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. 
322
275
<p>
323
 
<dl compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
 
276
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
324
277
 
325
278
<p>
326
 
Implements <a class="el" href="classExiv2_1_1Value.html#595a4cb549bec8c19d290ca3e95a2678">Exiv2::Value</a>.    </td>
327
 
  </tr>
328
 
</table>
329
 
<hr>The documentation for this class was generated from the following files:<ul>
330
 
<li><a class="el" href="value_8hpp.html">value.hpp</a><li>value.cpp</ul>
331
 
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 2 23:55:39 2006 for Exiv2 by&nbsp;
 
279
Implements <a class="el" href="classExiv2_1_1Value.html#e633d9fc821a71dda86f37751c18c5d7">Exiv2::Value</a>.
 
280
</div>
 
281
</div><p>
 
282
<hr>The documentation for this class was generated from the following file:<ul>
 
283
<li><a class="el" href="value_8hpp.html">value.hpp</a></ul>
 
284
<hr size="1"><address style="align: right;"><small>Generated on Mon Nov 27 20:16:37 2006 for Exiv2 by&nbsp;
332
285
<a href="http://www.doxygen.org/index.html">
333
 
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
 
286
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
334
287
</body>
335
288
</html>