#include "Printing.h"
-#include <zypp/base/Logger.h>
+#include <zypp/base/LogControl.h>
#include <zypp/base/String.h>
#include <zypp/base/Exception.h>
#include <zypp/base/PtrTypes.h>
for ( _Iter r = begin; r != end; ++r )
fnc( *l, *r );
}
+
+template<class _LIter, class _RIter, class _BinaryFunction>
+ inline _BinaryFunction
+ nest_for_earch( _LIter lbegin, _LIter lend,
+ _RIter rbegin, _RIter rend,
+ _BinaryFunction fnc )
+ {
+ for ( ; lbegin != lend; ++lbegin )
+ for ( _RIter r = rbegin; r != rend; ++r )
+ fnc( *lbegin, *r );
+ return fnc;
+ }
+
+template<class _Iter, class _BinaryFunction>
+ inline _BinaryFunction
+ nest_for_earch( _Iter begin, _Iter end,
+ _BinaryFunction fnc )
+ { return nest_for_earch( begin, end, begin, end, fnc ); }
+
+
template<class _Iter, class _Function>
inline void sym_compare( _Iter begin, _Iter end )
{
ret.push_back( Arch( "unknown" ) );
ret.push_back( Arch( "unknown2" ) );
ret.push_back( Arch() );
+ ret.push_back( Arch("") );
return ret;
}
## Process this file with automake to produce Makefile.in
## ##################################################
-noinst_PROGRAMS = Main Main.debug Parse
+noinst_PROGRAMS = Main Parse Test
## ##################################################
## ##################################################
-Main_SOURCES = Main.cc
+Main_SOURCES = Main.cc
+Main_LDFLAGS = -static
-Main_debug_SOURCES = $(Main_SOURCES)
-Main_debug_LDFLAGS = -static
+## ##################################################
+
+Parse_SOURCES = Parse.cc
+Parse_LDFLAGS = -static
## ##################################################
-Parse_SOURCES = Parse.cc
-Parse_LDFLAGS = -static
+Test_SOURCES = Test.cc
+Test_LDFLAGS = -static
## ##################################################
PrintPtr<typename _Container::value_type>() );
}
+template<class _Container>
+ void printMK( const _Container & c )
+ {
+ for ( typename _Container::const_iterator it = c.begin(); it != c.end(); ++it )
+ {
+ USR << it->first << std::endl;
+ }
+ }
+template<class _Container>
+ void printMV( const _Container & c )
+ {
+ for ( typename _Container::const_iterator it = c.begin(); it != c.end(); ++it )
+ {
+ USR << it->second << std::endl;
+ }
+ }
+
+template<class _Container>
+ void printMKV( const _Container & c )
+ {
+ for ( typename _Container::const_iterator it = c.begin(); it != c.end(); ++it )
+ {
+ USR << it->first << '\t' << it->second << std::endl;
+ }
+ }
+
///////////////////////////////////////////////////////////////////
#endif // MA_PRINTING_H