greenplumn COstreamBasic 源码
greenplumn COstreamBasic 代码
文件路径:/src/backend/gporca/libgpos/src/io/COstreamBasic.cpp
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2009 - 2010 Greenplum, Inc.
//
// @filename:
// COstreamBasic.cpp
//
// @doc:
// Implementation of basic wide character output stream
//---------------------------------------------------------------------------
#include "gpos/io/COstreamBasic.h"
#include "gpos/base.h"
#include "gpos/io/ioutils.h"
using namespace gpos;
//---------------------------------------------------------------------------
// @function:
// COstreamBasic::COstreamBasic
//
// @doc:
// ctor
//
//---------------------------------------------------------------------------
COstreamBasic::COstreamBasic(WOSTREAM *pos) : COstream(), m_ostream(pos)
{
GPOS_ASSERT(nullptr != m_ostream && "Output stream cannot be NULL");
}
//---------------------------------------------------------------------------
// @function:
// COstreamBasic::operator<<
//
// @doc:
// WCHAR write thru;
//
//---------------------------------------------------------------------------
IOstream &
COstreamBasic::operator<<(const WCHAR *wsz)
{
m_ostream = &(*m_ostream << wsz);
return *this;
}
//---------------------------------------------------------------------------
// @function:
// COstreamBasic::operator<<
//
// @doc:
// WCHAR write thru;
//
//---------------------------------------------------------------------------
IOstream &
COstreamBasic::operator<<(const WCHAR wc)
{
m_ostream = &(*m_ostream << wc);
return *this;
}
// EOF
相关信息
相关文章
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