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