no "using namespace std" in a header
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1314 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
ProtoOStream::ProtoOStream(ostream* outfile) : m_outfile(outfile)
|
ProtoOStream::ProtoOStream(std::ostream *outfile) : m_outfile(outfile)
|
||||||
{
|
{
|
||||||
m_log.setDescription("ProtoStream");
|
m_log.setDescription("ProtoStream");
|
||||||
m_log.showTime(false);
|
m_log.showTime(false);
|
||||||
@ -26,7 +26,7 @@ bool ProtoOStream::writeMessage(google::protobuf::Message* m)
|
|||||||
|
|
||||||
//PROTOISTREAM
|
//PROTOISTREAM
|
||||||
|
|
||||||
ProtoIStream::ProtoIStream(istream* infile) : m_infile(infile)
|
ProtoIStream::ProtoIStream(std::istream *infile) : m_infile(infile)
|
||||||
{
|
{
|
||||||
m_log.setDescription("ProtoStream");
|
m_log.setDescription("ProtoStream");
|
||||||
m_log.showTime(false);
|
m_log.showTime(false);
|
||||||
|
|||||||
@ -22,8 +22,6 @@
|
|||||||
|
|
||||||
#include "Logger.hpp"
|
#include "Logger.hpp"
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \class ProtoOStream
|
* \class ProtoOStream
|
||||||
*
|
*
|
||||||
@ -36,10 +34,10 @@ class ProtoOStream
|
|||||||
uint32_t m_size;
|
uint32_t m_size;
|
||||||
|
|
||||||
Logger m_log;
|
Logger m_log;
|
||||||
ostream* m_outfile;
|
std::ostream* m_outfile;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ProtoOStream(ostream * outfile);
|
ProtoOStream(std::ostream *outfile);
|
||||||
virtual ~ProtoOStream() {};
|
virtual ~ProtoOStream() {};
|
||||||
/**
|
/**
|
||||||
* Writes a message to a file.
|
* Writes a message to a file.
|
||||||
@ -63,11 +61,11 @@ class ProtoIStream
|
|||||||
long m_sizeOfInfile;
|
long m_sizeOfInfile;
|
||||||
|
|
||||||
Logger m_log;
|
Logger m_log;
|
||||||
istream* m_infile;
|
std::istream *m_infile;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ProtoIStream(istream * infile);
|
ProtoIStream(std::istream *infile);
|
||||||
virtual ~ProtoIStream() {};
|
virtual ~ProtoIStream() {};
|
||||||
/**
|
/**
|
||||||
* Resets the position of the get pointer. After that getNext
|
* Resets the position of the get pointer. After that getNext
|
||||||
|
|||||||
Reference in New Issue
Block a user