#include "types.hpp"
#include <string>
#include <vector>
#include <iostream>
#include <sstream>
#include <memory>
Include dependency graph for value.hpp:
This graph shows which files directly or indirectly include this file:
Namespaces | |
namespace | Exiv2 |
Typedefs | |
typedef ValueType< uint16_t > | UShortValue |
Unsigned short value type. | |
typedef ValueType< uint32_t > | ULongValue |
Unsigned long value type. | |
typedef ValueType< URational > | URationalValue |
Unsigned rational value type. | |
typedef ValueType< int16_t > | ShortValue |
Signed short value type. | |
typedef ValueType< int32_t > | LongValue |
Signed long value type. | |
typedef ValueType< Rational > | RationalValue |
Signed rational value type. | |
Functions | |
std::ostream & | operator<< (std::ostream &os, const Value &value) |
Output operator for Value types. | |
template<typename T> | |
TypeId | getType () |
Template to determine the TypeId for a type T. | |
template<> | |
TypeId | getType< uint16_t > () |
Specialization for an unsigned short. | |
template<> | |
TypeId | getType< uint32_t > () |
Specialization for an unsigned long. | |
template<> | |
TypeId | getType< URational > () |
Specialization for an unsigned rational. | |
template<> | |
TypeId | getType< int16_t > () |
Specialization for a signed short. | |
template<> | |
TypeId | getType< int32_t > () |
Specialization for a signed long. | |
template<> | |
TypeId | getType< Rational > () |
Specialization for a signed rational. | |
template<typename T> | |
T | getValue (const byte *buf, ByteOrder byteOrder) |
Read a value of type T from the data buffer. | |
template<typename T> | |
long | toData (byte *buf, T t, ByteOrder byteOrder) |
Convert a value of type T to data, write the data to the data buffer. | |
template<> | |
long | toData (byte *buf, uint16_t t, ByteOrder byteOrder) |
Specialization to write an unsigned short to the data buffer. Return the number of bytes written. | |
template<> | |
long | toData (byte *buf, uint32_t t, ByteOrder byteOrder) |
Specialization to write an unsigned long to the data buffer. Return the number of bytes written. | |
template<> | |
long | toData (byte *buf, URational t, ByteOrder byteOrder) |
Specialization to write an unsigned rational to the data buffer. Return the number of bytes written. | |
template<> | |
long | toData (byte *buf, int16_t t, ByteOrder byteOrder) |
Specialization to write a signed short to the data buffer. Return the number of bytes written. | |
template<> | |
long | toData (byte *buf, int32_t t, ByteOrder byteOrder) |
Specialization to write a signed long to the data buffer. Return the number of bytes written. | |
template<> | |
long | toData (byte *buf, Rational t, ByteOrder byteOrder) |
Specialization to write a signed rational to the data buffer. Return the number of bytes written. |
|
Read a value of type T from the data buffer. We need this template function for the ValueType template classes. There are only specializations of this function available; no default implementation is provided.
|
|
Convert a value of type T to data, write the data to the data buffer. We need this template function for the ValueType template classes. There are only specializations of this function available; no default implementation is provided.
|