mirror of
https://github.com/siemens-mobile-hacks/apoxi.git
synced 2026-11-25 23:57:35 +00:00
51 lines
1.7 KiB
C++
51 lines
1.7 KiB
C++
/* ------------------------------------------------------------------------
|
|
Copyright (C) 2000 COMNEON GmbH& Co. OHG. All rights reserved.
|
|
------------------------------------------------------------------------
|
|
This document contains proprietary information belonging to COMNEON.
|
|
Passing on and copying of this document, use and communication of its
|
|
contents is not permitted without prior written authorisation.
|
|
------------------------------------------------------------------------ */
|
|
|
|
#if !defined(Apoxi_TraceOutputStream_hpp)
|
|
#define Apoxi_TraceOutputStream_hpp
|
|
|
|
#include <Kernel/OutputStream.hpp>
|
|
|
|
#ifndef APOXI_NOSTREAMING
|
|
|
|
class TraceOutputStream : public OutputStream {
|
|
public:
|
|
TraceOutputStream(OutputStream* stream);
|
|
virtual ~TraceOutputStream();
|
|
|
|
virtual INT Write (const BYTE data);
|
|
virtual INT Write (const BYTE* data, INT len);
|
|
|
|
virtual OutputStream& operator << (const char c);
|
|
virtual OutputStream& operator << (const unsigned char c);
|
|
// virtual OutputStream& operator << (const signed char c);
|
|
|
|
virtual OutputStream& operator << (const char* s);
|
|
|
|
virtual OutputStream& operator << (const wchar_t* w);
|
|
|
|
virtual OutputStream& operator << (const short n);
|
|
virtual OutputStream& operator << (const unsigned short n);
|
|
|
|
virtual OutputStream& operator << (const int n);
|
|
virtual OutputStream& operator << (const unsigned int n);
|
|
|
|
virtual OutputStream& operator << (const long n);
|
|
virtual OutputStream& operator << (const unsigned long n);
|
|
|
|
virtual void Flush();
|
|
|
|
private:
|
|
OutputStream* m_stream;
|
|
};
|
|
|
|
#endif
|
|
|
|
#endif // Apoxi_TraceOutputStream_hpp
|
|
|
|
|