iostream.cpp
来自「sloedgy open sip stack source code」· C++ 代码 · 共 61 行
CPP
61 行
//
// (c) Yuriy Gorvitovskiy
// for Openh323, www.Openh323.org
//
// Windows CE Port
//
// iostream implementation
//
#include <iostream.h>
/*******************************************************************************/
iostream::iostream()
: istream(), ostream()
{
}
/*******************************************************************************/
iostream::iostream(streambuf* pSB)
: istream(pSB), ostream(pSB)
{
}
/*******************************************************************************/
iostream::iostream(const iostream& Strm)
: istream(Strm), ostream(Strm)
{
}
/*******************************************************************************/
iostream::~iostream()
{
if ((istream::bp==ostream::bp) && (&istream::bp!=&ostream::bp))
istream::bp = NULL; // let ostream::ios::~ios() do it
}
/*******************************************************************************/
//!!![YG] ostream_withassign cout(new filebuf(1));
//!!![YG] static Iostream_init __InitCout(cout,-1);
/*******************************************************************************/
Iostream_init::Iostream_init()
{
}
/*******************************************************************************/
Iostream_init::Iostream_init(ios& pstrm, int sflg)
{
pstrm.delbuf(1);
if (sflg>=0) // make sure not cout
pstrm.tie(&cout);
if (sflg>0)
pstrm.setf(ios::unitbuf);
}
/*******************************************************************************/
Iostream_init::~Iostream_init()
{
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?