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.

62 lines
2.2 KiB

  1. // CachingObj.h -- Caching Object class declaration
  2. // (c) Copyright Schlumberger Technology Corp., unpublished work, created
  3. // 1999. This computer program includes Confidential, Proprietary
  4. // Information and is a Trade Secret of Schlumberger Technology Corp. All
  5. // use, disclosure, and/or reproduction is prohibited unless authorized
  6. // in writing. All Rights Reserved.
  7. #if !defined(SLBCSP_CACHINGOBJ_H)
  8. #define SLBCSP_CACHINGOBJ_H
  9. // Base class for objects that caches information and need to be
  10. // notified when to mark the cache stale and delete the cache.
  11. class CachingObject
  12. {
  13. public:
  14. // Types
  15. // C'tors/D'tors
  16. explicit
  17. CachingObject();
  18. virtual
  19. ~CachingObject();
  20. // Operators
  21. // Operations
  22. // Clears any cached information.
  23. virtual void
  24. ClearCache() = 0;
  25. // Deletes the cache. Some classes may need free the cache
  26. // resource and related information as if the object had been
  27. // delete. The base class version doesn't do anything.
  28. virtual void
  29. DeleteCache();
  30. // Access
  31. // Predicates
  32. protected:
  33. // Types
  34. // C'tors/D'tors
  35. // Operators
  36. // Operations
  37. // Access
  38. // Predicates
  39. // Variables
  40. private:
  41. // Types
  42. // C'tors/D'tors
  43. // Operators
  44. // Operations
  45. // Access
  46. // Predicates
  47. // Variables
  48. };
  49. #endif // SLBCSP_CACHINGOBJ_H