 |
Exiv2
|
Go to the documentation of this file.
32 #include "exiv2/config.h"
34 #include "exiv2/basicio.hpp"
45 #include "exiv2/http.hpp"
47 #include "exiv2/ini.hpp"
49 #include "exiv2/jp2image.hpp"
67 #include "exiv2/ssh.hpp"
72 #include "exiv2/tiffimage.hpp"
76 #include "exiv2/xmp_exiv2.hpp"
79 #endif // #ifndef EXIV2_HPP_
bool timestamp_
Rename also sets the file timestamp.
Definition: exiv2app.hpp:227
std::string directory_
Location for files to extract/insert.
Definition: exiv2app.hpp:246
static TypeId propertyType(const XmpKey &key)
Return the type for property key. The default for unknown keys is xmpText.
const int xmp
XMP sidecar files (see class XmpSidecar)
Definition: xmpsidecar.hpp:45
std::vector< ModifyCmd > ModifyCmds
Container for modification commands.
Definition: exiv2app.hpp:96
Structure to link command identifiers to strings.
Definition: exiv2app.hpp:98
Truevision TARGA v2 image, implemented using the following references: Truevision TGA page on Wikiped...
byte * pData_
Pointer to the buffer, 0 if none has been allocated.
Definition: types.hpp:269
Photoshop image, implemented using the following references: Adobe Photoshop 6.0 File Format Specific...
A collection of utility functions.
Encoding and decoding of Exif data.
Class CrwImage to access Canon CRW images. References: The Canon RAW (CRW) File Format by Phil Harv...
long adjustment_
Adjustment in seconds.
Definition: exiv2app.hpp:238
bool flag_
Adjustment flag.
Definition: exiv2app.hpp:215
Windows Bitmap (BMP) image.
MetadataId metadataId_
Metadata identifier.
Definition: exiv2app.hpp:89
CmdFiles cmdFiles_
Names of the modification command files.
Definition: exiv2app.hpp:242
Type definitions for Exiv2 and related functionality.
bool preserve_
Preserve timestamps flag.
Definition: exiv2app.hpp:226
Include all Exiv2 header files.
CmdId
Command identifiers.
Definition: exiv2app.hpp:70
Structure for one parsed modification command.
Definition: exiv2app.hpp:82
unsigned long printItems_
Print items.
Definition: exiv2app.hpp:232
static void setLevel(Level level)
Set the log level. Only log messages with a level greater or equal level are sent to the log message ...
Definition: error.cpp:195
Error class interface. Allows the definition and use of a hierarchy of error classes which can all be...
Definition: error.hpp:174
Precompiler define and a function to test the Exiv2 version. References: Similar versioning defines a...
void cleanup()
Destructor.
Definition: exiv2.cpp:213
bool verbose_
Verbose (talkative) option flag.
Definition: exiv2app.hpp:222
FileExistsPolicy fileExistsPolicy_
What to do if file to rename exists.
Definition: exiv2app.hpp:229
bool binary_
Suppress long binary values.
Definition: exiv2app.hpp:224
Keys keys_
List of keys to match from the metadata.
Definition: exiv2app.hpp:251
std::string value_
Data.
Definition: exiv2app.hpp:93
CmdLines cmdLines_
Commands from the command line.
Definition: exiv2app.hpp:243
PreviewNumbers previewNumbers_
List of preview numbers.
Definition: exiv2app.hpp:249
Concrete keys for XMP metadata.
Definition: properties.hpp:241
PrintMode printMode_
Print mode.
Definition: exiv2app.hpp:231
ModifyCmds modifyCmds_
Parsed modification commands.
Definition: exiv2app.hpp:244
GIF image, implemented using the following references: GIF89 specification by W3C
bool version_
Version option flag.
Definition: exiv2app.hpp:221
const uint32_t all
Special tag: all tags in a group.
Definition: tiffcomposite_int.hpp:82
static TypeId dataSetType(uint16_t number, uint16_t recordId)
Return the type for dataSet number and Record id.
Definition: datasets.cpp:478
bool help_
Help option flag.
Definition: exiv2app.hpp:220
bool timestampOnly_
Rename only sets the file timestamp.
Definition: exiv2app.hpp:228
static std::string printTarget(const std::string &before, int target, bool bPrint=false, std::ostream &os=std::cout)
Print target_.
Definition: exiv2.cpp:250
An Image subclass to support XMP sidecar files.
PGF image, implemented using the following references: PGF specification from libpgf web site
static TypeId typeId(const std::string &typeName)
Return the type id for a type name.
Definition: types.cpp:114
Classes to access all preview images embedded in an image.
EXIV2API std::string getProcessPath()
Return the path of the current process.
Definition: futils.cpp:470
EXIV2API bool convertStringCharset(std::string &str, const char *from, const char *to)
Convert character encoding of str from from to to. If the function succeeds, str contains the result ...
Definition: convert.cpp:1351
static void terminate()
Terminate the XMP Toolkit and unregister custom namespaces.
Definition: xmp.cpp:540
@ invalidTypeId
Invalid type id.
Definition: types.hpp:157
const char * option_
Adjustment option string.
Definition: exiv2app.hpp:216
uint8_t byte
1 byte unsigned integer type.
Definition: types.hpp:105
std::set< int > PreviewNumbers
Container for preview image numbers.
Definition: exiv2app.hpp:150
static void unregisterNs()
Unregister all custom namespaces.
MetadataId
Metadata identifiers.
Definition: exiv2app.hpp:75
std::string key_
Exiv2 key string.
Definition: exiv2app.hpp:88
Minolta RAW image, implemented using the following references: Minolta Raw file format by Dalibor Jel...
Defines class Params, used for the command line handling of exiv2.
std::vector< std::string > CmdLines
Container for commands from the command line.
Definition: exiv2app.hpp:146
bool formatSet_
Whether the format is set with -r.
Definition: exiv2app.hpp:241
Utility class containing a character array. All it does is to take care of memory allocation and dele...
Definition: types.hpp:204
void alloc(long size)
Allocate a data buffer of at least the given size. Note that if the requested size is less than the c...
Definition: types.cpp:161
void help(std::ostream &os=std::cout) const
Print further usage explanations to an output stream.
Definition: exiv2.cpp:269
Concrete keys for Exif metadata and access to Exif tag reference data.
Definition: tags.hpp:148
long size_
The current size of the buffer.
Definition: types.hpp:271
std::string charset_
Charset to use for UNICODE Exif user comment.
Definition: exiv2app.hpp:252
Structure for year, month and day adjustment command line arguments.
Definition: exiv2app.hpp:214
bool unknown_
Suppress unknown tags.
Definition: exiv2app.hpp:225
static Params & instance()
Controls all access to the global Params instance.
Definition: exiv2.cpp:197
bool strtol(const char *nptr, long &n)
Convert a C string to a long value, which is returned in n. Returns true if the conversion is success...
Definition: utils.cpp:104
void usage(std::ostream &os=std::cout) const
Print a minimal usage note to an output stream.
Definition: exiv2.cpp:243
XMP property and type information. References: XMP Specification from Adobe (Property descriptions c...
YodAdjust yodAdjust_[3]
Year, month and day adjustment info.
Definition: exiv2app.hpp:239
Value interface and concrete subclasses.
Exif and IPTC conversions to and from XMP.
unsigned long printTags_
Print tags (bitmap of MetadataId flags). Action (integer rather than TaskType to avoid dependency).
Definition: exiv2app.hpp:233
TypeId
Exiv2 value type identifiers.
Definition: types.hpp:130
int target_
What common target to process.
Definition: exiv2app.hpp:236
const int none
Not an image.
Definition: image.hpp:48
static void registerNs(const std::string &ns, const std::string &prefix)
Register namespace ns with preferred prefix prefix.
bool adjust_
Adjustment flag.
Definition: exiv2app.hpp:230
exv_grep_key_t is a simple string and the ignore flag
Definition: version.hpp:51
Greps greps_
List of keys to 'grep' from the metadata.
Definition: exiv2app.hpp:250
Provides easy (high-level) access to some Exif meta data.
int getopt(int argc, char *const argv[])
Call Getopt::getopt() with optstring, to inititate command line argument parsing, perform consistency...
std::string format_
Filename format (-r option arg).
Definition: exiv2app.hpp:240
Files files_
List of non-option arguments.
Definition: exiv2app.hpp:248
void getStdin(Exiv2::DataBuf &buf)
getStdin binary data read from stdin to DataBuf
Implements the command line handling for the program.
Definition: exiv2app.hpp:138
@ time
IPTC time type.
Definition: types.hpp:149
std::string suffix_
File extension of the file to insert.
Definition: exiv2app.hpp:247
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 lib...
Definition: version.cpp:218
long adjustment_
Adjustment value.
Definition: exiv2app.hpp:217
PNG image, implemented using the following references: PNG specification by W3C PNG tags list by Phi...
EPS image. References: [1] Adobe PostScript Language Document Structuring Conventions Specification...
virtual int option(int opt, const std::string &optarg, int optopt)
Handle options and their arguments.
BasicError< char > Error
Error class used for exceptions (std::string based)
Definition: error.hpp:324
Concrete keys for IPTC metadata.
Definition: datasets.hpp:275
CmdId cmdId_
Command identifier.
Definition: exiv2app.hpp:87
std::vector< std::string > CmdFiles
Container for command files.
Definition: exiv2app.hpp:144
virtual int nonoption(const std::string &argv)
Handle non-option parameters.
std::string jpegComment_
Jpeg comment to set in the image.
Definition: exiv2app.hpp:245
bool force_
Force overwrites flag.
Definition: exiv2app.hpp:223
@ string
IPTC string type.
Definition: types.hpp:147
IPTC dataset and type information.
std::string toString(const T &arg)
Utility function to convert the argument of any type to a string.
Definition: types.hpp:521
Exiv2::DataBuf stdinBuf
DataBuf with the binary bytes from stdin.
Definition: exiv2app.hpp:254
Exiv2::TypeId typeId_
Exiv2 type identifier Flag to indicate if the type was explicitly specified (true)
Definition: exiv2app.hpp:90
Basic file utility functions required by Exiv2.
Error class for exceptions, log message class.
Class JpegImage to access JPEG images.
Encoding and decoding of IPTC data.
void version(bool verbose=false, std::ostream &os=std::cout) const
Print version information to an output stream.
Definition: exiv2.cpp:219