Loading...
Searching...
No Matches
convert.hpp
Go to the documentation of this file.
// ***************************************************************** -*- C++ -*-
/*
* Copyright (C) 2004-2021 Exiv2 authors
* This program is part of the Exiv2 distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
*/
#ifndef CONVERT_HPP_
#define CONVERT_HPP_
#include "exiv2lib_export.h"
// included header files
#include "config.h"
// + standard includes
#include <string>
// *****************************************************************************
// namespace extensions
namespace Exiv2 {
// *****************************************************************************
// class declarations
class ExifData;
class IptcData;
class XmpData;
// *****************************************************************************
// free functions, template and inline definitions
EXIV2API void copyExifToXmp(const ExifData& exifData, XmpData& xmpData);
EXIV2API void moveExifToXmp(ExifData& exifData, XmpData& xmpData);
EXIV2API void copyXmpToExif(const XmpData& xmpData, ExifData& exifData);
EXIV2API void moveXmpToExif(XmpData& xmpData, ExifData& exifData);
EXIV2API void syncExifWithXmp(ExifData& exifData, XmpData& xmpData);
EXIV2API void copyIptcToXmp(const IptcData& iptcData, XmpData& xmpData, const char *iptcCharset = 0);
EXIV2API void moveIptcToXmp(IptcData& iptcData, XmpData& xmpData, const char *iptcCharset = 0);
EXIV2API void copyXmpToIptc(const XmpData& xmpData, IptcData& iptcData);
EXIV2API void moveXmpToIptc(XmpData& xmpData, IptcData& iptcData);
EXIV2API bool convertStringCharset(std::string& str, const char* from, const char* to);
} // namespace Exiv2
#endif // #ifndef CONVERT_HPP_
Exiv2
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition asfvideo.hpp:36
Exiv2::moveXmpToIptc
EXIV2API void moveXmpToIptc(XmpData &xmpData, IptcData &iptcData)
Convert (move) XMP properties to IPTC tags, remove converted XMP properties.
Definition convert.cpp:1344
Exiv2::copyIptcToXmp
EXIV2API void copyIptcToXmp(const IptcData &iptcData, XmpData &xmpData, const char *iptcCharset=0)
Convert (copy) IPTC datasets to XMP properties.
Definition convert.cpp:1320
Exiv2::copyXmpToIptc
EXIV2API void copyXmpToIptc(const XmpData &xmpData, IptcData &iptcData)
Convert (copy) XMP properties to IPTC datasets.
Definition convert.cpp:1338
Exiv2::convertStringCharset
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
Exiv2::syncExifWithXmp
EXIV2API void syncExifWithXmp(ExifData &exifData, XmpData &xmpData)
Detect which metadata are newer and perform a copy in appropriate direction.
Definition convert.cpp:1314
Exiv2::copyXmpToExif
EXIV2API void copyXmpToExif(const XmpData &xmpData, ExifData &exifData)
Convert (copy) XMP properties to Exif tags.
Definition convert.cpp:1301
Exiv2::moveExifToXmp
EXIV2API void moveExifToXmp(ExifData &exifData, XmpData &xmpData)
Convert (move) Exif tags to XMP properties, remove converted Exif tags.
Definition convert.cpp:1294
Exiv2::copyExifToXmp
EXIV2API void copyExifToXmp(const ExifData &exifData, XmpData &xmpData)
Convert (copy) Exif tags to XMP properties.
Definition convert.cpp:1288
Exiv2::moveXmpToExif
EXIV2API void moveXmpToExif(XmpData &xmpData, ExifData &exifData)
Convert (move) XMP properties to Exif tags, remove converted XMP properties.
Definition convert.cpp:1307
Exiv2::moveIptcToXmp
EXIV2API void moveIptcToXmp(IptcData &iptcData, XmpData &xmpData, const char *iptcCharset=0)
Convert (move) IPTC datasets to XMP properties, remove converted IPTC datasets.
Definition convert.cpp:1329