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.

37 lines
813 B

  1. // EventContainer.cpp: implementation of the CEventContainer class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #include "stdafx.h"
  5. #include "snapin.h"
  6. #include "EventContainer.h"
  7. #include "HMObject.h"
  8. #ifdef _DEBUG
  9. #undef THIS_FILE
  10. static char THIS_FILE[]=__FILE__;
  11. #define new DEBUG_NEW
  12. #endif
  13. IMPLEMENT_DYNCREATE(CEventContainer,CObject)
  14. //////////////////////////////////////////////////////////////////////
  15. // Construction/Destruction
  16. //////////////////////////////////////////////////////////////////////
  17. CEventContainer::CEventContainer()
  18. {
  19. m_iState = 0;
  20. m_pObject = NULL;
  21. m_iNumberNormals = 0;
  22. m_iNumberWarnings = 0;
  23. m_iNumberCriticals = 0;
  24. m_iNumberUnknowns = 0;
  25. }
  26. CEventContainer::~CEventContainer()
  27. {
  28. m_pObject = NULL;
  29. DeleteEvents();
  30. DeleteStatistics();
  31. }