- added helper struct NVRA
[platform/upstream/libzypp.git] / zypp / NVRA.cc
similarity index 70%
rename from zypp/solver/SolverFwd.h
rename to zypp/NVRA.cc
index 976f4b5..96d7e84 100644 (file)
@@ -6,27 +6,36 @@
 |                         /_____||_| |_| |_|                           |
 |                                                                      |
 \---------------------------------------------------------------------*/
-/** \file      zypp/solver/SolverFwd.h
- *
- * Forward declaration of Solver related public types.
+/** \file      zypp/NVRA.cc
  *
 */
-#ifndef ZYPP_SOLVER_SOLVERFWD_H
-#define ZYPP_SOLVER_SOLVERFWD_H
+#include <iostream>
+//#include "zypp/base/Logger.h"
+
+#include "zypp/NVRA.h"
+
+using std::endl;
 
 ///////////////////////////////////////////////////////////////////
 namespace zypp
 { /////////////////////////////////////////////////////////////////
+
+  ///////////////////////////////////////////////////////////////////
+  //
+  //   CLASS NAME : NVRA
+  //
   ///////////////////////////////////////////////////////////////////
-  namespace solver
-  { /////////////////////////////////////////////////////////////////
 
-    DEFINE_PTR_TYPE(Context);
+  /******************************************************************
+  **
+  **   FUNCTION NAME : operator<<
+  **   FUNCTION TYPE : std::ostream &
+  */
+  std::ostream & operator<<( std::ostream & str, const NVRA & obj )
+  {
+    return str << obj.name << '-' << obj.edition << '.' << obj.arch;
+  }
 
-    /////////////////////////////////////////////////////////////////
-  } // namespace solver
-  ///////////////////////////////////////////////////////////////////
   /////////////////////////////////////////////////////////////////
 } // namespace zypp
 ///////////////////////////////////////////////////////////////////
-#endif // ZYPP_SOLVER_SOLVERFWD_H