 |
Exiv2
|
Go to the documentation of this file.
31 #ifndef PROPERTIES_HPP_
32 #define PROPERTIES_HPP_
35 #include "exiv2lib_export.h"
106 static void unregisterNsUnsafe(
const std::string& ns);
116 static const char* propertyTitle(
const XmpKey& key);
123 static const char* propertyDesc(
const XmpKey& key);
158 static const char* nsDesc(
const std::string& prefix);
184 static void printProperties(std::ostream& os,
const std::string& prefix);
187 static std::ostream& printProperty(std::ostream& os,
220 static void unregisterNs();
283 virtual const char* familyName()
const;
292 virtual uint16_t tag()
const;
303 virtual XmpKey* clone_()
const;
308 std::auto_ptr<Impl> p_;
320 #endif // #ifndef PROPERTIES_HPP_
bool operator==(const std::string &name) const
Comparison operator for name.
const char * xmpValueType_
XMP value type (for info only)
Definition: properties.hpp:62
Key & operator=(const Key &rhs)
Assignment operator. Protected so that it can only be used by subclasses but not directly.
Definition: metadatum.cpp:49
virtual std::string tagName() const
Return the name of the tag (which is also the third part of the key)
static TypeId propertyType(const XmpKey &key)
Return the type for property key. The default for unknown keys is xmpText.
virtual std::string groupName() const
Return the name of the group (the second part of the key). For XMP keys, the group name is the schema...
std::ostream & print0x0009(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS status.
Definition: tags_int.cpp:2348
std::ostream & printXmpVersion(std::ostream &os, const Value &value, const ExifData *)
Print any version encoded in the ASCII string majormajorminorminor.
Definition: tags_int.cpp:2849
const char * prefix_
(Preferred) prefix
Definition: properties.hpp:90
static const char * propertyTitle(const XmpKey &key)
Return the title (label) of the property.
std::string prefix_
The prefix string.
Definition: properties.hpp:75
std::ostream & print0x9208(std::ostream &os, const Value &value, const ExifData *metadata)
Print light source.
Definition: tags_int.cpp:2607
const char * title_
Property title or label.
Definition: properties.hpp:61
std::string ns() const
Return the schema namespace for the prefix of the key.
Common interface for all types of values used with metadata.
Definition: value.hpp:60
static const char * nsDesc(const std::string &prefix)
Return the namespace description for the schema associated with prefix.
XmpKey(const std::string &key)
Constructor to create an XMP key from a key string.
std::ostream & print0xa40c(std::ostream &os, const Value &value, const ExifData *metadata)
Print subject distance range.
Definition: tags_int.cpp:2806
std::auto_ptr< Key > AutoPtr
Shortcut for a Key auto pointer.
Definition: metadatum.hpp:58
Type definitions for Exiv2 and related functionality.
Ns(const std::string &ns)
Constructor.
std::ostream & printNormalSoftHard(std::ostream &os, const Value &value, const ExifData *metadata)
Print contrast, sharpness (normal, soft, hard)
Definition: tags_int.cpp:2829
std::ostream & printLong(std::ostream &os, const Value &value, const ExifData *)
Print the value converted to a long.
Definition: tags_int.cpp:2196
std::ostream & print0x9202(std::ostream &os, const Value &value, const ExifData *)
Print f-number converted from APEX aperture value.
Definition: tags_int.cpp:2503
static std::string ns(const std::string &prefix)
Return the namespace name for the schema associated with prefix.
std::ostream & print0x8822(std::ostream &os, const Value &value, const ExifData *metadata)
Print exposure program.
Definition: tags_int.cpp:2462
virtual uint16_t tag() const
Properties don't have a tag number. Return 0.
For comparison with prefix.
Definition: properties.hpp:71
bool operator==(const Ns &ns) const
Comparison operator for namespace.
#define EXV_COUNTOF(a)
Macro to determine the size of an array.
Definition: types.hpp:517
std::ostream & printFloat(std::ostream &os, const Value &value, const ExifData *)
Print a Rational or URational value in floating point format.
Definition: tags_int.cpp:2203
std::ostream & print0x0019(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS destination distance ref.
Definition: tags_int.cpp:2363
Concrete keys for XMP metadata.
Definition: properties.hpp:241
std::string ns_
The namespace string.
Definition: properties.hpp:82
static void registeredNamespaces(Exiv2::Dictionary &nsDict)
Get all registered namespaces (for both Exiv2 and XMPsdk)
const char * desc_
Property description.
Definition: properties.hpp:65
const char * ns_
Namespace.
Definition: properties.hpp:89
std::ostream & printXmpDate(std::ostream &os, const Value &value, const ExifData *)
Print a date following the format YYYY-MM-DDTHH:MM:SSZ.
Definition: tags_int.cpp:2858
static const XmpNsInfo * nsInfo(const std::string &prefix)
Return information about a schema namespace for prefix. Always returns a valid pointer.
const char * groupName(IfdId ifdId)
Return the group name for a group id.
Definition: tags_int.cpp:2155
XmpCategory xmpCategory_
Category (internal or external)
Definition: properties.hpp:64
std::ostream & print0x001e(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS differential correction.
Definition: tags_int.cpp:2368
std::ostream &(* PrintFct)(std::ostream &, const Value &, const ExifData *pExifData)
Type for a function pointer for functions interpreting the tag value.
Definition: tags.hpp:57
Information about one XMP property.
Definition: properties.hpp:56
@ invalidTypeId
Invalid type id.
Definition: types.hpp:157
Abstract base class defining the Key of a metadatum. Keys are used to identify and group metadata.
Definition: metadatum.hpp:55
std::ostream & printGPSDirRef(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS direction ref.
Definition: tags_int.cpp:2817
static void unregisterNs()
Unregister all custom namespaces.
std::ostream & print0xa402(std::ostream &os, const Value &value, const ExifData *metadata)
Print exposure mode.
Definition: tags_int.cpp:2711
static void printProperties(std::ostream &os, const std::string &prefix)
Print a list of properties of a schema namespace to output stream os.
std::ostream & print0xa407(std::ostream &os, const Value &value, const ExifData *metadata)
Print gain control.
Definition: tags_int.cpp:2780
@ xmpBag
XMP bag type.
Definition: types.hpp:154
std::ostream & print0x0112(std::ostream &os, const Value &value, const ExifData *metadata)
Print orientation.
Definition: tags_int.cpp:2373
TypeId typeId_
Exiv2 default type for the property.
Definition: properties.hpp:63
std::ostream & printValue(std::ostream &os, const Value &value, const ExifData *)
Default print function, using the Value output operator.
Definition: tags_int.cpp:2162
std::ostream & print0x000c(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS speed ref.
Definition: tags_int.cpp:2358
const T * find(T(&src)[N], const K &key)
Find an element that matches key in the array src.
Definition: types.hpp:508
std::ostream & print0x000a(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS measurement mode.
Definition: tags_int.cpp:2353
static const char * propertyDesc(const XmpKey &key)
Return the description of the property.
@ langAlt
XMP language alternative type.
Definition: types.hpp:156
std::ostream & print0x9204(std::ostream &os, const Value &value, const ExifData *)
Print the exposure bias value.
Definition: tags_int.cpp:2518
EXIV2API std::ostream & operator<<(std::ostream &os, const DataSet &dataSet)
Output operator for dataSet.
Definition: datasets.cpp:709
XMP property and type information. References: XMP Specification from Adobe (Property descriptions c...
std::map< std::string, XmpNsInfo > NsRegistry
Type for the namespace registry.
Definition: properties.hpp:222
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: asfvideo.hpp:36
Value interface and concrete subclasses.
static const XmpPropertyInfo * propertyInfo(const XmpKey &key)
Return information for the property for key.
TypeId
Exiv2 value type identifiers.
Definition: types.hpp:130
static const XmpPropertyInfo * propertyList(const std::string &prefix)
Return read-only list of built-in properties for prefix.
Structure mapping XMP namespaces and (preferred) prefixes.
Definition: properties.hpp:69
static void registerNs(const std::string &ns, const std::string &prefix)
Register namespace ns with preferred prefix prefix.
virtual std::string key() const
Return the key of the metadatum as a string. The key is of the form 'familyName.groupName....
static const char * typeName(TypeId typeId)
Return the name of the type, 0 if unknown.
Definition: types.cpp:107
#define EXV_WARNING
Shorthand for a temp warning log message object and return its ostringstream.
Definition: error.hpp:148
const char * desc_
Brief description of the namespace.
Definition: properties.hpp:92
Class to provide a Read-Write Lock.
Definition: rwlock.hpp:89
bool operator==(const TagDetails &td, const LensTypeAndFocalLengthAndMaxAperture <fl)
Compare tag details with a lens entry.
Definition: canonmn_int.cpp:1809
Prefix(const std::string &prefix)
Constructor.
std::ostream & print0x9201(std::ostream &os, const Value &value, const ExifData *)
Print exposure time converted from APEX shutter speed value.
Definition: tags_int.cpp:2490
static NsRegistry nsRegistry_
Namespace registry.
Definition: properties.hpp:229
std::ostream & print0xa406(std::ostream &os, const Value &value, const ExifData *metadata)
Print scene capture type.
Definition: tags_int.cpp:2766
std::ostream & print0x9101(std::ostream &os, const Value &value, const ExifData *)
Print components configuration specific to compressed data.
Definition: tags_int.cpp:2472
const char * name_
Property name.
Definition: properties.hpp:60
std::ostream & print0xa217(std::ostream &os, const Value &value, const ExifData *metadata)
Print sensing method.
Definition: tags_int.cpp:2666
virtual std::string tagLabel() const
Return a label for the tag.
std::ostream & print0xa401(std::ostream &os, const Value &value, const ExifData *metadata)
Print custom rendered.
Definition: tags_int.cpp:2699
std::ostream & print0xa409(std::ostream &os, const Value &value, const ExifData *metadata)
Print saturation.
Definition: tags_int.cpp:2792
std::ostream & print0x0213(std::ostream &os, const Value &value, const ExifData *metadata)
Print YCbCrPositioning.
Definition: tags_int.cpp:2383
virtual const char * familyName() const
Return an identifier for the type of metadata (the first part of the key)
std::ostream & print0x829d(std::ostream &os, const Value &value, const ExifData *)
Print the f-number.
Definition: tags_int.cpp:2431
std::auto_ptr< XmpKey > AutoPtr
Shortcut for an XmpKey auto pointer.
Definition: properties.hpp:245
For comparison with namespace.
Definition: properties.hpp:78
BasicError< char > Error
Error class used for exceptions (std::string based)
Definition: error.hpp:323
std::ostream & print0x0005(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS altitude ref.
Definition: tags_int.cpp:2292
@ xmpText
XMP text type.
Definition: types.hpp:152
static std::string prefix(const std::string &ns)
Return the (preferred) prefix for schema namespace ns.
std::ostream & printExifUnit(std::ostream &os, const Value &value, const ExifData *metadata)
Print function for Exif units.
Definition: tags_int.cpp:2272
@ string
IPTC string type.
Definition: types.hpp:147
std::map< std::string, std::string > Dictionary
typedef for string:string map
Definition: datasets.hpp:364
std::ostream & print0xa300(std::ostream &os, const Value &value, const ExifData *metadata)
Print file source.
Definition: tags_int.cpp:2678
std::ostream & print0x9207(std::ostream &os, const Value &value, const ExifData *metadata)
Print metering mode.
Definition: tags_int.cpp:2577
std::ostream & print0xa403(std::ostream &os, const Value &value, const ExifData *metadata)
Print white balance.
Definition: tags_int.cpp:2722
@ xmpSeq
XMP sequence type.
Definition: types.hpp:155
std::ostream & print0x920a(std::ostream &os, const Value &value, const ExifData *)
Print the actual focal length of the lens.
Definition: tags_int.cpp:2612
IPTC dataset and type information.
static Exiv2::RWLock rwLock_
lock to be used while modifying properties
Definition: properties.hpp:210
const XmpPropertyInfo * xmpPropertyInfo_
List of known properties.
Definition: properties.hpp:91
static std::ostream & printProperty(std::ostream &os, const std::string &key, const Value &value)
Interpret and print the value of an XMP property.
std::ostream & print0xa001(std::ostream &os, const Value &value, const ExifData *metadata)
Print color space.
Definition: tags_int.cpp:2650
XMP property reference, implemented as a static class.
Definition: properties.hpp:96
XmpKey & operator=(const XmpKey &rhs)
Assignment operator.
virtual ~XmpKey()
Virtual destructor.
XmpCategory
Category of an XMP property.
Definition: properties.hpp:53
std::ostream & print0xa301(std::ostream &os, const Value &value, const ExifData *metadata)
Print scene type.
Definition: tags_int.cpp:2688
static const XmpNsInfo * lookupNsRegistry(const XmpNsInfo::Prefix &prefix)
Get the registered namespace for a specific prefix from the registry.
Error class for exceptions, log message class.