Commit Graph

60 Commits

Author SHA1 Message Date
Andreas Huggel
ffe8209018 #812: Added function to determine the number of hard links on Windows NTFS. (Thomas Beutlich) 2012-02-11 03:58:30 +00:00
Andreas Huggel
92b2aac75a #812: Don't destroy files when checking if they are writable; use a memory buffer instead of a temporary file when writing files with hard links to preserve the links. 2012-02-07 04:41:45 +00:00
Andreas Huggel
7770151915 Updated Copyright message for 2011. 2011-02-13 14:08:44 +00:00
Robin Mills
20778cbd7d msvc64. Added build type (64 or 32) to exiv2 -V output. A couple of changes to compile with DevStudio x64 2010-12-07 04:10:52 +00:00
Andreas Huggel
dc264bc00d #476, #614: Introduced class LogMsg for enhanced logging, migrated all existing warnings and error messages (not the exceptions) to use the new logic. Every log message now has a type (debug, info, warning, error). Applications can set a logging level to determine which messages are processed and supply a custom log message handler at runtime. (Based on a contribution by Simson Garfinkel.) 2010-09-10 14:02:09 +00:00
Andreas Huggel
da52f17aa4 Fixed writing to pseudo memory mapped areas (at least on Linux). 2010-07-18 15:55:08 +00:00
Andreas Huggel
06ce0d18b6 - Introduced exiv2.hpp as a wrapper to include all Exiv2 objects. (Renamed existing exiv2.hpp to exiv2app.hpp)
- Changed Sony/Minolta pretty-print function to print EV value
- Renamed rcsid.hpp to rcsid_int.hpp, do not publish it anymore
2010-06-27 10:04:39 +00:00
Andreas Huggel
6d496a4888 Updated Copyright notice for 2010. 2010-04-03 07:53:30 +00:00
Andreas Huggel
c7d5396669 Fixed issues with Unicode paths on Windows. (Thomas Beutlich) 2010-04-03 04:03:15 +00:00
Andreas Huggel
ade0b51b79 #671: Fixed error handling for read-only files. 2010-02-15 09:25:25 +00:00
Andreas Huggel
9b4f4f84d6 MinGW and MSVC fixes. 2010-01-18 16:34:16 +00:00
Andreas Huggel
ba5a7b9075 Minor fix. 2010-01-18 12:58:26 +00:00
Andreas Huggel
49e040ee8d Generalized class Error, added class WError for use with Unicode-Paths. 2010-01-17 14:36:08 +00:00
Andreas Huggel
7154969383 #672: Needed to compile on systems with lstat. 2010-01-07 14:39:34 +00:00
Andreas Huggel
c2ee400875 #672: Fixed issue with C-string pointer of a temporary. 2010-01-06 16:37:43 +00:00
Andreas Huggel
efa3152710 Doc updates: added new Nikon and Canon makernote tags, silenced doxygen warnings. 2009-12-29 15:24:40 +00:00
Andreas Huggel
dd659d57bd Changed MemIo to use a Pimpl class too (#510). 2009-12-27 14:57:10 +00:00
Andreas Huggel
bdc2f225af Use [w]path() instead of p_->[w]path_. 2009-12-27 10:53:24 +00:00
Andreas Huggel
83cd2efab9 #579: Implemented mmap for Windows directly in FileIo and made that class use the Pimpl idiom (#510) to de-clutter the interface. Unrelated: Added EXV_MIN/MAX macros, allow iconv config in commercial version. 2009-12-27 09:56:29 +00:00
Andreas Huggel
370af5c8a3 Merged all changes from the unstable branch into the trunk. 2009-11-27 05:59:23 +00:00
Andreas Huggel
7b75bbaa04 Removed r1799, r1797 from trunk (#634, #579) 2009-06-20 04:26:46 +00:00
Robin Mills
ab8010ffd7 #556 timegm() function should work with Windows 64bit time_t
Fix submitted.
1) Removed _USE_32BIT_TIME_T from code base.
2) Added a macro to replace timegm() with _mkgmtime() on VC8+ (supports 32 and 64 bit time_t)

Simple test performed on VC 7.1/8 and 9 (VS 2003/05/08)
C:\gnu\exiv2\msvc\bin\Release>exiv2 -a 1:00:00 ad \R.tiff && exiv2 -pt \R.tiff | grep DateTimeOriginal
Exif.Photo.DateTimeOriginal                  Ascii      20  2009:04:26 10:38:18
C:\gnu\exiv2\msvc\bin\Release>exiv2 -a 1:00:00 ad \R.tiff && exiv2 -pt \R.tiff | grep -i time
Exif.Image.DateTimeOriginal                  Ascii      20  2009:04:26 11:38:18
C:\gnu\exiv2\msvc\bin\Release>

