[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 17:36:02 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=b870d3d

The following commit has been merged in the master branch:
commit b870d3d1a042e9e8d9925c39072ecda98e6743f6
Author: Andreas Huggel <ahuggel at gmx.net>
Date:   Thu Feb 12 16:05:00 2004 +0000

    Taglist takes a stream now
---
 src/taglist.cpp |  6 +++---
 src/tags.cpp    | 14 +++++++-------
 src/tags.hpp    |  4 ++--
 3 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/taglist.cpp b/src/taglist.cpp
index 0a7acb2..4b13cc1 100644
--- a/src/taglist.cpp
+++ b/src/taglist.cpp
@@ -3,13 +3,13 @@
   Abstract:  Print a simple comma separated list of tags defined in Exiv2
 
   File:      taglist.cpp
-  Version:   $Name:  $ $Revision: 1.2 $
+  Version:   $Name:  $ $Revision: 1.3 $
   Author(s): Andreas Huggel (ahu) <ahuggel at gmx.net>
   History:   07-Jan-04, ahu: created
  */
 // *****************************************************************************
 #include "rcsid.hpp"
-EXIV2_RCSID("@(#) $Name:  $ $Revision: 1.2 $ $RCSfile: taglist.cpp,v $")
+EXIV2_RCSID("@(#) $Name:  $ $Revision: 1.3 $ $RCSfile: taglist.cpp,v $")
 
 #include "tags.hpp"
 #include "error.hpp"
@@ -20,7 +20,7 @@ using namespace Exif;
 
 int main()
 try {
-    ExifTags::taglist();
+    ExifTags::taglist(std::cout);
     return 0;
 }
 catch (Error& e) {
diff --git a/src/tags.cpp b/src/tags.cpp
index a20d7da..02d0fcf 100644
--- a/src/tags.cpp
+++ b/src/tags.cpp
@@ -20,13 +20,13 @@
  */
 /*
   File:      tags.cpp
-  Version:   $Name:  $ $Revision: 1.13 $
+  Version:   $Name:  $ $Revision: 1.14 $
   Author(s): Andreas Huggel (ahu) <ahuggel at gmx.net>
   History:   15-Jan-04, ahu: created
  */
 // *****************************************************************************
 #include "rcsid.hpp"
-EXIV2_RCSID("@(#) $Name:  $ $Revision: 1.13 $ $RCSfile: tags.cpp,v $")
+EXIV2_RCSID("@(#) $Name:  $ $Revision: 1.14 $ $RCSfile: tags.cpp,v $")
 
 // *****************************************************************************
 // included header files
@@ -389,19 +389,19 @@ namespace Exif {
         return tagInfos_[ifdId][idx].printFct_;
     }
 
-    void ExifTags::taglist()
+    void ExifTags::taglist(std::ostream& os)
     {
         for (int i=0; ifdTagInfo[i].tag_ != 0xffff; ++i) {
-            std::cout << ifdTagInfo[i] << "
";
+            os << ifdTagInfo[i] << "
";
         }
         for (int i=0; exifTagInfo[i].tag_ != 0xffff; ++i) {
-            std::cout << exifTagInfo[i] << "
";
+            os << exifTagInfo[i] << "
";
         }
         for (int i=0; iopTagInfo[i].tag_ != 0xffff; ++i) {
-            std::cout << iopTagInfo[i] << "
";
+            os << iopTagInfo[i] << "
";
         }
         for (int i=0; gpsTagInfo[i].tag_ != 0xffff; ++i) {
-            std::cout << gpsTagInfo[i] << "
";
+            os << gpsTagInfo[i] << "
";
         }
     } // ExifTags::taglist
 
diff --git a/src/tags.hpp b/src/tags.hpp
index 2274d7f..eae8f05 100644
--- a/src/tags.hpp
+++ b/src/tags.hpp
@@ -21,7 +21,7 @@
 /*!
   @file    tags.hpp
   @brief   %Exif tag and type information
-  @version $Name:  $ $Revision: 1.13 $
+  @version $Name:  $ $Revision: 1.14 $
   @author  Andreas Huggel (ahu)
            <a href="mailto:ahuggel at gmx.net">ahuggel at gmx.net</a>
   @date    15-Jan-04, ahu: created
@@ -180,7 +180,7 @@ namespace Exif {
         //! Return the print function for the tag, IFD id combination
         static PrintFct printFct(uint16 tag, IfdId ifdId);
         //! Print a list of all tags to standart output
-        static void taglist();
+        static void taglist(std::ostream& os);
         
     private:
         static int tagInfoIdx(uint16 tag, IfdId ifdId);

-- 
exiv2 packaging



More information about the pkg-kde-commits mailing list