removed ostream support from AutoDetectStream

This commit is contained in:
Guenter Obiltschnig 2017-02-11 23:59:26 +01:00
parent 0d5c454b9c
commit 03ddc4e20f
2 changed files with 0 additions and 34 deletions

View File

@ -23,7 +23,6 @@
#include "Poco/Zip/Zip.h" #include "Poco/Zip/Zip.h"
#include "Poco/BufferedStreamBuf.h" #include "Poco/BufferedStreamBuf.h"
#include <istream> #include <istream>
#include <ostream>
namespace Poco { namespace Poco {
@ -37,12 +36,6 @@ public:
AutoDetectStreamBuf(std::istream& in, const std::string& prefix, const std::string& postfix, bool reposition, Poco::UInt32 start); AutoDetectStreamBuf(std::istream& in, const std::string& prefix, const std::string& postfix, bool reposition, Poco::UInt32 start);
/// Creates the AutoDetectStream. /// Creates the AutoDetectStream.
AutoDetectStreamBuf(std::ostream& out);
/// Creates the AutoDetectStream.
/// If initStream is true the status of the stream will be cleared on the first access, and the stream will be repositioned
/// to position start
~AutoDetectStreamBuf(); ~AutoDetectStreamBuf();
/// Destroys the AutoDetectStream. /// Destroys the AutoDetectStream.
@ -58,7 +51,6 @@ private:
}; };
std::istream* _pIstr; std::istream* _pIstr;
std::ostream* _pOstr;
bool _eofDetected; bool _eofDetected;
int _matchCnt; int _matchCnt;
std::string _prefix; std::string _prefix;
@ -80,10 +72,6 @@ public:
/// Creates the basic stream and connects it /// Creates the basic stream and connects it
/// to the given input stream. /// to the given input stream.
AutoDetectIOS(std::ostream& ostr);
/// Creates the basic stream and connects it
/// to the given output stream.
~AutoDetectIOS(); ~AutoDetectIOS();
/// Destroys the stream. /// Destroys the stream.

View File

@ -30,7 +30,6 @@ namespace Zip {
AutoDetectStreamBuf::AutoDetectStreamBuf(std::istream& in, const std::string& pre, const std::string& post, bool reposition, Poco::UInt32 start): AutoDetectStreamBuf::AutoDetectStreamBuf(std::istream& in, const std::string& pre, const std::string& post, bool reposition, Poco::UInt32 start):
Poco::BufferedStreamBuf(STREAM_BUFFER_SIZE, std::ios::in), Poco::BufferedStreamBuf(STREAM_BUFFER_SIZE, std::ios::in),
_pIstr(&in), _pIstr(&in),
_pOstr(0),
_eofDetected(false), _eofDetected(false),
_matchCnt(0), _matchCnt(0),
_prefix(pre), _prefix(pre),
@ -42,21 +41,6 @@ AutoDetectStreamBuf::AutoDetectStreamBuf(std::istream& in, const std::string& pr
} }
AutoDetectStreamBuf::AutoDetectStreamBuf(std::ostream& out):
Poco::BufferedStreamBuf(STREAM_BUFFER_SIZE, std::ios::out),
_pIstr(0),
_pOstr(&out),
_eofDetected(false),
_matchCnt(0),
_prefix(),
_postfix(),
_reposition(false),
_start(0u),
_length(0)
{
}
AutoDetectStreamBuf::~AutoDetectStreamBuf() AutoDetectStreamBuf::~AutoDetectStreamBuf()
{ {
} }
@ -178,12 +162,6 @@ AutoDetectIOS::AutoDetectIOS(std::istream& istr, const std::string& pre, const s
} }
AutoDetectIOS::AutoDetectIOS(std::ostream& ostr): _buf(ostr)
{
poco_ios_init(&_buf);
}
AutoDetectIOS::~AutoDetectIOS() AutoDetectIOS::~AutoDetectIOS()
{ {
} }