iresultsbuilder.h

来自「Vc.Net入门与提高源码」· C头文件 代码 · 共 26 行

H
26
字号
// File: IResultsBuilder.h
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Classes Reference and related electronic
// documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft C++ Libraries products.

#pragma once

#include "stdafx.h"

// IResultsBuilder is the interface that DBCommand interacts with to store results.  For example,
// as a DBCommand object interates over the results from a stored procedure, it calls AddColumnValue for
// each column result.  When a row of results if finished, DoneRow() is called.  This abstraction allows 
// us to substitute various storage implementations for our results.
class IResultsBuilder
{
public:	
	virtual void AddColumnValue(CStringA& value)= 0;
	virtual void SetReturnValue(CStringA& value)= 0;
	virtual void AddOutputParamValue(CStringA& value)= 0;	
	virtual void DoneRow()= 0;
	virtual void DoneResultSet()= 0;
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?