Commit Graph

327 Commits

Author SHA1 Message Date
Luis Díaz Más
75e4bd9059 Remove rest of useless typedefs from datasets.hpp 2021-04-19 10:43:46 +02:00
Luis Díaz Más
83dda6ccd7 Fix warnings related to -Wdeprecated-copy 2021-04-18 18:49:58 +02:00
Luis Díaz Más
94b87a8dec Remove deprecated SSH support 2021-04-18 09:44:51 +02:00
Luis Díaz Más
0bbaa6eff3 cpp: Replace auto_ptr by unique_ptr 2021-04-15 06:56:11 +02:00
Robin Mills
fe1c338fc2
Merge pull request #1504 from eokeeffe/0.27-maintenance
metacopy -x parameter not in optstring
2021-04-03 12:56:37 +01:00
Robin Mills
4a8d365e80 fix_1508_enableBMMF_effort2 2021-04-03 11:03:31 +01:00
Robin Mills
9da2aed5d2 Use the documented 5 line prolog in every sample application. Tidy up sample prologs and header code. 2021-04-02 16:58:20 +01:00
evanokeeffe
160ee8ba9b found a bug in metacopy, the -x parameter wasn't in the optstring. rectified that 2021-03-23 12:49:26 +00:00
Robin Mills
d632988bbd Massive code prolog cleanup. 2021-03-17 13:34:21 +00:00
Lemures Lemniscati
77ef37fe79 samples/xmpprint.cpp: Fix typos 2020-12-28 22:22:38 +09:00
Miloš Komarčević
5e92d5e078 Fix easyaccess-test 2020-11-03 11:03:46 +01:00
Miloš Komarčević
95c0df6c14 Test cover for added easyaccess methods 2020-11-03 09:04:15 +01:00
Robin Mills
da1b02d644 fix_1268_GPSProcessingMethod 2020-08-29 12:10:50 +01:00
Robin Mills
7bf40a2408 fix_1211_c++11_0.27. I'll explain this in the PR. 2020-05-28 14:16:08 +01:00
clanmills
f24f24e026 Documentation updates for v0.27.3 RC2 2020-05-18 18:28:30 +01:00
clanmills
2f2bf69f6c README.md General revision. Mostly simplifying "4 Test Suite". 2020-05-17 17:59:22 +01:00
Robin Mills
c64f2e8ea1 iotest.cpp polishing. 2020-05-16 10:11:40 +01:00
Robin Mills
ef56e5b61e Fix comment typo 2020-05-16 08:38:42 +01:00
clanmills
158fba1b99 Fix blocksize in iotest.cpp. 2020-05-15 18:24:52 +01:00
clanmills
32b9a2dfa1 Change EXIV2_HTTP default to http://localhost to keep msvc build happy. iotest.cpp modified to compile with msvc. 2020-05-15 09:15:24 +01:00
Robin Mills
7e55f5d5be
Merge branch '0.27-maintenance' into http_iotest_0.27 2020-05-14 21:09:40 +01:00
clanmills
5aa09915ea Documentation update. Fixed typo in comment in functions.source 2020-05-14 16:42:55 +01:00
clanmills
7956aa0ad9 See #1029 Added option to samples/iotest.cpp to specify blocksize for remote copy. 2020-05-14 14:55:59 +01:00
Robin Mills
3d0e05f40d
Merge branch '0.27-maintenance' into http_iotest_0.27 2020-05-14 13:19:17 +01:00
clanmills
c0ec4cf6a4 Polishing iotest.sh by moving functions start/closeHttpServer to functions.source. Updated documentation. 2020-05-14 12:51:48 +01:00
clanmills
037849ea9e Add optional parameter to iotest.cpp to create the input file by copying from a remote location. 2020-05-14 10:31:13 +01:00
clanmills
e15c483e29 Use toString() instead of value() to write to std::cout. https://github.com/Exiv2/exiv2/issues/901#issuecomment-627872855 2020-05-13 10:46:15 +01:00
clanmills
43b06b6814 Don't allow binary into the output stream! 2020-05-11 18:29:35 +01:00
Robin Mills
a1abe21a71 Discussion: https://github.com/Exiv2/exiv2/issues/1200#issuecomment-623975537 2020-05-05 11:58:55 +01:00
clanmills
8f5b740270 put them back. 2020-05-02 19:05:25 +01:00
clanmills
79b37ec3aa Putting geotag.cpp back into the product (git strikes again) 2020-05-02 18:48:53 +01:00
Robin Mills
cd9ee99567
Delete geotag.cpp 2020-05-02 18:33:10 +01:00
clanmills
63a13e8620 Adding option -DEXIV2_BUILD_USE_C++11 2020-05-02 12:21:21 +01:00
clanmills
d994161e80 Added option -remove to samples/geotag.cpp 2020-05-01 17:40:20 +01:00
clanmills
759ce9fffe fix_1046_sample_geotag Take advantage of fix to #1046 in samples/geotag.cpp 2020-05-01 16:18:01 +01:00
Robin Mills
df04671976 Enforce cxx_std_98 in samples, unit_tests, and exiv2 application (to eliminate 2305 GCC unique_ptr warnings) 2020-04-30 11:20:37 +01:00
Robin Mills
f7c14e62fb taglist_unexpected_arg_0.27 2020-04-28 14:51:29 +01:00
Luis Diaz Mas
215099e977 Fix in largeiptc-test 2020-04-24 07:42:41 +02:00
clanmills
13565be3d2 Change for solaris. 2020-04-15 16:53:03 +01:00
clanmills
e62bd8b94e fix_1158_0.27 2020-04-14 09:04:17 +01:00
clanmills
0eabfc4053 Adding CPP changes 2020-03-29 15:58:03 +01:00
Robin Mills
7844b11e4b
[xmpsdk] Add XMP Initialisation/Cleanup code to all main() programs
- update documentation
- Removed redundant calls to Exiv2::XmpParser::terminate() (legacy of our
  discusssion with @tester0077).
