moved unwanted stuff out of a header file
authorJiri Srain <jsrain@suse.cz>
Fri, 2 Dec 2005 14:36:43 +0000 (14:36 +0000)
committerJiri Srain <jsrain@suse.cz>
Fri, 2 Dec 2005 14:36:43 +0000 (14:36 +0000)
zypp/Changelog.cc [new file with mode: 0644]
zypp/Changelog.h
zypp/Makefile.am

diff --git a/zypp/Changelog.cc b/zypp/Changelog.cc
new file mode 100644 (file)
index 0000000..8278f3f
--- /dev/null
@@ -0,0 +1,31 @@
+/*---------------------------------------------------------------------\
+|                          ____ _   __ __ ___                          |
+|                         |__  / \ / / . \ . \                         |
+|                           / / \ V /|  _/  _/                         |
+|                          / /__ | | | | | |                           |
+|                         /_____||_| |_| |_|                           |
+|                                                                      |
+\---------------------------------------------------------------------*/
+/** \file zypp/Changelog.cc
+ *
+*/
+#include <iostream>
+#include <set>
+
+#include "zypp/Changelog.h"
+
+using namespace std;
+
+namespace zypp
+{ /////////////////////////////////////////////////////////////////
+
+  std::ostream & operator<<( std::ostream & out, const ChangelogEntry & obj )
+  { 
+    out << obj.date() << " " << obj.author() << endl << obj.text() << endl;
+    return out;
+  }
+
+
+  /////////////////////////////////////////////////////////////////
+} // namespace zypp
+///////////////////////////////////////////////////////////////////
index 889e585..5e2e24c 100644 (file)
@@ -14,9 +14,7 @@
 
 #include <string>
 #include <list>
-#include <iostream>
-
-using namespace std;
+#include "zypp/NeedAType.h"
 
 ///////////////////////////////////////////////////////////////////
 namespace zypp
@@ -52,13 +50,7 @@ namespace zypp
 
   typedef std::list<ChangelogEntry> Changelog;
 
-  inline std::ostream & operator<<( std::ostream & out,
-                                   const ChangelogEntry & obj )
-  { 
-    out << obj.date() << " " << obj.author() << endl << obj.text() << endl;
-    return out;
-  }
-
+  std::ostream & operator<<( std::ostream & out, const ChangelogEntry & obj );
  
   ///////////////////////////////////////////////////////////////////
 } // namespace zypp
index a2fb2c7..caac95d 100644 (file)
@@ -46,7 +46,8 @@ lib@PACKAGE@_la_SOURCES = \
        Message.cc      \
        Script.cc       \
        Patch.cc        \
-       Product.cc
+       Product.cc      \
+       Changelog.cc
 
 lib@PACKAGE@_la_LDFLAGS =      @LIB_VERSION_INFO@