#include <fstream>
#include <sstream>
-#include "zypp/ZConfig.h"
-#include "zypp/TmpPath.h"
-#include "zypp/Date.h"
-#include "zypp/base/LogTools.h"
-#include "zypp/base/Gettext.h"
-#include "zypp/base/String.h"
-#include "zypp/media/MediaHandler.h"
-#include "zypp/media/MediaManager.h"
-#include "zypp/media/Mount.h"
+#include <zypp/ZConfig.h>
+#include <zypp/TmpPath.h>
+#include <zypp/Date.h>
+#include <zypp/base/LogTools.h>
+#include <zypp/base/Gettext.h>
+#include <zypp/base/String.h>
+#include <zypp/media/MediaHandler.h>
+#include <zypp/media/MediaManager.h>
+#include <zypp/media/Mount.h>
#include <limits.h>
#include <stdlib.h>
#include <errno.h>
-
-using namespace std;
+using std::endl;
// use directory.yast on every media (not just via ftp/http)
#define NONREMOTE_DIRECTORY_YAST 1
DBG << "provideFile(" << dirFile << "): " << "OK" << endl;
// using directory.yast
- ifstream dir( localPath( dirFile ).asString().c_str() );
+ std::ifstream dir( localPath( dirFile ).asString().c_str() );
if ( dir.fail() ) {
ERR << "Unable to load '" << localPath( dirFile ) << "'" << endl;
ZYPP_THROW(MediaSystemException(url(),
"Unable to load '" + localPath( dirFile ).asString() + "'"));
}
- string line;
+ std::string line;
while( getline( dir, line ) ) {
if ( line.empty() ) continue;
if ( line == "directory.yast" ) continue;
** FUNCTION NAME : operator<<
** FUNCTION TYPE : ostream &
*/
-ostream & operator<<( ostream & str, const MediaHandler & obj )
+std::ostream & operator<<( std::ostream & str, const MediaHandler & obj )
{
str << obj.url() << ( obj.isAttached() ? "" : " not" )
<< " attached; localRoot \"" << obj.localRoot() << "\"";