<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.8"/> <title>Exiv2: Exiv2::DataValue Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">Exiv2 </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.8 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceExiv2.html">Exiv2</a></li><li class="navelem"><a class="el" href="classExiv2_1_1DataValue.html">DataValue</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="#pub-attribs">Public Attributes</a> | <a href="classExiv2_1_1DataValue-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">Exiv2::DataValue Class Reference</div> </div> </div><!--header--> <div class="contents"> <p>Value for an undefined data type. <a href="classExiv2_1_1DataValue.html#details">More...</a></p> <p><code>#include <value.hpp></code></p> <div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"> <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for Exiv2::DataValue:</div> <div id="dynsection-0-summary" class="dynsummary" style="display:block;"> </div> <div id="dynsection-0-content" class="dyncontent" style="display:none;"> <div class="center"><img src="classExiv2_1_1DataValue__inherit__graph.png" border="0" usemap="#Exiv2_1_1DataValue_inherit__map" alt="Inheritance graph"/></div> <map name="Exiv2_1_1DataValue_inherit__map" id="Exiv2_1_1DataValue_inherit__map"> <area shape="rect" id="node2" href="classExiv2_1_1Value.html" title="Common interface for all types of values used with metadata. " alt="" coords="25,5,168,32"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"> <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for Exiv2::DataValue:</div> <div id="dynsection-1-summary" class="dynsummary" style="display:block;"> </div> <div id="dynsection-1-content" class="dyncontent" style="display:none;"> <div class="center"><img src="classExiv2_1_1DataValue__coll__graph.png" border="0" usemap="#Exiv2_1_1DataValue_coll__map" alt="Collaboration graph"/></div> <map name="Exiv2_1_1DataValue_coll__map" id="Exiv2_1_1DataValue_coll__map"> <area shape="rect" id="node2" href="classExiv2_1_1Value.html" title="Common interface for all types of values used with metadata. " alt="" coords="5,184,148,211"/><area shape="rect" id="node4" title="STL class. " alt="" coords="187,95,369,121"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a> Public Types</h2></td></tr> <tr class="memitem:a46b580e6be9aa7708a75eed270f5c89f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a46b580e6be9aa7708a75eed270f5c89f"></a> typedef std::auto_ptr< <a class="el" href="classExiv2_1_1DataValue.html">DataValue</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#a46b580e6be9aa7708a75eed270f5c89f">AutoPtr</a></td></tr> <tr class="memdesc:a46b580e6be9aa7708a75eed270f5c89f"><td class="mdescLeft"> </td><td class="mdescRight">Shortcut for a DataValue auto pointer. <br /></td></tr> <tr class="separator:a46b580e6be9aa7708a75eed270f5c89f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa99856ccc6fc7bf3978b7f49d97b0e88"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa99856ccc6fc7bf3978b7f49d97b0e88"></a> typedef std::vector< <a class="el" href="namespaceExiv2.html#a16f60a5bd4207fe155f6cf93a15efa72">byte</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#aa99856ccc6fc7bf3978b7f49d97b0e88">ValueType</a></td></tr> <tr class="memdesc:aa99856ccc6fc7bf3978b7f49d97b0e88"><td class="mdescLeft"> </td><td class="mdescRight">Type used to store the data. <br /></td></tr> <tr class="separator:aa99856ccc6fc7bf3978b7f49d97b0e88"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_types_classExiv2_1_1Value"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classExiv2_1_1Value')"><img src="closed.png" alt="-"/> Public Types inherited from <a class="el" href="classExiv2_1_1Value.html">Exiv2::Value</a></td></tr> <tr class="memitem:a0f62e585b82c97738858b743e60dff21 inherit pub_types_classExiv2_1_1Value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0f62e585b82c97738858b743e60dff21"></a> typedef std::auto_ptr< <a class="el" href="classExiv2_1_1Value.html">Value</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Value.html#a0f62e585b82c97738858b743e60dff21">AutoPtr</a></td></tr> <tr class="memdesc:a0f62e585b82c97738858b743e60dff21 inherit pub_types_classExiv2_1_1Value"><td class="mdescLeft"> </td><td class="mdescRight">Shortcut for a Value auto pointer. <br /></td></tr> <tr class="separator:a0f62e585b82c97738858b743e60dff21 inherit pub_types_classExiv2_1_1Value"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td colspan="2"><div class="groupHeader">Creators</div></td></tr> <tr class="memitem:aecfbbc2bc400abbbdd2d4282356a0ddd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aecfbbc2bc400abbbdd2d4282356a0ddd"></a>  </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#aecfbbc2bc400abbbdd2d4282356a0ddd">DataValue</a> (<a class="el" href="namespaceExiv2.html#a5153319711f35fe81cbc13f4b852450c">TypeId</a> <a class="el" href="classExiv2_1_1Value.html#a1a56299aad4e614c4f0225d97530c038">typeId</a>=<a class="el" href="namespaceExiv2.html#a5153319711f35fe81cbc13f4b852450caa044ece6f004f519dce91f57319bb6eb">undefined</a>)</td></tr> <tr class="memdesc:aecfbbc2bc400abbbdd2d4282356a0ddd"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br /></td></tr> <tr class="separator:aecfbbc2bc400abbbdd2d4282356a0ddd"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a614ccfa52204af130091f7b1d7d27ea7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a614ccfa52204af130091f7b1d7d27ea7"></a>  </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#a614ccfa52204af130091f7b1d7d27ea7">DataValue</a> (const <a class="el" href="namespaceExiv2.html#a16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, long len, <a class="el" href="namespaceExiv2.html#a94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> byteOrder=invalidByteOrder, <a class="el" href="namespaceExiv2.html#a5153319711f35fe81cbc13f4b852450c">TypeId</a> <a class="el" href="classExiv2_1_1Value.html#a1a56299aad4e614c4f0225d97530c038">typeId</a>=<a class="el" href="namespaceExiv2.html#a5153319711f35fe81cbc13f4b852450caa044ece6f004f519dce91f57319bb6eb">undefined</a>)</td></tr> <tr class="memdesc:a614ccfa52204af130091f7b1d7d27ea7"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br /></td></tr> <tr class="separator:a614ccfa52204af130091f7b1d7d27ea7"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aaa177a85787da59fbc29ac368ac4cee0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaa177a85787da59fbc29ac368ac4cee0"></a> virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#aaa177a85787da59fbc29ac368ac4cee0">~DataValue</a> ()</td></tr> <tr class="memdesc:aaa177a85787da59fbc29ac368ac4cee0"><td class="mdescLeft"> </td><td class="mdescRight">Virtual destructor. <br /></td></tr> <tr class="separator:aaa177a85787da59fbc29ac368ac4cee0"><td class="memSeparator" colspan="2"> </td></tr> <tr><td colspan="2"><div class="groupHeader">Manipulators</div></td></tr> <tr class="memitem:a927fef988688e4b33d4fcaffb51679dc"><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#a927fef988688e4b33d4fcaffb51679dc">read</a> (const <a class="el" href="namespaceExiv2.html#a16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, long len, <a class="el" href="namespaceExiv2.html#a94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> byteOrder=invalidByteOrder)</td></tr> <tr class="memdesc:a927fef988688e4b33d4fcaffb51679dc"><td class="mdescLeft"> </td><td class="mdescRight">Read the value from a character buffer. <a href="#a927fef988688e4b33d4fcaffb51679dc">More...</a><br /></td></tr> <tr class="separator:a927fef988688e4b33d4fcaffb51679dc"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:afb8d9321e3b80c239b3a8df9b1ca4083"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afb8d9321e3b80c239b3a8df9b1ca4083"></a> virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#afb8d9321e3b80c239b3a8df9b1ca4083">read</a> (const std::string &buf)</td></tr> <tr class="memdesc:afb8d9321e3b80c239b3a8df9b1ca4083"><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> <tr class="separator:afb8d9321e3b80c239b3a8df9b1ca4083"><td class="memSeparator" colspan="2"> </td></tr> <tr><td colspan="2"><div class="groupHeader">Accessors</div></td></tr> <tr class="memitem:af4ba7060e604c9934006329baf7dd2af"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af4ba7060e604c9934006329baf7dd2af"></a> <a class="el" href="classExiv2_1_1Value.html#a0f62e585b82c97738858b743e60dff21">AutoPtr</a> </td><td class="memItemRight" valign="bottom"><b>clone</b> () const </td></tr> <tr class="separator:af4ba7060e604c9934006329baf7dd2af"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad96c8ded5036c82f33d9eb214ed12587"><td class="memItemLeft" align="right" valign="top">virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#ad96c8ded5036c82f33d9eb214ed12587">copy</a> (<a class="el" href="namespaceExiv2.html#a16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, <a class="el" href="namespaceExiv2.html#a94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> byteOrder=invalidByteOrder) const </td></tr> <tr class="memdesc:ad96c8ded5036c82f33d9eb214ed12587"><td class="mdescLeft"> </td><td class="mdescRight">Write value to a character data buffer. <a href="#ad96c8ded5036c82f33d9eb214ed12587">More...</a><br /></td></tr> <tr class="separator:ad96c8ded5036c82f33d9eb214ed12587"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1ffc722677c75ba8e55da29bd15cac72"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1ffc722677c75ba8e55da29bd15cac72"></a> virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#a1ffc722677c75ba8e55da29bd15cac72">count</a> () const </td></tr> <tr class="memdesc:a1ffc722677c75ba8e55da29bd15cac72"><td class="mdescLeft"> </td><td class="mdescRight">Return the number of components of the value. <br /></td></tr> <tr class="separator:a1ffc722677c75ba8e55da29bd15cac72"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a09524728bded980d22d93e3d95331dea"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a09524728bded980d22d93e3d95331dea"></a> virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#a09524728bded980d22d93e3d95331dea">size</a> () const </td></tr> <tr class="memdesc:a09524728bded980d22d93e3d95331dea"><td class="mdescLeft"> </td><td class="mdescRight">Return the size of the value in bytes. <br /></td></tr> <tr class="separator:a09524728bded980d22d93e3d95331dea"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aaabdc32e781b5d1ad83d5db6ce68c340"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaabdc32e781b5d1ad83d5db6ce68c340"></a> virtual std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#aaabdc32e781b5d1ad83d5db6ce68c340">write</a> (std::ostream &os) const </td></tr> <tr class="memdesc:aaabdc32e781b5d1ad83d5db6ce68c340"><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#abe882054db13fc2f4f6f7e8e1261d982" title="Output operator for Value types. ">operator<<(std::ostream &os, const Value &value)</a>. <br /></td></tr> <tr class="separator:aaabdc32e781b5d1ad83d5db6ce68c340"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a55001725fa8ce26fbac833c3192fa74f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a55001725fa8ce26fbac833c3192fa74f"></a> virtual std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#a55001725fa8ce26fbac833c3192fa74f">toString</a> (long n) const </td></tr> <tr class="memdesc:a55001725fa8ce26fbac833c3192fa74f"><td class="mdescLeft"> </td><td class="mdescRight">Return the <em>n</em>-th component of the value as a string. The behaviour of this method may be undefined if there is no <em>n</em>-th component. <br /></td></tr> <tr class="separator:a55001725fa8ce26fbac833c3192fa74f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a0bea375d6f15bf5866af59e2efb2db8f"><td class="memItemLeft" align="right" valign="top">virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#a0bea375d6f15bf5866af59e2efb2db8f">toLong</a> (long n=0) const </td></tr> <tr class="memdesc:a0bea375d6f15bf5866af59e2efb2db8f"><td class="mdescLeft"> </td><td class="mdescRight">Convert the <em>n</em>-th component of the value to a long. The behaviour of this method may be undefined if there is no <em>n</em>-th component. <a href="#a0bea375d6f15bf5866af59e2efb2db8f">More...</a><br /></td></tr> <tr class="separator:a0bea375d6f15bf5866af59e2efb2db8f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac9d9928ebae3d72b43421818a9ebfc3d"><td class="memItemLeft" align="right" valign="top">virtual float </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#ac9d9928ebae3d72b43421818a9ebfc3d">toFloat</a> (long n=0) const </td></tr> <tr class="memdesc:ac9d9928ebae3d72b43421818a9ebfc3d"><td class="mdescLeft"> </td><td class="mdescRight">Convert the <em>n</em>-th component of the value to a float. The behaviour of this method may be undefined if there is no <em>n</em>-th component. <a href="#ac9d9928ebae3d72b43421818a9ebfc3d">More...</a><br /></td></tr> <tr class="separator:ac9d9928ebae3d72b43421818a9ebfc3d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:add912d022aaee80ecf3ea6565036e946"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespaceExiv2.html#a95756f3f7fa19103f83addf5fa088a30">Rational</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#add912d022aaee80ecf3ea6565036e946">toRational</a> (long n=0) const </td></tr> <tr class="memdesc:add912d022aaee80ecf3ea6565036e946"><td class="mdescLeft"> </td><td class="mdescRight">Convert the <em>n</em>-th component of the value to a Rational. The behaviour of this method may be undefined if there is no <em>n</em>-th component. <a href="#add912d022aaee80ecf3ea6565036e946">More...</a><br /></td></tr> <tr class="separator:add912d022aaee80ecf3ea6565036e946"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_classExiv2_1_1Value"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classExiv2_1_1Value')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classExiv2_1_1Value.html">Exiv2::Value</a></td></tr> <tr class="memitem:ab475b1680c6fa36a092c4584f70a8027 inherit pub_methods_classExiv2_1_1Value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab475b1680c6fa36a092c4584f70a8027"></a>  </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Value.html#ab475b1680c6fa36a092c4584f70a8027">Value</a> (<a class="el" href="namespaceExiv2.html#a5153319711f35fe81cbc13f4b852450c">TypeId</a> <a class="el" href="classExiv2_1_1Value.html#a1a56299aad4e614c4f0225d97530c038">typeId</a>)</td></tr> <tr class="memdesc:ab475b1680c6fa36a092c4584f70a8027 inherit pub_methods_classExiv2_1_1Value"><td class="mdescLeft"> </td><td class="mdescRight">Constructor, taking a type id to initialize the base class with. <br /></td></tr> <tr class="separator:ab475b1680c6fa36a092c4584f70a8027 inherit pub_methods_classExiv2_1_1Value"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a22a8e3314aad989671aedeee1c7ef375 inherit pub_methods_classExiv2_1_1Value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a22a8e3314aad989671aedeee1c7ef375"></a> virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Value.html#a22a8e3314aad989671aedeee1c7ef375">~Value</a> ()</td></tr> <tr class="memdesc:a22a8e3314aad989671aedeee1c7ef375 inherit pub_methods_classExiv2_1_1Value"><td class="mdescLeft"> </td><td class="mdescRight">Virtual destructor. <br /></td></tr> <tr class="separator:a22a8e3314aad989671aedeee1c7ef375 inherit pub_methods_classExiv2_1_1Value"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6e8f3c20bf5d09f34371660a6cf50af3 inherit pub_methods_classExiv2_1_1Value"><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Value.html#a6e8f3c20bf5d09f34371660a6cf50af3">setDataArea</a> (const <a class="el" href="namespaceExiv2.html#a16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, long len)</td></tr> <tr class="memdesc:a6e8f3c20bf5d09f34371660a6cf50af3 inherit pub_methods_classExiv2_1_1Value"><td class="mdescLeft"> </td><td class="mdescRight">Set the data area, if the value has one by copying (cloning) the buffer pointed to by buf. <a href="#a6e8f3c20bf5d09f34371660a6cf50af3">More...</a><br /></td></tr> <tr class="separator:a6e8f3c20bf5d09f34371660a6cf50af3 inherit pub_methods_classExiv2_1_1Value"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1a56299aad4e614c4f0225d97530c038 inherit pub_methods_classExiv2_1_1Value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1a56299aad4e614c4f0225d97530c038"></a> <a class="el" href="namespaceExiv2.html#a5153319711f35fe81cbc13f4b852450c">TypeId</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Value.html#a1a56299aad4e614c4f0225d97530c038">typeId</a> () const </td></tr> <tr class="memdesc:a1a56299aad4e614c4f0225d97530c038 inherit pub_methods_classExiv2_1_1Value"><td class="mdescLeft"> </td><td class="mdescRight">Return the type identifier (Exif data format type). <br /></td></tr> <tr class="separator:a1a56299aad4e614c4f0225d97530c038 inherit pub_methods_classExiv2_1_1Value"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a84db34d85bac0f5e159d67a1e10c7976 inherit pub_methods_classExiv2_1_1Value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a84db34d85bac0f5e159d67a1e10c7976"></a> <a class="el" href="classExiv2_1_1Value.html#a0f62e585b82c97738858b743e60dff21">AutoPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Value.html#a84db34d85bac0f5e159d67a1e10c7976">clone</a> () const </td></tr> <tr class="memdesc:a84db34d85bac0f5e159d67a1e10c7976 inherit pub_methods_classExiv2_1_1Value"><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> <tr class="separator:a84db34d85bac0f5e159d67a1e10c7976 inherit pub_methods_classExiv2_1_1Value"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a0b07106aa570a506f4211c7bfa605fb0 inherit pub_methods_classExiv2_1_1Value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0b07106aa570a506f4211c7bfa605fb0"></a> std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Value.html#a0b07106aa570a506f4211c7bfa605fb0">toString</a> () const </td></tr> <tr class="memdesc:a0b07106aa570a506f4211c7bfa605fb0 inherit pub_methods_classExiv2_1_1Value"><td class="mdescLeft"> </td><td class="mdescRight">Return the value as a string. Implemented in terms of <a class="el" href="classExiv2_1_1Value.html#a2518f5ba09fc8c00785c57a119892c4c" title="Write the value to an output stream. You do not usually have to use this function; it is used for the...">write(std::ostream& os) const </a>of the concrete class. <br /></td></tr> <tr class="separator:a0b07106aa570a506f4211c7bfa605fb0 inherit pub_methods_classExiv2_1_1Value"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a0105d81baf07d531cc6de2d2bb4a7bea inherit pub_methods_classExiv2_1_1Value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0105d81baf07d531cc6de2d2bb4a7bea"></a> virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Value.html#a0105d81baf07d531cc6de2d2bb4a7bea">sizeDataArea</a> () const </td></tr> <tr class="memdesc:a0105d81baf07d531cc6de2d2bb4a7bea inherit pub_methods_classExiv2_1_1Value"><td class="mdescLeft"> </td><td class="mdescRight">Return the size of the data area, 0 if there is none. <br /></td></tr> <tr class="separator:a0105d81baf07d531cc6de2d2bb4a7bea inherit pub_methods_classExiv2_1_1Value"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9d96b057ecc6e9f09e2c65b46a0688e0 inherit pub_methods_classExiv2_1_1Value"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classExiv2_1_1DataBuf.html">DataBuf</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Value.html#a9d96b057ecc6e9f09e2c65b46a0688e0">dataArea</a> () const </td></tr> <tr class="memdesc:a9d96b057ecc6e9f09e2c65b46a0688e0 inherit pub_methods_classExiv2_1_1Value"><td class="mdescLeft"> </td><td class="mdescRight">Return a copy of the data area if the value has one. The caller owns this copy and <a class="el" href="classExiv2_1_1DataBuf.html" title="Utility class containing a character array. All it does is to take care of memory allocation and dele...">DataBuf</a> ensures that it will be deleted. <a href="#a9d96b057ecc6e9f09e2c65b46a0688e0">More...</a><br /></td></tr> <tr class="separator:a9d96b057ecc6e9f09e2c65b46a0688e0 inherit pub_methods_classExiv2_1_1Value"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a161550b3ef31b3a14b1d75149ba9ba71 inherit pub_methods_classExiv2_1_1Value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a161550b3ef31b3a14b1d75149ba9ba71"></a> bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Value.html#a161550b3ef31b3a14b1d75149ba9ba71">ok</a> () const </td></tr> <tr class="memdesc:a161550b3ef31b3a14b1d75149ba9ba71 inherit pub_methods_classExiv2_1_1Value"><td class="mdescLeft"> </td><td class="mdescRight">Check the <em>ok</em> status indicator. After a to<Type> conversion, this indicator shows whether the conversion was successful. <br /></td></tr> <tr class="separator:a161550b3ef31b3a14b1d75149ba9ba71 inherit pub_methods_classExiv2_1_1Value"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a> Public Attributes</h2></td></tr> <tr class="memitem:a78ba17db5467af7e38fee8c815b2eaee"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a78ba17db5467af7e38fee8c815b2eaee"></a> <a class="el" href="classExiv2_1_1DataValue.html#aa99856ccc6fc7bf3978b7f49d97b0e88">ValueType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1DataValue.html#a78ba17db5467af7e38fee8c815b2eaee">value_</a></td></tr> <tr class="memdesc:a78ba17db5467af7e38fee8c815b2eaee"><td class="mdescLeft"> </td><td class="mdescRight">Stores the data value. <br /></td></tr> <tr class="separator:a78ba17db5467af7e38fee8c815b2eaee"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> Additional Inherited Members</h2></td></tr> <tr class="inherit_header pub_static_methods_classExiv2_1_1Value"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classExiv2_1_1Value')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="classExiv2_1_1Value.html">Exiv2::Value</a></td></tr> <tr class="memitem:a7a6c027316e3dec0f7e79430f104c137 inherit pub_static_methods_classExiv2_1_1Value"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classExiv2_1_1Value.html#a0f62e585b82c97738858b743e60dff21">AutoPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Value.html#a7a6c027316e3dec0f7e79430f104c137">create</a> (<a class="el" href="namespaceExiv2.html#a5153319711f35fe81cbc13f4b852450c">TypeId</a> <a class="el" href="classExiv2_1_1Value.html#a1a56299aad4e614c4f0225d97530c038">typeId</a>)</td></tr> <tr class="memdesc:a7a6c027316e3dec0f7e79430f104c137 inherit pub_static_methods_classExiv2_1_1Value"><td class="mdescLeft"> </td><td class="mdescRight">A (simple) factory to create a <a class="el" href="classExiv2_1_1Value.html" title="Common interface for all types of values used with metadata. ">Value</a> type. <a href="#a7a6c027316e3dec0f7e79430f104c137">More...</a><br /></td></tr> <tr class="separator:a7a6c027316e3dec0f7e79430f104c137 inherit pub_static_methods_classExiv2_1_1Value"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pro_methods_classExiv2_1_1Value"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classExiv2_1_1Value')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classExiv2_1_1Value.html">Exiv2::Value</a></td></tr> <tr class="memitem:aa2a9041cbd30d86260820b818cdf232e inherit pro_methods_classExiv2_1_1Value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa2a9041cbd30d86260820b818cdf232e"></a> <a class="el" href="classExiv2_1_1Value.html">Value</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Value.html#aa2a9041cbd30d86260820b818cdf232e">operator=</a> (const <a class="el" href="classExiv2_1_1Value.html">Value</a> &rhs)</td></tr> <tr class="memdesc:aa2a9041cbd30d86260820b818cdf232e inherit pro_methods_classExiv2_1_1Value"><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. Protected so that it can only be used by subclasses but not directly. <br /></td></tr> <tr class="separator:aa2a9041cbd30d86260820b818cdf232e inherit pro_methods_classExiv2_1_1Value"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pro_attribs_classExiv2_1_1Value"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classExiv2_1_1Value')"><img src="closed.png" alt="-"/> Protected Attributes inherited from <a class="el" href="classExiv2_1_1Value.html">Exiv2::Value</a></td></tr> <tr class="memitem:a4dc3a689b4bc1819290525cac491c1a8 inherit pro_attribs_classExiv2_1_1Value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4dc3a689b4bc1819290525cac491c1a8"></a> bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Value.html#a4dc3a689b4bc1819290525cac491c1a8">ok_</a></td></tr> <tr class="memdesc:a4dc3a689b4bc1819290525cac491c1a8 inherit pro_attribs_classExiv2_1_1Value"><td class="mdescLeft"> </td><td class="mdescRight">Indicates the status of the previous to<Type> conversion. <br /></td></tr> <tr class="separator:a4dc3a689b4bc1819290525cac491c1a8 inherit pro_attribs_classExiv2_1_1Value"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>Value for an undefined data type. </p> </div><h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="ad96c8ded5036c82f33d9eb214ed12587"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">long Exiv2::DataValue::copy </td> <td>(</td> <td class="paramtype"><a class="el" href="namespaceExiv2.html#a16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td> <td class="paramname"><em>buf</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="namespaceExiv2.html#a94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> </td> <td class="paramname"><em>byteOrder</em> = <code>invalidByteOrder</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Write value to a character data buffer. </p> <dl class="section note"><dt>Note</dt><dd>The byte order is required by the interface but not used by this method, so just use the default.</dd></dl> <p>The user must ensure that the buffer has enough memory. Otherwise the call results in undefined behaviour.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">buf</td><td>Data buffer to write to. </td></tr> <tr><td class="paramname">byteOrder</td><td>Byte order. Not needed. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>Number of characters written. </dd></dl> <p>Implements <a class="el" href="classExiv2_1_1Value.html#a3bf4f9c2eda4f7850a390de98668ce15">Exiv2::Value</a>.</p> <p>References <a class="el" href="classExiv2_1_1DataValue.html#a78ba17db5467af7e38fee8c815b2eaee">value_</a>.</p> </div> </div> <a class="anchor" id="a927fef988688e4b33d4fcaffb51679dc"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">int Exiv2::DataValue::read </td> <td>(</td> <td class="paramtype">const <a class="el" href="namespaceExiv2.html#a16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td> <td class="paramname"><em>buf</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">long </td> <td class="paramname"><em>len</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="namespaceExiv2.html#a94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> </td> <td class="paramname"><em>byteOrder</em> = <code>invalidByteOrder</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Read the value from a character buffer. </p> <dl class="section note"><dt>Note</dt><dd>The byte order is required by the interface but not used by this method, so just use the default.</dd></dl> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">buf</td><td>Pointer to the data buffer to read from </td></tr> <tr><td class="paramname">len</td><td>Number of bytes in the data buffer </td></tr> <tr><td class="paramname">byteOrder</td><td>Byte order. Not needed.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>0 if successful. </dd></dl> <p>Implements <a class="el" href="classExiv2_1_1Value.html#acc8870f802ebcdf9d4e081816ad8956e">Exiv2::Value</a>.</p> <p>References <a class="el" href="classExiv2_1_1DataValue.html#a78ba17db5467af7e38fee8c815b2eaee">value_</a>.</p> <p>Referenced by <a class="el" href="classExiv2_1_1DataValue.html#a614ccfa52204af130091f7b1d7d27ea7">DataValue()</a>.</p> </div> </div> <a class="anchor" id="ac9d9928ebae3d72b43421818a9ebfc3d"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">float Exiv2::DataValue::toFloat </td> <td>(</td> <td class="paramtype">long </td> <td class="paramname"><em>n</em> = <code>0</code></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Convert the <em>n</em>-th component of the value to a float. The behaviour of this method may be undefined if there is no <em>n</em>-th component. </p> <dl class="section return"><dt>Returns</dt><dd>The converted value. </dd></dl> <p>Implements <a class="el" href="classExiv2_1_1Value.html#a22d257caa6c1ffe6416ce02de7bd8c1c">Exiv2::Value</a>.</p> <p>References <a class="el" href="classExiv2_1_1Value.html#a4dc3a689b4bc1819290525cac491c1a8">Exiv2::Value::ok_</a>, and <a class="el" href="classExiv2_1_1DataValue.html#a78ba17db5467af7e38fee8c815b2eaee">value_</a>.</p> </div> </div> <a class="anchor" id="a0bea375d6f15bf5866af59e2efb2db8f"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">long Exiv2::DataValue::toLong </td> <td>(</td> <td class="paramtype">long </td> <td class="paramname"><em>n</em> = <code>0</code></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Convert the <em>n</em>-th component of the value to a long. The behaviour of this method may be undefined if there is no <em>n</em>-th component. </p> <dl class="section return"><dt>Returns</dt><dd>The converted value. </dd></dl> <p>Implements <a class="el" href="classExiv2_1_1Value.html#a4530a3fc3e2305cf994de5476f46f953">Exiv2::Value</a>.</p> <p>References <a class="el" href="classExiv2_1_1Value.html#a4dc3a689b4bc1819290525cac491c1a8">Exiv2::Value::ok_</a>, and <a class="el" href="classExiv2_1_1DataValue.html#a78ba17db5467af7e38fee8c815b2eaee">value_</a>.</p> </div> </div> <a class="anchor" id="add912d022aaee80ecf3ea6565036e946"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="namespaceExiv2.html#a95756f3f7fa19103f83addf5fa088a30">Rational</a> Exiv2::DataValue::toRational </td> <td>(</td> <td class="paramtype">long </td> <td class="paramname"><em>n</em> = <code>0</code></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Convert the <em>n</em>-th component of the value to a Rational. The behaviour of this method may be undefined if there is no <em>n</em>-th component. </p> <dl class="section return"><dt>Returns</dt><dd>The converted value. </dd></dl> <p>Implements <a class="el" href="classExiv2_1_1Value.html#a595a4cb549bec8c19d290ca3e95a2678">Exiv2::Value</a>.</p> <p>References <a class="el" href="classExiv2_1_1Value.html#a4dc3a689b4bc1819290525cac491c1a8">Exiv2::Value::ok_</a>, and <a class="el" href="classExiv2_1_1DataValue.html#a78ba17db5467af7e38fee8c815b2eaee">value_</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="value_8hpp.html">value.hpp</a></li> <li>value.cpp</li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Thu Oct 26 2017 16:50:14 for Exiv2 by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.8 </small></address> </body> </html>