31 #include "exiv2lib_export.h"
69 const Value* pValue =0);
89 Xmpdatum& operator=(
const char* value);
94 Xmpdatum& operator=(
const bool& value);
100 Xmpdatum& operator=(
const T& value);
119 long copy(
byte* buf,
ByteOrder byteOrder)
const;
121 std::ostream& write(std::ostream& os,
const ExifData* pMetadata =0)
const;
129 const char* familyName()
const;
136 uint16_t tag()
const;
138 const char* typeName()
const;
141 long typeSize()
const;
146 long toLong(
long n =0)
const;
147 float toFloat(
long n =0)
const;
148 Rational toRational(
long n =0)
const;
150 const Value& value()
const;
156 std::auto_ptr<Impl> p_;
176 XmpData() : xmpMetadata_(), xmpPacket_(), usePacket_(0) {}
255 bool usePacket(
bool b) {
bool r = usePacket_; usePacket_=b ;
return r; };
259 const std::string& xmpPacket()
const {
return xmpPacket_ ; };
279 omitPacketWrapper = 0x0010UL,
280 readOnlyPacket = 0x0020UL,
281 useCompactFormat = 0x0040UL,
282 includeThumbnailPad = 0x0100UL,
283 exactPacketLength = 0x0200UL,
284 writeAliasComments = 0x0400UL,
285 omitAllFormatting = 0x0800UL
300 static int decode(
XmpData& xmpData,
321 uint16_t formatFlags =useCompactFormat,
322 uint32_t padding =0);
333 typedef void (*XmpLockFct)(
void* pLockData,
bool lockUnlock);
392 static void terminate();
413 static bool initialized_;
414 static XmpLockFct xmpLockFct_;
415 static void* pLockData_;
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition: exif.hpp:434
Common interface for all types of values used with metadata.
Definition: value.hpp:60
std::auto_ptr< Value > AutoPtr
Shortcut for a Value auto pointer.
Definition: value.hpp:63
A container for XMP data. This is a top-level class of the Exiv2 library.
Definition: xmp_exiv2.hpp:173
XmpData()
Default constructor.
Definition: xmp_exiv2.hpp:176
XmpMetadata::iterator iterator
XmpMetadata iterator type.
Definition: xmp_exiv2.hpp:179
bool usePacket(bool b)
set usePacket_
Definition: xmp_exiv2.hpp:255
XmpMetadata::const_iterator const_iterator
XmpMetadata const iterator type.
Definition: xmp_exiv2.hpp:181
bool usePacket() const
are we to use the packet?
Definition: xmp_exiv2.hpp:252
void setPacket(const std::string &xmpPacket)
setPacket
Definition: xmp_exiv2.hpp:257
Concrete keys for XMP metadata.
Definition: properties.hpp:242
Stateless parser class for XMP packets. Images use this class to parse and serialize XMP packets....
Definition: xmp_exiv2.hpp:275
XmpFormatFlags
Options to control the format of the serialized XMP packet.
Definition: xmp_exiv2.hpp:278
void(* XmpLockFct)(void *pLockData, bool lockUnlock)
Lock/unlock function type.
Definition: xmp_exiv2.hpp:333
XMP property reference, implemented as a static class.
Definition: properties.hpp:96
Information related to an XMP property. An XMP metadatum consists of an XmpKey and a Value and provid...
Definition: xmp_exiv2.hpp:52
Xmpdatum & operator=(const Xmpdatum &rhs)
Assignment operator.
Definition: xmp.cpp:167
const Value & value() const
Return a constant reference to the value.
Definition: xmp.cpp:264
void setValue(const Value *pValue)
Set the value. This method copies (clones) the value pointed to by pValue.
Definition: xmp.cpp:293
const char * groupName(IfdId ifdId)
Return the group name for a group id.
Definition: tags_int.cpp:2159
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: asfvideo.hpp:36
T getValue(const byte *buf, ByteOrder byteOrder)
Read a value of type T from the data buffer.
Definition: value.hpp:1372
TypeId
Exiv2 value type identifiers.
Definition: types.hpp:130
@ string
IPTC string type.
Definition: types.hpp:147
Exiv2::Exifdatum & setValue(Exiv2::Exifdatum &exifDatum, const T &value)
Set the value of exifDatum to value. If the object already has a value, it is replaced....
Definition: exif.cpp:193
ByteOrder
Type to express the byte order (little or big endian)
Definition: types.hpp:113
std::pair< int32_t, int32_t > Rational
8 byte signed rational type.
Definition: types.hpp:110
std::string toString(const T &arg)
Utility function to convert the argument of any type to a string.
Definition: types.hpp:521
std::vector< Xmpdatum > XmpMetadata
Container type to hold all metadata.
Definition: xmp_exiv2.hpp:161
std::map< std::string, std::string > Dictionary
typedef for string:string map
Definition: datasets.hpp:364
XMP property and type information. References: XMP Specification from Adobe (Property descriptions c...
Internal Pimpl structure of class Xmpdatum.
Definition: xmp.cpp:125