Commit Graph

10 Commits

Author SHA1 Message Date
Andreas Huggel
fe5a4c0022 Fixed changes introduced in previous revision. Added call to _commit() before stat() instead of insisting that the file is closed. Reverted changes to iotest.cpp introduced in the previous revision. 2005-04-26 15:27:41 +00:00
Andreas Huggel
1b41ce9931 Close files before calling FileIo::size() (which uses stat). This is necessary on Win32 it seems. Fixes bug #428. Changed default mode of FileIo::open to "rb" and added FileIo::switchMode. Fixes bug #429. Added a hack to make test output of exiv2-test.sh more readable on MinGW. 2005-04-22 15:07:12 +00:00
Andreas Huggel
56a7b11072 Fixed situation where an Error with a confusing message was thrown. Added BasicIo::path(). Further code and doc clean-up. 2005-04-21 07:21:53 +00:00
Andreas Huggel
55aebc0686 Overhauled exception handling. The new class Error has a list of error messages, which is selected based on the error code provided in the constructor.
Image::read/writeMetadata and ImageFactory::open now throw Error in case of failure. Applications therefore now need an exception handler for the error handling of such function calls. This should result in shorter and simpler application code.
2005-04-17 11:51:32 +00:00
Andreas Huggel
90a707fa2e Fixed bugs found on MinGW and with MSVC. iotest still misteriously fails. 2005-04-10 09:00:47 +00:00
Andreas Huggel
59e1a6f29f Added an EXV_ prefix to precompiler defines (still not to all yet - I don't like the idea of "exv_size_t" or "exv_const" - but hopefully to those more likely to create conflicts). Fixes bug #420 2005-03-19 06:50:19 +00:00
Andreas Huggel
8521dead83 Added 2005 to Copyright lines 2005-03-12 16:43:06 +00:00
Andreas Huggel
c1a678a883 Fixed test for stat return value 2005-03-08 14:43:47 +00:00
brad
82950ffc9e Added size method to basicio and test cases. 2005-02-02 21:09:18 +00:00
brad
0cab366ec2 Merges all changes from the insideout branch back into trunk. This includes the IO abstraction code, split-up of image.cpp, and inside-out design change (#402, #403, and #404). 2005-01-16 09:22:28 +00:00