www.gusucode.com > 通用权限管理模块的设计与实现C++源码程序 > 通用权限管理模块的设计与实现/powerset/PowerSetDoc.cpp

    // PowerSetDoc.cpp : implementation of the CPowerSetDoc class
//

#include "stdafx.h"
#include "PowerSet.h"

#include "PowerSetDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CPowerSetDoc

IMPLEMENT_DYNCREATE(CPowerSetDoc, CDocument)

BEGIN_MESSAGE_MAP(CPowerSetDoc, CDocument)
	//{{AFX_MSG_MAP(CPowerSetDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CPowerSetDoc construction/destruction

CPowerSetDoc::CPowerSetDoc()
{
	// TODO: add one-time construction code here

}

CPowerSetDoc::~CPowerSetDoc()
{
}

BOOL CPowerSetDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CPowerSetDoc serialization

void CPowerSetDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CPowerSetDoc diagnostics

#ifdef _DEBUG
void CPowerSetDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CPowerSetDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CPowerSetDoc commands