Leaked source code of windows server 2003
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

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Copyright (C) 1991-1992, Microsoft Corporation.
  4. //
  5. // File: QUERBLE.HXX
  6. //
  7. // Contents: Queriable Object
  8. //
  9. // Classes: CQueriable
  10. //
  11. // History: 14-Jul-92 MikeHew Created
  12. //
  13. //----------------------------------------------------------------------------
  14. #pragma once
  15. class CKey;
  16. class CKeyArray;
  17. //+---------------------------------------------------------------------------
  18. //
  19. // Class: CQueriable
  20. //
  21. // Purpose: Pure virtual class for all queriable objects
  22. //
  23. // Interface: QueryCursor - Obtain a cursor
  24. //
  25. // History: 14-Jul-92 MikeHew Created
  26. //
  27. // Notes: Inherited by CIndex and applications which highlight
  28. // query hits.
  29. //
  30. //----------------------------------------------------------------------------
  31. class CQueriable
  32. {
  33. public:
  34. virtual COccCursor * QueryCursor( const CKey * pkey,
  35. BOOL isRange,
  36. ULONG & cMaxNodes ) = 0;
  37. virtual COccCursor * QueryRangeCursor( const CKey * pkeyBegin,
  38. const CKey * pkeyEnd,
  39. ULONG & cMaxNodes ) = 0;
  40. virtual COccCursor * QuerySynCursor( CKeyArray & keyArr,
  41. BOOL isRange,
  42. ULONG & cMaxNodes ) = 0;
  43. };