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.

64 lines
1.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1997
  5. //
  6. // File: singlcur.hxx
  7. //
  8. // Contents: Downlevel scope enumerator
  9. //
  10. // History: 17-May-93 KyleP Created
  11. //
  12. //--------------------------------------------------------------------------
  13. #pragma once
  14. #include <gencur.hxx>
  15. #include <ffenum.hxx>
  16. //+-------------------------------------------------------------------------
  17. //
  18. // Class: CSingletonCursor
  19. //
  20. // Purpose: `Enumerator' for single object
  21. //
  22. // History: 03-May-94 KyleP Created
  23. //
  24. //--------------------------------------------------------------------------
  25. class CSingletonCursor : public CGenericCursor
  26. {
  27. INLINE_UNWIND( CSingletonCursor );
  28. public:
  29. CSingletonCursor( ICiCQuerySession *pQuerySession,
  30. XXpr & xxpr,
  31. ACCESS_MASK accessMask,
  32. BOOL & fAbort );
  33. void SetCurrentWorkId( WORKID wid );
  34. void SetRank( LONG lRank ) { _lRank = lRank; }
  35. void SetHitCount( ULONG ulHitcount ) { _ulHitCount = ulHitcount; }
  36. void RatioFinished (ULONG& denom, ULONG& num);
  37. protected:
  38. WORKID NextObject();
  39. LONG Rank() { return _lRank; }
  40. ULONG HitCount() { return _ulHitCount; }
  41. private:
  42. LONG _lRank;
  43. ULONG _ulHitCount;
  44. # ifdef CIEXTMODE
  45. void CiExtDump(void *ciExtSelf) const;
  46. # endif
  47. };