 |
Exiv2
|
23 #include "exiv2lib_export.h"
31 #if defined(EXV_HAVE_REGEX_H)
36 typedef std::vector<regex_t> exv_grep_keys_t ;
57 typedef std::vector<Exiv2_grep_key_t> exv_grep_keys_t ;
64 #define EXIV2_MAKE_VERSION(major,minor,patch) \
65 (((major) << 16) | ((minor) << 8) | (patch))
70 #define EXIV2_VERSION \
71 EXIV2_MAKE_VERSION(EXIV2_MAJOR_VERSION,EXIV2_MINOR_VERSION,EXIV2_PATCH_VERSION)
116 #define EXIV2_TEST_VERSION(major,minor,patch) \
117 ( EXIV2_VERSION >= EXIV2_MAKE_VERSION(major,minor,patch) )
138 EXIV2API
const char*
version();
147 EXIV2API
bool testVersion(
int major,
int minor,
int patch);
152 EXIV2API
void dumpLibraryInfo(std::ostream& os,
const exv_grep_keys_t& keys);
157 #endif // VERSION_HPP_
StringVector::const_iterator StringVector_i
Class to provide a StringVector iterator.
Definition: datasets.hpp:398
EXIV2API int versionNumber()
Return the version of Exiv2 available at runtime as an integer.
Definition: version.cpp:84
std::vector< std::string > StringVector
typedef for string vector
Definition: datasets.hpp:390
EXIV2API bool fileExists(const std::string &path, bool ct=false)
Test if a file exists.
Definition: futils.cpp:271
Dictionary::const_iterator Dictionary_i
typedef for Dictionary iterator
Definition: datasets.hpp:372
std::set< std::string > StringSet
typedef for string set (unique strings)
Definition: datasets.hpp:377
Exiv2_grep_key_t(std::string pattern, bool bIgnoreCase)
Exiv2_grep_key_t constructor.
Definition: version.hpp:45
static void registeredNamespaces(Exiv2::Dictionary &nsDict)
Get all registered namespaces (for both Exiv2 and XMPsdk)
EXIV2API std::string versionString()
Return the version string Example: "0.25.0" (major.minor.patch)
Definition: version.cpp:89
EXIV2API bool testVersion(int major, int minor, int patch)
Test the version of the available Exiv2 library at runtime. Return true if it is the same as or newer...
Definition: version.cpp:108
std::string getExiv2ConfigPath()
Determine the path to the Exiv2 configuration file.
Definition: makernote_int.cpp:94
EXIV2API std::string getProcessPath()
Return the path of the current process.
Definition: futils.cpp:434
bool bIgnoreCase_
should we ignore cast in the match?
Definition: version.hpp:52
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: asfvideo.hpp:36
exv_grep_key_t is a simple string and the ignore flag
Definition: version.hpp:41
EXIV2API void dumpLibraryInfo(std::ostream &os, const exv_grep_keys_t &keys)
dumpLibraryInfo implements the exiv2 option –version –verbose used by exiv2 test suite to inspect...
Definition: version.cpp:235
std::string pattern_
simple string to match
Definition: version.hpp:49
@ string
IPTC string type.
Definition: types.hpp:136
std::map< std::string, std::string > Dictionary
typedef for string:string map
Definition: datasets.hpp:364
const EXIV2API char * version()
Return the version of Exiv2 as "C" string eg "0.27.0.2".
Definition: version.cpp:103
EXIV2API std::string versionNumberHexString()
Return the version of Exiv2 as hex string of fixed length 6.
Definition: version.cpp:96