#include <iostream>
-#include "zypp/base/Logger.h"
-#include "zypp/PathInfo.h"
-#include "zypp/target/rpm/librpmDb.h"
-#include "zypp/target/rpm/RpmHeader.h"
-#include "zypp/target/rpm/RpmException.h"
+#include <zypp/base/Logger.h>
+#include <zypp/PathInfo.h>
+#include <zypp/target/rpm/librpmDb.h>
+#include <zypp/target/rpm/RpmHeader.h>
+#include <zypp/target/rpm/RpmException.h>
#undef ZYPP_BASE_LOGGER_LOGGROUP
#define ZYPP_BASE_LOGGER_LOGGROUP "librpmDb"
-using namespace std;
+using std::endl;
namespace zypp
{
rpmts _ts; // transaction handle, includes database
shared_ptr<RpmException> _error; // database error
- friend ostream & operator<<( ostream & str, const D & obj )
+ friend std::ostream & operator<<( std::ostream & str, const D & obj )
{
str << "{" << obj._error << "(" << obj._root << ")" << obj._dbPath << "}";
return str;
if ( !val )
return "";
- string ret( val );
+ std::string ret( val );
free( val );
return ret;
}
// METHOD NAME : librpmDb::dumpState
// METHOD TYPE : ostream &
//
-ostream & librpmDb::dumpState( ostream & str )
+std::ostream & librpmDb::dumpState( std::ostream & str )
{
if ( !_defaultDb )
{
//
// DESCRIPTION :
//
-ostream & librpmDb::dumpOn( ostream & str ) const
+std::ostream & librpmDb::dumpOn( std::ostream & str ) const
{
ReferenceCounted::dumpOn( str ) << _d;
return str;
** FUNCTION NAME : operator<<
** FUNCTION TYPE : ostream &
*/
-ostream & operator<<( ostream & str, const librpmDb::db_const_iterator & obj )
+std::ostream & operator<<( std::ostream & str, const librpmDb::db_const_iterator & obj )
{
str << "db_const_iterator(" << obj._d._dbptr
<< " Size:" << obj._d.size()
// METHOD NAME : librpmDb::findByName
// METHOD TYPE : bool
//
-bool librpmDb::db_const_iterator::findByName( const string & name_r )
+bool librpmDb::db_const_iterator::findByName( const std::string & name_r )
{
return _d.init( RPMTAG_NAME, name_r.c_str() );
}
// METHOD NAME : librpmDb::db_const_iterator::findPackage
// METHOD TYPE : bool
//
-bool librpmDb::db_const_iterator::findPackage( const string & name_r )
+bool librpmDb::db_const_iterator::findPackage( const std::string & name_r )
{
if ( ! _d.init( RPMTAG_NAME, name_r.c_str() ) )
return false;