- this fixes #976
2019-10-05 10:19:53 +02:00
Luis Díaz Más
398139ec54
Usage of EXIT_SUCCESS and EXIT_FAILURE 2019-09-15 23:00:26 +02:00
Luis Díaz Más
23eb91aa6e
Replace for-loop with while to improve readability.
Note that I also moved the std::string out of the loop so that we do not
need to allocate/deallocate the string several times.
2019-09-15 23:00:19 +02:00
clanmills
34f10994fb
fix 987: Added options all and ALL to samples/taglist 2019-09-15 22:59:54 +02:00
Luis Díaz Más
113136e134 Replace DEBUG with EXIV2_DEBUG_MESSAGES
Fixes #926
2019-07-12 11:14:35 +02:00
Robin Mills
0a47d93ccf Add README-SAMPLES.md and remove exiv2samples.1 (#921)
* Add README-SAMPLES.md and remove exiv2samples.1
* Remove samples man page from CMake
* Add all sample programs to Doxygen.
* Adding links to source code on exiv2.org

Authored-By: Robin Mills <robin@clanmills.com>
Authored-By: Luis Díaz Más <piponazo@gmail.com>
2019-06-25 23:06:39 +02:00
Luis Díaz Más
f05d100579 CURL lib and include directories private for exiv2lib
(cherry picked from commit 5d64a0b11c5a45dd9d58c56e946301f3f98942a7)
2019-05-05 18:34:14 +02:00
Luis Díaz Más
85c27ea3b4 Link geotag sample against exiv2-xmp 2019-02-10 22:40:01 +01:00
Luis Díaz Más
4fa2bc7008 Propagate CURL linkage when it is enabled 2019-01-12 23:13:24 +01:00
Luis Diaz Mas
6f8d8e3da6 cleanup header inclusions in API 2019-01-11 15:55:25 +01:00
Luis Díaz Más
4ed5bdc78b CMake: Supress MSVC PDB warnings 2018-11-27 18:20:20 +01:00
Robin Mills
89375979d8 https://github.com/Exiv2/exiv2/issues/555
I have restored the Macro EXIV2_TEST_VERSION in include/exiv2/version.hpp
I have added an option --version-test to exifprint.cpp to test/validate EXIV2_TEST_VERSION works as documented.
Version strings in Exiv2 v0.27 and later have a fourth digit to indicate the pre-release number of the build.
Pre-release builds should never be used for production purposes.
2018-11-19 11:38:26 +00:00
Luis Díaz Más
e20329b8e0 Remove EXV_HAVE_DLL and disable C4251 always on msvc. 2018-11-11 12:27:26 +01:00
Luis Díaz Más
2d1e1fe6ef Reduce the scope of variables 2018-11-07 23:17:26 +01:00
Luis Díaz Más
dc7eb5008b Add explicit to constructors with 1 argument 2018-11-07 23:17:26 +01:00
clanmills
4a1d0962fc Fix samples/tags.cpp to call ExifTags::taglist() (https://github.com/Exiv2/exiv2/issues/465) 2018-10-26 17:47:15 +02:00
Robin Mills
12d44f8f17 Fix https://github.com/Exiv2/exiv2/issues/468 2018-10-26 17:47:15 +02:00
Luis Díaz Más
c43d998457 Fix cppcheck issues: passedByValue 2018-10-11 13:40:03 +02:00
Luis Díaz Más
989acd18c7 Fix cppcheck issues: uninitMemberVar & uninitVar 2018-10-11 13:40:03 +02:00
Robin Mills
8b9cbc5888 Update taglist sample with more functionality 2018-10-11 12:43:25 +02:00
Luis Díaz Más
18690f4c54 Provide default and copy constructor for AnyError 2018-09-14 13:20:08 +02:00
Luis Díaz Más
2afba9b127 Remove useless cmake information message 2018-09-12 19:22:31 +02:00
Luis Díaz Más
603692a1d8 Copyright to Exiv2 authors 2018-09-12 19:22:31 +02:00
Luis Díaz Más
320e186f44 Fix -Wmaybe-uninitialized warnings 2018-09-12 19:22:31 +02:00
Luis Díaz Más
2698490584 Delete CRW samples that were not compatible with MinGW 2018-09-02 19:07:33 +02:00
clanmills
3c42fdddeb Fix include <exiv2/exiv2.hpp> to include exiv2/config.h (and consequential changes)
Fix cltest.cpp and version.cpp to report MSVC 2017 in which _MSC_VER == 1910
2018-09-01 20:19:45 +02:00
Robin Mills
6f5c339859 Fix getopt-test to build on MSVC (which does not have unistd/getopt()) 2018-09-01 20:19:45 +02:00
Robin Mills
74bc0e0535 Changes for cross-platform getopt 2018-09-01 20:19:45 +02:00
Luis Diaz Mas
a9c9451588 Remove localtime.c and any other trick to handle timegm 2018-08-27 13:33:02 +02:00
Luis Diaz Mas
d96b619515 Add braces for the main functions in the new source files at samples 2018-08-26 09:23:08 +02:00
Luis Diaz Mas
00502eabdd Move mrwthumb to samples 2018-08-26 09:23:08 +02:00
Luis Diaz Mas
e9a6597a48 Move xmpdump to samples 2018-08-26 09:23:08 +02:00
Luis Diaz Mas
ac51fda7b5 Move crwparse to samples 2018-08-26 09:23:08 +02:00
Luis Diaz Mas
32b618b1c7 Move crwedit from exiv2lib to samples 2018-08-26 09:23:08 +02:00
Luis Diaz Mas
0d9065274e Remove redefinition of UNUSED 2018-08-24 16:45:52 +02:00
Luis Diaz Mas
145f8fc456 Port redmine issues from the bash test suite to the python one.
* Port redmine issue 1024
 * Port redmine issue 1026
 * Port redmine issue 1040
 * Port redmine issue 1044
 * Port redmine issue 1053
 * Port redmine issue 1054 (not finished yet; I found some issues there)
 * Port redmine issue 1058
 * Port redmine issue 1062
 * Port redmine issue 1080
 * Port redmine issue 1108
 * Port redmine issue 1112
 * Port redmine issue 1114
 * Port redmine issue 1122
 * Port redmine issue 1140
 * Port redmine issue 1144
 * Port redmine issue 1145
 * Port redmine issue 1153
 * Port redmine issue 1155
 * Port redmine issue 1166
 * Port redmine issue 1167
 * Port redmine issue 1170
 * Replace escaped chars in 1054
 * Add brackets in exiv2json::main()
 * Link all sample apps against exiv2lib
 * Changes in 1054
 * test 1054: fix dates depending on Local time
 * Do not run make with VERBOSE=1
 * Use system_tests.path
 * Fix windows issues with quotes
 * Use system_tests.path
 * Use itertools to simplify test code
2018-07-31 18:18:14 +02:00
Luis Diaz Mas
abf6e8ec27 Remove code related with autotools 2018-06-08 14:04:25 +02:00
Luis Díaz Más
8baf07decb Fix warnins reported by -Wunused-variable
This trick is a bit nasty but I do not want to mess up to much with the
XMPSample application at this moment. Once we have more unit tets for
that part of the code, the xmpsample could disappear.
2018-05-31 14:44:24 +02:00
Luis Díaz Más
335607054c Use enforce instead of std::assert to fix warning about unused variable in realease mode 2018-05-31 14:44:24 +02:00
Luis Diaz Mas
773bdfd14e Create a header where to keep an unique definition of UNUSED 2018-05-31 14:44:24 +02:00
Dan Čermák
79f8d63a8b Whitespace cleanup 2018-05-16 10:15:53 +02:00
Dan Čermák
5e36363138 Fix double promotion issues 2018-05-16 10:15:53 +02:00
Dan Čermák
bc58752d18 Remove useless casts
This commit removes only casts where type A is cast to the exactly same
type (and not to a platform dependent typedefs)
2018-05-16 10:15:53 +02:00
Luis Díaz Más
d55b2b1b65 Remove HAVE_STDLIB_H check and replace stdlib.h by cstdlib 2018-05-04 11:20:43 +02:00
Mario Emmenlauer
548d7688c7 samples/geotag.cpp: fixed debugging code to be in the correct ifdef 2018-04-08 07:45:48 +02:00
Dan Čermák
8b7941b733 [cmake] Add EXTRA_COMPILE_FLAGS to samples & unitTests
Add the additional compiler flags added by -DEXIV2_TEAM_EXTRA_WARNINGS=ON to
the targets in samples/ & unitTests/
This fixes #204
2018-03-29 13:17:24 +02:00
Luis Díaz Más
d21e794239 Do not deference value when it does not exist (Thanks D4N) 2018-03-20 21:30:06 +01:00
Dan Čermák
efe2ccdcb6 Replaced all hardcoded error codes with ker... constants 2018-02-18 09:28:57 +01:00
Robin Mills
8f5b795eaa Fixes to autotools build to respect mn_int.cpp files (#186)
* Fixes to autotools build to respect mn_int.cpp files

* Changes following Luis' code review.
2017-12-11 16:48:07 +01:00
tbeu
2efc2e79da Remove obsolete id 2017-11-19 11:17:12 +01:00
tbeu
5df8b01b77 Remove obsolete svn revision 2017-11-19 11:17:11 +01:00
Luis Díaz Más
3dbc7c1969 Fix compilation on Windows 2017-10-03 21:07:43 +02:00
Robin Mills
22aaff8682 Fix cmakeBuild.cmd --static to use zlibstatic.lib 2017-09-15 20:15:58 +01:00
clanmills
d366943297 Refactoring EXV_USE_CURL and EXV_USE_SSH 2017-09-13 16:54:10 +01:00
Robin Mills
60d436c969 Many changes to CMakeLists.txt and cmakeBuild.cmd to support unicode, static linking, passing shared library build flags. 2017-09-05 21:36:56 +01:00
Robin Mills
78e7cc8f69 Fixing samples/Makefile on linux 2017-08-23 10:07:31 +01:00
Robin Mills
b5cac373b1 Merge pull request #39 from Exiv2/autotoolsMacLink
./configure --with-adobe[=2016|2014|2013] for MacOSX
2017-08-23 08:04:48 +01:00
Andreas Sturmlechner
a768b85191 Lowercase target_link_libraries 2017-08-22 18:21:28 +02:00
Andreas Sturmlechner
1fc319c0e4 Lowercase add_custom_target, configure_file, install macros 2017-08-22 18:21:28 +02:00