greenplumn COstreamBasic 源码

  • 2022-08-18
  • 浏览 (371)

greenplumn COstreamBasic 代码

文件路径:/src/backend/gporca/libgpos/include/gpos/io/COstreamBasic.h

//---------------------------------------------------------------------------
//	Greenplum Database
//	Copyright (C) 2008 - 2010 Greenplum, Inc.
//
//	@filename:
//		COstreamBasic.h
//
//	@doc:
//		Output stream base class;
//---------------------------------------------------------------------------
#ifndef GPOS_COstreamBasic_H
#define GPOS_COstreamBasic_H

#include "gpos/io/COstream.h"

namespace gpos
{
//---------------------------------------------------------------------------
//	@class:
//		COstreamBasic
//
//	@doc:
//		Implements a basic write thru interface over a std::WOSTREAM
//
//---------------------------------------------------------------------------

class COstreamBasic : public COstream
{
private:
	// underlying stream
	WOSTREAM *m_ostream;

public:
	COstreamBasic(const COstreamBasic &) = delete;

	// please see comments in COstream.h for an explanation
	using COstream::operator<<;

	// ctor
	explicit COstreamBasic(WOSTREAM *ostream);

	~COstreamBasic() override = default;

	// implement << operator
	IOstream &operator<<(const WCHAR *) override;

	// implement << operator
	IOstream &operator<<(const WCHAR) override;
};

}  // namespace gpos

#endif	// !GPOS_COstreamBasic_H

// EOF

相关信息

greenplumn 源码目录

相关文章

greenplumn CFileDescriptor 源码

greenplumn CFileReader 源码

greenplumn CFileWriter 源码

greenplumn COstream 源码

greenplumn COstreamStdString 源码

greenplumn COstreamString 源码

greenplumn IOstream 源码

greenplumn iotypes 源码

greenplumn ioutils 源码

0  赞