You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.5 KiB
51 lines
1.5 KiB
//+---------------------------------------------------------------------------
|
|
//
|
|
// Copyright (C) 1991-1992, Microsoft Corporation.
|
|
//
|
|
// File: QUERBLE.HXX
|
|
//
|
|
// Contents: Queriable Object
|
|
//
|
|
// Classes: CQueriable
|
|
//
|
|
// History: 14-Jul-92 MikeHew Created
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
class CKey;
|
|
class CKeyArray;
|
|
|
|
//+---------------------------------------------------------------------------
|
|
//
|
|
// Class: CQueriable
|
|
//
|
|
// Purpose: Pure virtual class for all queriable objects
|
|
//
|
|
// Interface: QueryCursor - Obtain a cursor
|
|
//
|
|
// History: 14-Jul-92 MikeHew Created
|
|
//
|
|
// Notes: Inherited by CIndex and applications which highlight
|
|
// query hits.
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
class CQueriable
|
|
{
|
|
public:
|
|
|
|
virtual COccCursor * QueryCursor( const CKey * pkey,
|
|
BOOL isRange,
|
|
ULONG & cMaxNodes ) = 0;
|
|
|
|
virtual COccCursor * QueryRangeCursor( const CKey * pkeyBegin,
|
|
const CKey * pkeyEnd,
|
|
ULONG & cMaxNodes ) = 0;
|
|
|
|
virtual COccCursor * QuerySynCursor( CKeyArray & keyArr,
|
|
BOOL isRange,
|
|
ULONG & cMaxNodes ) = 0;
|
|
};
|
|
|