3) Cosmetic fix to basicio.cpp
Fixed nasty little <tab> I missed when I committed basicio.cpp on Sunday (apologies)
2009-05-19 03:48:42 +00:00
Robin Mills
61ca4b9b20 #634 Locking error on windows when updating a TIFF file with MemoryMapping enabled 2009-05-17 23:41:43 +00:00
Andreas Huggel
43303cf44b #633: Apply the fix only for platforms which have lstat. This does not include Win based platforms. 2009-05-16 14:59:33 +00:00
Andreas Huggel
fca7210a3f #633: Fixed FileIo::transfer to operate on the linked-to file if the FileIo is a symlink. Only tested on Linux. 2009-05-16 12:09:07 +00:00
Andreas Huggel
8a6d9dbc42 Updated Copyright notice for 2009. 2009-02-16 14:30:51 +00:00
Andreas Huggel
105a4e417d Changed FileIo::transfer to only write a warning if changing file permissions fails and fixed the use of strerror_r. Fixes digiKam bug 178103. 2008-12-30 15:54:46 +00:00
Andreas Huggel
e4c96433d4 Added support for XMP sidecar files. 2008-03-08 17:10:50 +00:00
Andreas Huggel
3ac665a305 Added 2008 to Copyright notice. 2008-01-09 16:44:09 +00:00
Andreas Huggel
358adfce04 Added writeFile() convenience function. 2007-12-09 08:00:26 +00:00
Andreas Huggel
91c4dafbf9 Fixed compiler issues (gcc-4.3, msvc 7.1) 2007-09-24 06:33:17 +00:00
Andreas Huggel
ac314ddfbc Intermediate state: Merged rev. 1153-1196 from branches/xmp. 2007-09-16 09:30:30 +00:00
Andreas Huggel
771738b475 Added includes required to compile with gcc 4.3 (prereleases) 2007-04-03 02:09:41 +00:00
Andreas Huggel
da6266da3b Copyright updates for 2007 2007-02-02 10:09:31 +00:00
Andreas Huggel
0723a62899 Removed trailing whitespace 2006-12-15 05:07:05 +00:00
Andreas Huggel
efc5a86653 Delete temporary file if user does not have write permissions. Completes fix for bug #497. 2006-12-05 16:18:41 +00:00
Andreas Huggel
75085fbe43 FileIo::transfer: check if original file is writable, remember file permissions. Fixes bug #497 2006-12-01 08:12:32 +00:00
Andreas Huggel
5a5fcf8503 Added workaround for mmap/munmap for platforms which do not have these (MinGW and MSVC), converted CrwImage to use mmap too. 2006-06-28 05:36:49 +00:00
Andreas Huggel
ebe5bb0a27 Added experimental mmap support to improve read performance for TIFF and PNG images, barely tested and only on Linux 2006-06-25 18:11:01 +00:00
Andreas Huggel
9daaaa3f6d Fixed compiler warnings 2006-06-21 09:16:36 +00:00
Andreas Huggel
5099f2463f Fixed MSVC 2005 assertion triggered by iotest 2006-06-10 15:13:19 +00:00
Andreas Huggel
2af57fb29d Fixed MemIo EOF behaviour to be similar to that of FILE*. Fixes bug #469 2006-06-02 12:59:04 +00:00
Andreas Huggel
99b4e71459 Updated copyright and fsf address 2006-01-17 14:53:57 +00:00
Andreas Huggel
d545215ceb Completed CRW write support, feature #438. Only tested on Linux 2006-01-17 03:59:41 +00:00
Andreas Huggel
57fa6c9211 Changed MemIo "copy-on-expand" to "copy-on-write" strategy to ensure that the original buffer is never modified 2005-10-08 11:36:48 +00:00
Andreas Huggel
06e5c0719e Removed trailing whitespace from source files 2005-10-08 11:25:44 +00:00
Andreas Huggel
773e6c6fa1 Use re-entrant system functions (gmtime_r, strerror_r) if available 2005-09-25 10:30:58 +00:00
Andreas Huggel
8093982ca4 Fixed MinGW warnings 2005-09-18 12:03:04 +00:00
Andreas Huggel
b55a7f9f9c Cosmetics 2005-09-18 09:36:53 +00:00
Andreas Huggel
98ebb66d61 Implemented "copy-on-expand" memory mgmt strategy for MemIo instead of blindly copying the memory buffer 2005-09-17 09:34:38 +00:00