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);
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_;
443 #endif // #ifndef XMP_HPP_ A container for XMP data. This is a top-level class of the Exiv2 library.
Definition: xmp_exiv2.hpp:173
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition: exif.hpp:434
void setValue(const Value *pValue)
Set the value. This method copies (clones) the value pointed to by pValue.
Definition: xmp.cpp:293
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
T getValue(const byte *buf, ByteOrder byteOrder)
Read a value of type T from the data buffer.
Definition: value.hpp:1372
std::map< std::string, std::string > Dictionary
typedef for string:string map
Definition: datasets.hpp:364
TypeId
Exiv2 value type identifiers.
Definition: types.hpp:130
const Value & value() const
Return a constant reference to the value.
Definition: xmp.cpp:264
bool usePacket(bool b)
set usePacket_
Definition: xmp_exiv2.hpp:255
XmpFormatFlags
Options to control the format of the serialized XMP packet.
Definition: xmp_exiv2.hpp:278
XmpMetadata::const_iterator const_iterator
XmpMetadata const iterator type.
Definition: xmp_exiv2.hpp:181
uint8_t byte
1 byte unsigned integer type.
Definition: types.hpp:105
XMP property and type information. References: XMP Specification from Adobe (Property descriptions c...
std::string toString(const T &arg)
Utility function to convert the argument of any type to a string.
Definition: types.hpp:521
bool usePacket() const
are we to use the packet?
Definition: xmp_exiv2.hpp:252
Information related to an XMP property. An XMP metadatum consists of an XmpKey and a Value and provid...
Definition: xmp_exiv2.hpp:52
XMP property reference, implemented as a static class.
Definition: properties.hpp:96
Internal Pimpl structure of class Xmpdatum.
Definition: xmp.cpp:125
Stateless parser class for XMP packets. Images use this class to parse and serialize XMP packets...
Definition: xmp_exiv2.hpp:275
XmpData()
Default constructor.
Definition: xmp_exiv2.hpp:176
Concrete keys for XMP metadata.
Definition: properties.hpp:241
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. Otherwise a new ValueType<T> value is created and set to value.
Definition: exif.cpp:193
const char * groupName(IfdId ifdId)
Return the group name for a group id.
Definition: tags_int.cpp:2155
IPTC string type.
Definition: types.hpp:147
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
XmpMetadata::iterator iterator
XmpMetadata iterator type.
Definition: xmp_exiv2.hpp:179
void(* XmpLockFct)(void *pLockData, bool lockUnlock)
Lock/unlock function type.
Definition: xmp_exiv2.hpp:333
void setPacket(const std::string &xmpPacket)
setPacket
Definition: xmp_exiv2.hpp:257
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: asfvideo.hpp:36
std::vector< Xmpdatum > XmpMetadata
Container type to hold all metadata.
Definition: xmp_exiv2.hpp:161
Xmpdatum & operator=(const Xmpdatum &rhs)
Assignment operator.
Definition: xmp.cpp:167