1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Exiv2: Exiv2::ValueType< T > Class Template Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.6 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li id="current"><a href="classes.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>
</ul></div>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul></div>
<div class="nav">
<a class="el" href="namespaceExiv2.html">Exiv2</a>::<a class="el" href="classExiv2_1_1ValueType.html">ValueType</a></div>
<h1>Exiv2::ValueType< T > Class Template Reference</h1><!-- doxytag: class="Exiv2::ValueType" --><!-- doxytag: inherits="Exiv2::Value" -->Template for a Value of a basic type. This is used for unsigned and signed short, long and rationals.
<a href="#_details">More...</a>
<p>
<code>#include <value.hpp></code>
<p>
Inheritance diagram for Exiv2::ValueType< T >:<p><center><img src="classExiv2_1_1ValueType__inherit__graph.png" border="0" usemap="#Exiv2_1_1ValueType_3_01T_01_4__inherit__map" alt="Inheritance graph"></center>
<map name="Exiv2_1_1ValueType_3_01T_01_4__inherit__map">
<area href="classExiv2_1_1Value.html" shape="rect" coords="36,7,132,31" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for Exiv2::ValueType< T >:<p><center><img src="classExiv2_1_1ValueType__coll__graph.png" border="0" usemap="#Exiv2_1_1ValueType_3_01T_01_4__coll__map" alt="Collaboration graph"></center>
<map name="Exiv2_1_1ValueType_3_01T_01_4__coll__map">
<area href="classExiv2_1_1Value.html" shape="rect" coords="5,98,101,122" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classExiv2_1_1ValueType-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0c76c512468a47f6eac463f4af278a14"></a><!-- doxytag: member="Exiv2::ValueType::AutoPtr" ref="0c76c512468a47f6eac463f4af278a14" args="" -->
typedef std::auto_ptr< <a class="el" href="classExiv2_1_1ValueType.html">ValueType</a><<br>
T > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#0c76c512468a47f6eac463f4af278a14">AutoPtr</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Shortcut for a ValueType<T> auto pointer. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="88ed5f3e8f59a9cf00eee8c6027e9f87"></a><!-- doxytag: member="Exiv2::ValueType::ValueList" ref="88ed5f3e8f59a9cf00eee8c6027e9f87" args="" -->
typedef std::vector< T > </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#88ed5f3e8f59a9cf00eee8c6027e9f87">ValueList</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Container for values. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="38d2c3d37e48bd5b3c00f3693e493ad8"></a><!-- doxytag: member="Exiv2::ValueType::iterator" ref="38d2c3d37e48bd5b3c00f3693e493ad8" args="" -->
typedef std::vector< T <br>
>::<a class="el" href="classExiv2_1_1ValueType.html#38d2c3d37e48bd5b3c00f3693e493ad8">iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#38d2c3d37e48bd5b3c00f3693e493ad8">iterator</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Iterator type defined for convenience. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b13bcf1ea775648daac65bc13817235d"></a><!-- doxytag: member="Exiv2::ValueType::const_iterator" ref="b13bcf1ea775648daac65bc13817235d" args="" -->
typedef std::vector< T <br>
>::<a class="el" href="classExiv2_1_1ValueType.html#b13bcf1ea775648daac65bc13817235d">const_iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#b13bcf1ea775648daac65bc13817235d">const_iterator</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Const iterator type defined for convenience. <br></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">long </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#4302aa0e8dee770c7265ed8e1fccb07c">toLong</a> (long n) const</td></tr>
<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="#4302aa0e8dee770c7265ed8e1fccb07c"></a><br></td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">long </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#fb8127ff26531236ff5a75232dcc0d84">toLong</a> (long n) const</td></tr>
<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="#fb8127ff26531236ff5a75232dcc0d84"></a><br></td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">float </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#c68f4ac5e10a14ca84bbc9bef0f07cbf">toFloat</a> (long n) const</td></tr>
<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="#c68f4ac5e10a14ca84bbc9bef0f07cbf"></a><br></td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">float </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#097236490b3429142afc60b6f636f144">toFloat</a> (long n) const</td></tr>
<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="#097236490b3429142afc60b6f636f144"></a><br></td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="namespaceExiv2.html#95756f3f7fa19103f83addf5fa088a30">Rational</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#006d9f9f1ce12f26e14c19dd3ecb3f1f">toRational</a> (long n) const</td></tr>
<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="#006d9f9f1ce12f26e14c19dd3ecb3f1f"></a><br></td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="namespaceExiv2.html#95756f3f7fa19103f83addf5fa088a30">Rational</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#856a6e80a914e0bbd82dcbdc3f82d24b">toRational</a> (long n) const</td></tr>
<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="#856a6e80a914e0bbd82dcbdc3f82d24b"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Creators</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8c61467a7dd9a7ecf79a72e26e329ffb"></a><!-- doxytag: member="Exiv2::ValueType::ValueType" ref="8c61467a7dd9a7ecf79a72e26e329ffb" args="()" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#8c61467a7dd9a7ecf79a72e26e329ffb">ValueType</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5d312119ddbce9d179890fff1cf5736a"></a><!-- doxytag: member="Exiv2::ValueType::ValueType" ref="5d312119ddbce9d179890fff1cf5736a" args="(const byte *buf, long len, ByteOrder byteOrder)" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#5d312119ddbce9d179890fff1cf5736a">ValueType</a> (const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, long len, <a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> byteOrder)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="35d0b161c116d6d97a83ffece4a0303f"></a><!-- doxytag: member="Exiv2::ValueType::ValueType" ref="35d0b161c116d6d97a83ffece4a0303f" args="(const T &val, ByteOrder byteOrder=littleEndian)" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#35d0b161c116d6d97a83ffece4a0303f">ValueType</a> (const T &val, <a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> byteOrder=littleEndian)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="70608f4c0740f6b8413f684a5dd256b6"></a><!-- doxytag: member="Exiv2::ValueType::ValueType" ref="70608f4c0740f6b8413f684a5dd256b6" args="(const ValueType< T > &rhs)" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#70608f4c0740f6b8413f684a5dd256b6">ValueType</a> (const <a class="el" href="classExiv2_1_1ValueType.html">ValueType</a>< T > &rhs)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4f7a81b12f6bd8ec4e0d45f16a75ef35"></a><!-- doxytag: member="Exiv2::ValueType::~ValueType" ref="4f7a81b12f6bd8ec4e0d45f16a75ef35" args="()" -->
virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#4f7a81b12f6bd8ec4e0d45f16a75ef35">~ValueType</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Virtual destructor. <br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Manipulators</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0bd0a1b7695e49e7ea4fd8fe449be2bf"></a><!-- doxytag: member="Exiv2::ValueType::operator=" ref="0bd0a1b7695e49e7ea4fd8fe449be2bf" args="(const ValueType< T > &rhs)" -->
<a class="el" href="classExiv2_1_1ValueType.html">ValueType</a>< T > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#0bd0a1b7695e49e7ea4fd8fe449be2bf">operator=</a> (const <a class="el" href="classExiv2_1_1ValueType.html">ValueType</a>< T > &rhs)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#725c88fdf395b0dba55c13794b458b69">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)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Read the value from a character buffer. <a href="#725c88fdf395b0dba55c13794b458b69"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f66d05b6e6cf774f58f5110b5976a329"></a><!-- doxytag: member="Exiv2::ValueType::read" ref="f66d05b6e6cf774f58f5110b5976a329" args="(const std::string &buf)" -->
virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#f66d05b6e6cf774f58f5110b5976a329">read</a> (const std::string &buf)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the data from a string of values of type T (e.g., "0 1 2 3" or "1/2 1/3 1/4" depending on what T is). Generally, the accepted input format is the same as that produced by the <a class="el" href="classExiv2_1_1ValueType.html#b96e357d3c5dee6cab416cafa8da7e4a">write()</a> method. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="360e7872cfcb434d60bdc09dd243958e"></a><!-- doxytag: member="Exiv2::ValueType::setDataArea" ref="360e7872cfcb434d60bdc09dd243958e" args="(const byte *buf, long len)" -->
virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#360e7872cfcb434d60bdc09dd243958e">setDataArea</a> (const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, long len)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the data area. This method copies (clones) the buffer pointed to by buf. <br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Accessors</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5dc061e5ead43b510057d74820fa9d30"></a><!-- doxytag: member="Exiv2::ValueType::clone" ref="5dc061e5ead43b510057d74820fa9d30" args="() const " -->
<a class="el" href="classExiv2_1_1ValueType.html#0c76c512468a47f6eac463f4af278a14">AutoPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#5dc061e5ead43b510057d74820fa9d30">clone</a> () const </td></tr>
<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>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#106239c4587a27ce53b6a59b63d7b348">copy</a> (<a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, <a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> byteOrder) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Write value to a data buffer. <a href="#106239c4587a27ce53b6a59b63d7b348"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0ecd1ddb8a013243c266300cb7f34647"></a><!-- doxytag: member="Exiv2::ValueType::count" ref="0ecd1ddb8a013243c266300cb7f34647" args="() const " -->
virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#0ecd1ddb8a013243c266300cb7f34647">count</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the number of components of the value. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="db029a314e342525bf6a5e3132cd5848"></a><!-- doxytag: member="Exiv2::ValueType::size" ref="db029a314e342525bf6a5e3132cd5848" args="() const " -->
virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#db029a314e342525bf6a5e3132cd5848">size</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the size of the value in bytes. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b96e357d3c5dee6cab416cafa8da7e4a"></a><!-- doxytag: member="Exiv2::ValueType::write" ref="b96e357d3c5dee6cab416cafa8da7e4a" args="(std::ostream &os) const " -->
virtual std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#b96e357d3c5dee6cab416cafa8da7e4a">write</a> (std::ostream &os) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Write the value to an output stream. You do not usually have to use this function; it is used for the implementation of the output operator for Value, <a class="el" href="namespaceExiv2.html#be882054db13fc2f4f6f7e8e1261d982">operator<<(std::ostream &os, const Value &value)</a>. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#3dea33fa6bb1b9d3bdd1d0a05f0abad0">toLong</a> (long n=0) const </td></tr>
<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="#3dea33fa6bb1b9d3bdd1d0a05f0abad0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual float </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#550fc71135aa8491fa7a90f0f682c94d">toFloat</a> (long n=0) const </td></tr>
<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="#550fc71135aa8491fa7a90f0f682c94d"></a><br></td></tr>
<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_1ValueType.html#20632832dbb186f6ad287456c1b6b92b">toRational</a> (long n=0) const </td></tr>
<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="#20632832dbb186f6ad287456c1b6b92b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="683d678e10e050e10a7aa83958322900"></a><!-- doxytag: member="Exiv2::ValueType::sizeDataArea" ref="683d678e10e050e10a7aa83958322900" args="() const " -->
virtual long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#683d678e10e050e10a7aa83958322900">sizeDataArea</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the size of the data area. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b30d2836320975c3ad60312bf0a5133d"></a><!-- doxytag: member="Exiv2::ValueType::dataArea" ref="b30d2836320975c3ad60312bf0a5133d" args="() const " -->
virtual <a class="el" href="classExiv2_1_1DataBuf.html">DataBuf</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#b30d2836320975c3ad60312bf0a5133d">dataArea</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return a copy of the data area in a <a class="el" href="classExiv2_1_1DataBuf.html">DataBuf</a>. The caller owns this copy and <a class="el" href="classExiv2_1_1DataBuf.html">DataBuf</a> ensures that it will be deleted. <br></td></tr>
<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e5daa362d42b7b728cf795258650a35c"></a><!-- doxytag: member="Exiv2::ValueType::value_" ref="e5daa362d42b7b728cf795258650a35c" args="" -->
<a class="el" href="classExiv2_1_1ValueType.html#88ed5f3e8f59a9cf00eee8c6027e9f87">ValueList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ValueType.html#e5daa362d42b7b728cf795258650a35c">value_</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The container for all values. In your application, if you know what subclass of <a class="el" href="classExiv2_1_1Value.html">Value</a> you're dealing with (and possibly the T) then you can access this STL container through the usual standard library functions. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template<typename T><br>
class Exiv2::ValueType< T ></h3>
Template for a Value of a basic type. This is used for unsigned and signed short, long and rationals. <dl compact><dt><b>Examples: </b></dt><dd>
<p>
<a class="el" href="addmoddel_8cpp-example.html#_a6">addmoddel.cpp</a>.</dl>
<p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="106239c4587a27ce53b6a59b63d7b348"></a><!-- doxytag: member="Exiv2::ValueType::copy" ref="106239c4587a27ce53b6a59b63d7b348" args="(byte *buf, ByteOrder byteOrder) const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<typename T> </td>
</tr>
<tr>
<td class="md" nowrap valign="top">long <a class="el" href="classExiv2_1_1ValueType.html">Exiv2::ValueType</a>< T >::copy </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td>
<td class="mdname" nowrap> <em>buf</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> </td>
<td class="mdname" nowrap> <em>byteOrder</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"> const<code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Write value to a data buffer.
<p>
The user must ensure that the buffer has enough memory. Otherwise the call results in undefined behaviour.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>buf</em> </td><td>Data buffer to write to. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>byteOrder</em> </td><td>Applicable byte order (little or big endian). </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Number of bytes written. </dd></dl>
<p>
Implements <a class="el" href="classExiv2_1_1Value.html#3bf4f9c2eda4f7850a390de98668ce15">Exiv2::Value</a>. </td>
</tr>
</table>
<a class="anchor" name="725c88fdf395b0dba55c13794b458b69"></a><!-- doxytag: member="Exiv2::ValueType::read" ref="725c88fdf395b0dba55c13794b458b69" args="(const byte *buf, long len, ByteOrder byteOrder)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<typename T> </td>
</tr>
<tr>
<td class="md" nowrap valign="top">int <a class="el" href="classExiv2_1_1ValueType.html">Exiv2::ValueType</a>< T >::read </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td>
<td class="mdname" nowrap> <em>buf</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>long </td>
<td class="mdname" nowrap> <em>len</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> </td>
<td class="mdname" nowrap> <em>byteOrder</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Read the value from a character buffer.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>buf</em> </td><td>Pointer to the data buffer to read from </td></tr>
<tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>Number of bytes in the data buffer </td></tr>
<tr><td valign="top"></td><td valign="top"><em>byteOrder</em> </td><td>Applicable byte order (little or big endian).</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>0 if successful. </dd></dl>
<p>
Implements <a class="el" href="classExiv2_1_1Value.html#cc8870f802ebcdf9d4e081816ad8956e">Exiv2::Value</a>. </td>
</tr>
</table>
<a class="anchor" name="097236490b3429142afc60b6f636f144"></a><!-- doxytag: member="Exiv2::ValueType::toFloat" ref="097236490b3429142afc60b6f636f144" args="(long n) const" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<> </td>
</tr>
<tr>
<td class="md" nowrap valign="top">float <a class="el" href="classExiv2_1_1ValueType.html">Exiv2::ValueType</a>< <a class="el" href="namespaceExiv2.html#edcaa9af0563cbd00a19b040d5aa7a70">URational</a> >::toFloat </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">long </td>
<td class="mdname1" valign="top" nowrap> <em>n</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
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.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
<p>
Implements <a class="el" href="classExiv2_1_1Value.html#22d257caa6c1ffe6416ce02de7bd8c1c">Exiv2::Value</a>. </td>
</tr>
</table>
<a class="anchor" name="c68f4ac5e10a14ca84bbc9bef0f07cbf"></a><!-- doxytag: member="Exiv2::ValueType::toFloat" ref="c68f4ac5e10a14ca84bbc9bef0f07cbf" args="(long n) const" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<> </td>
</tr>
<tr>
<td class="md" nowrap valign="top">float <a class="el" href="classExiv2_1_1ValueType.html">Exiv2::ValueType</a>< <a class="el" href="namespaceExiv2.html#95756f3f7fa19103f83addf5fa088a30">Rational</a> >::toFloat </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">long </td>
<td class="mdname1" valign="top" nowrap> <em>n</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
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.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
<p>
Implements <a class="el" href="classExiv2_1_1Value.html#22d257caa6c1ffe6416ce02de7bd8c1c">Exiv2::Value</a>. </td>
</tr>
</table>
<a class="anchor" name="550fc71135aa8491fa7a90f0f682c94d"></a><!-- doxytag: member="Exiv2::ValueType::toFloat" ref="550fc71135aa8491fa7a90f0f682c94d" args="(long n=0) const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<typename T> </td>
</tr>
<tr>
<td class="md" nowrap valign="top">float <a class="el" href="classExiv2_1_1ValueType.html">Exiv2::ValueType</a>< T >::toFloat </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">long </td>
<td class="mdname1" valign="top" nowrap> <em>n</em> = <code>0</code> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
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.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
<p>
Implements <a class="el" href="classExiv2_1_1Value.html#22d257caa6c1ffe6416ce02de7bd8c1c">Exiv2::Value</a>. </td>
</tr>
</table>
<a class="anchor" name="fb8127ff26531236ff5a75232dcc0d84"></a><!-- doxytag: member="Exiv2::ValueType::toLong" ref="fb8127ff26531236ff5a75232dcc0d84" args="(long n) const" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<> </td>
</tr>
<tr>
<td class="md" nowrap valign="top">long <a class="el" href="classExiv2_1_1ValueType.html">Exiv2::ValueType</a>< <a class="el" href="namespaceExiv2.html#edcaa9af0563cbd00a19b040d5aa7a70">URational</a> >::toLong </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">long </td>
<td class="mdname1" valign="top" nowrap> <em>n</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
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.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
<p>
Implements <a class="el" href="classExiv2_1_1Value.html#4530a3fc3e2305cf994de5476f46f953">Exiv2::Value</a>. </td>
</tr>
</table>
<a class="anchor" name="4302aa0e8dee770c7265ed8e1fccb07c"></a><!-- doxytag: member="Exiv2::ValueType::toLong" ref="4302aa0e8dee770c7265ed8e1fccb07c" args="(long n) const" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<> </td>
</tr>
<tr>
<td class="md" nowrap valign="top">long <a class="el" href="classExiv2_1_1ValueType.html">Exiv2::ValueType</a>< <a class="el" href="namespaceExiv2.html#95756f3f7fa19103f83addf5fa088a30">Rational</a> >::toLong </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">long </td>
<td class="mdname1" valign="top" nowrap> <em>n</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
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.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
<p>
Implements <a class="el" href="classExiv2_1_1Value.html#4530a3fc3e2305cf994de5476f46f953">Exiv2::Value</a>. </td>
</tr>
</table>
<a class="anchor" name="3dea33fa6bb1b9d3bdd1d0a05f0abad0"></a><!-- doxytag: member="Exiv2::ValueType::toLong" ref="3dea33fa6bb1b9d3bdd1d0a05f0abad0" args="(long n=0) const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<typename T> </td>
</tr>
<tr>
<td class="md" nowrap valign="top">long <a class="el" href="classExiv2_1_1ValueType.html">Exiv2::ValueType</a>< T >::toLong </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">long </td>
<td class="mdname1" valign="top" nowrap> <em>n</em> = <code>0</code> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
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.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
<p>
Implements <a class="el" href="classExiv2_1_1Value.html#4530a3fc3e2305cf994de5476f46f953">Exiv2::Value</a>. </td>
</tr>
</table>
<a class="anchor" name="856a6e80a914e0bbd82dcbdc3f82d24b"></a><!-- doxytag: member="Exiv2::ValueType::toRational" ref="856a6e80a914e0bbd82dcbdc3f82d24b" args="(long n) const" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<> </td>
</tr>
<tr>
<td class="md" nowrap valign="top"><a class="el" href="namespaceExiv2.html#95756f3f7fa19103f83addf5fa088a30">Rational</a> <a class="el" href="classExiv2_1_1ValueType.html">Exiv2::ValueType</a>< <a class="el" href="namespaceExiv2.html#edcaa9af0563cbd00a19b040d5aa7a70">URational</a> >::toRational </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">long </td>
<td class="mdname1" valign="top" nowrap> <em>n</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
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.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
<p>
Implements <a class="el" href="classExiv2_1_1Value.html#595a4cb549bec8c19d290ca3e95a2678">Exiv2::Value</a>. </td>
</tr>
</table>
<a class="anchor" name="006d9f9f1ce12f26e14c19dd3ecb3f1f"></a><!-- doxytag: member="Exiv2::ValueType::toRational" ref="006d9f9f1ce12f26e14c19dd3ecb3f1f" args="(long n) const" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<> </td>
</tr>
<tr>
<td class="md" nowrap valign="top"><a class="el" href="namespaceExiv2.html#95756f3f7fa19103f83addf5fa088a30">Rational</a> <a class="el" href="classExiv2_1_1ValueType.html">Exiv2::ValueType</a>< <a class="el" href="namespaceExiv2.html#95756f3f7fa19103f83addf5fa088a30">Rational</a> >::toRational </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">long </td>
<td class="mdname1" valign="top" nowrap> <em>n</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
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.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
<p>
Implements <a class="el" href="classExiv2_1_1Value.html#595a4cb549bec8c19d290ca3e95a2678">Exiv2::Value</a>. </td>
</tr>
</table>
<a class="anchor" name="20632832dbb186f6ad287456c1b6b92b"></a><!-- doxytag: member="Exiv2::ValueType::toRational" ref="20632832dbb186f6ad287456c1b6b92b" args="(long n=0) const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<typename T> </td>
</tr>
<tr>
<td class="md" nowrap valign="top"><a class="el" href="namespaceExiv2.html#95756f3f7fa19103f83addf5fa088a30">Rational</a> <a class="el" href="classExiv2_1_1ValueType.html">Exiv2::ValueType</a>< T >::toRational </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">long </td>
<td class="mdname1" valign="top" nowrap> <em>n</em> = <code>0</code> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
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.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>
<p>
Implements <a class="el" href="classExiv2_1_1Value.html#595a4cb549bec8c19d290ca3e95a2678">Exiv2::Value</a>. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="value_8hpp.html">value.hpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 2 23:55:44 2006 for Exiv2 by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
</body>
</html>
|