windows-nt/Source/XPSP1/NT/admin/hmonitor/snapin/eventcontainer.cpp

38 lines
813 B
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
// EventContainer.cpp: implementation of the CEventContainer class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "snapin.h"
#include "EventContainer.h"
#include "HMObject.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
IMPLEMENT_DYNCREATE(CEventContainer,CObject)
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CEventContainer::CEventContainer()
{
m_iState = 0;
m_pObject = NULL;
m_iNumberNormals = 0;
m_iNumberWarnings = 0;
m_iNumberCriticals = 0;
m_iNumberUnknowns = 0;
}
CEventContainer::~CEventContainer()
{
m_pObject = NULL;
DeleteEvents();
DeleteStatistics();
}