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.

55 lines
1.1 KiB

  1. #ifndef _EVTLOG_H_
  2. #define _EVTLOG_H_
  3. // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  4. //
  5. // EVTLOG.H
  6. //
  7. // Header for event log cache class.
  8. // This cache is meant to serve as a map. indexes on the event key.
  9. // we really don't care the concrete value, but only it is NULL or not
  10. //
  11. // Copyright 1997 Microsoft Corporation, All Rights Reserved
  12. //
  13. // ========================================================================
  14. //
  15. // CLASS CEventLogCache
  16. //
  17. #include "gencache.h"
  18. class CEventLogCache
  19. {
  20. typedef CCache<CRCSzi, LPCSTR> CHdrCache;
  21. // String data storage area.
  22. //
  23. ChainedStringBuffer<char> m_sb;
  24. // Cache of header values, keyed by CRC'd name
  25. //
  26. CHdrCache m_cache;
  27. // NOT IMPLEMENTED
  28. //
  29. CEventLogCache& operator=( const CEventLogCache& );
  30. CEventLogCache( const CEventLogCache& );
  31. public:
  32. // CREATORS
  33. //
  34. CEventLogCache()
  35. {
  36. // If this fails, our allocators will throw for us.
  37. (void)m_cache.FInit();
  38. }
  39. // ACCESSORS
  40. //
  41. BOOL FExist( LPCSTR lpszName );
  42. // MANIPULATORS
  43. void AddKey (LPCSTR lpszName);
  44. };
  45. #endif // !_EVTLOG_H_