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.

70 lines
1.7 KiB

  1. // EventContainer.h: interface for the CEventContainer class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_EVENTCONTAINER_H__988BB453_8C93_11D3_BE83_0000F87A3912__INCLUDED_)
  5. #define AFX_EVENTCONTAINER_H__988BB453_8C93_11D3_BE83_0000F87A3912__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "Event.h"
  10. #include "Statistics.h"
  11. #include "HMObject.h"
  12. class CEventContainer : public CObject
  13. {
  14. DECLARE_DYNCREATE(CEventContainer)
  15. // Construction/Destruction
  16. public:
  17. CEventContainer();
  18. virtual ~CEventContainer();
  19. // Event Operations
  20. public:
  21. void AddEvents(EventArray& Events);
  22. void AddEvent(CEvent* pEvent);
  23. CEvent* GetEventByGuid(const CString& sStatusGuid);
  24. void DeleteEvent(const CString& sStatusGuid);
  25. virtual void DeleteEvent(int iIndex);
  26. void DeleteEvents();
  27. void DeleteSystemEvents(const CString& sSystemName);
  28. int GetEventCount();
  29. CEvent* GetEvent(int iIndex);
  30. CString GetLastEventDTime();
  31. // Statistics Operations
  32. public:
  33. void AddStatistic(CStatistics* pStatistic);
  34. void AddStatistics(StatsArray& Statistics);
  35. void DeleteStatistics();
  36. int GetStatisticsCount();
  37. CStatistics* GetStatistic(int iIndex);
  38. // Attributes
  39. public:
  40. int m_iState;
  41. CString m_sConfigurationGuid;
  42. int m_iNumberNormals;
  43. int m_iNumberWarnings;
  44. int m_iNumberCriticals;
  45. int m_iNumberUnknowns;
  46. protected:
  47. EventArray m_Events;
  48. StatsArray m_Statistics;
  49. // Configuration Association Members
  50. public:
  51. CHMObject* GetObjectPtr();
  52. void SetObjectPtr(CHMObject* pObject);
  53. protected:
  54. CHMObject* m_pObject;
  55. };
  56. #include "EventContainer.inl"
  57. #endif // !defined(AFX_EVENTCONTAINER_H__988BB453_8C93_11D3_BE83_0000F87A3912__INCLUDED_)