~ubuntu-branches/ubuntu/precise/exiv2/precise

« back to all changes in this revision

Viewing changes to src/exif.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2006-12-07 18:40:10 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20061207184010-0ouu8v0dr8nznob9
Tags: 0.12-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
/*!
22
22
  @file    exif.hpp
23
23
  @brief   Encoding and decoding of Exif data
24
 
  @version $Rev: 769 $
 
24
  @version $Rev: 994 $
25
25
  @author  Andreas Huggel (ahu)
26
26
           <a href="mailto:ahuggel@gmx.net">ahuggel@gmx.net</a>
27
27
  @date    09-Jan-04, ahu: created
511
511
        /*!
512
512
          @brief Write the Exif data to a data buffer, which is returned.  The
513
513
                 caller owns this copy and %DataBuf ensures that it will be
514
 
                 deleted.  The copied data starts with the TIFF header.
 
514
                 deleted. The copied data starts with the TIFF header.
515
515
 
516
516
          Tries to update the original data buffer and write it back with
517
517
          minimal changes, in a 'non-intrusive' fashion, if possible. In this
526
526
          the Exif data is updated with the metadata from the actual thumbnail
527
527
          image (overriding existing metadata).
528
528
 
 
529
          @note If there is no Exif data to write, the buffer is empty, i.e.,
 
530
          no TIFF header is written in this case.
 
531
 
529
532
          @return A %DataBuf containing the Exif data.
530
533
         */
531
534
        DataBuf copy();
573
576
          @brief Delete all Exifdatum instances resulting in an empty container.
574
577
                 Note that this also removes thumbnails.
575
578
         */
576
 
        void clear() { eraseThumbnail(); exifMetadata_.clear(); }
 
579
        void clear();
577
580
        //! Sort metadata by key
578
581
        void sortByKey();
579
582
        //! Sort metadata by tag