Source code of Windows XP (NT5)
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.

80 lines
1.8 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1991 - 1992.
  5. //
  6. // File: VKREP.HXX
  7. //
  8. // Contents: Value Key Repository
  9. //
  10. // Classes: CQueryKeyRepository
  11. //
  12. // History: 04-Nov-94 KyleP Extracted from Query Key Repository
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include <plang.hxx>
  17. class CRangeRestriction;
  18. //+---------------------------------------------------------------------------
  19. //
  20. // Class: CRangeKeyRepository
  21. //
  22. // Purpose: Key repository for value queries
  23. //
  24. // History: 24-Sep-92 BartoszM Created
  25. //
  26. //----------------------------------------------------------------------------
  27. class CRangeKeyRepository: public PKeyRepository
  28. {
  29. public:
  30. CRangeKeyRepository();
  31. ~CRangeKeyRepository();
  32. inline BOOL PutPropId ( PROPID pid );
  33. void PutKey ( ULONG cNoiseWordsSkipped = 0 );
  34. void PutWorkId ( WORKID ) {}
  35. void GetBuffers( UINT** ppcbWordBuf,
  36. BYTE** ppbWordBuf,
  37. OCCURRENCE** ppocc );
  38. void GetSourcePosBuffers( ULONG** ppSrcPos, ULONG** ppSrcLen)
  39. {
  40. *ppSrcPos = 0;
  41. *ppSrcLen = 0;
  42. }
  43. void GetFlags ( BOOL** ppRange, CI_RANK** ppRank );
  44. CRangeRestriction* AcqRst();
  45. inline const ULONG GetFilteredBlockCount() const
  46. {
  47. Win4Assert(!"Function not supported in this class!");
  48. return 0;
  49. }
  50. private:
  51. int _count;
  52. CKeyBuf _key;
  53. OCCURRENCE _occ;
  54. CRangeRestriction* _pRangeRst;
  55. };
  56. inline BOOL CRangeKeyRepository::PutPropId( PROPID pid )
  57. {
  58. _key.SetPid(pid);
  59. return TRUE;
  60. }