rowvalues.h

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

H
32
字号
// File: RowValues.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"
#include "ColumnValues.h"
#include "Trace.h"

// RowValues is a light wrapper around CAtlArray.  It is used to store and access
// row values from the results of a stored procedure.
class RowValues : protected CAtlArray<ColumnValues>
{
public:
	RowValues();
	RowValues(const RowValues& c);	
	
	~RowValues();
	
	const ColumnValues& GetRowValue(int index) const;	
	void AddRowValue(const ColumnValues& columnValues);
	void Reset();
	int GetNumRows() const;

	RowValues& operator=(const RowValues& p);
};

⌨️ 快捷键说明

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