⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 acquireklgdoc.cpp

📁 实现规则推理 模糊识别 神经网络的专家系统
💻 CPP
字号:
// AcquireKlgDoc.cpp : implementation of the CAcquireKlgDoc class
//

#include "stdafx.h"
#include "AcquireKlg.h"

#include "AcquireKlgDoc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CAcquireKlgDoc

IMPLEMENT_DYNCREATE(CAcquireKlgDoc, CDocument)

BEGIN_MESSAGE_MAP(CAcquireKlgDoc, CDocument)
	//{{AFX_MSG_MAP(CAcquireKlgDoc)
	
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CAcquireKlgDoc construction/destruction

CAcquireKlgDoc::CAcquireKlgDoc()
{
	

	//m_Command.SetActiveConnection(&m_DataBase);

}

CAcquireKlgDoc::~CAcquireKlgDoc()
{
}

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

	m_pRwView = (CRuleWizardView*)GetView(RUNTIME_CLASS(CRuleWizardView)); 
	m_pRdView = (CRuleDefineView*)GetView(RUNTIME_CLASS(CRuleDefineView)); 
	m_pNtView = (CNodeTreeView*)GetView(RUNTIME_CLASS(CNodeTreeView));
	m_pTipView = (CTipView*)GetView(RUNTIME_CLASS(CTipView));


	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CAcquireKlgDoc serialization

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

/////////////////////////////////////////////////////////////////////////////
// CAcquireKlgDoc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CAcquireKlgDoc commands
//*************************自定义函数*****************************************

// 获得各个视图类的指针
CView* CAcquireKlgDoc::GetView(CRuntimeClass* pClass){
	CView* pView = NULL; 
	POSITION pos=GetFirstViewPosition(); 
	
	while(pos!=NULL){ 
		pView=GetNextView(pos); 
		if(pView->IsKindOf(pClass)) 
			break;
	} 

	if(!pView->IsKindOf(pClass)){ 
		AfxMessageBox("Cann't Locate the View."); 
		return NULL;
	} 

	return pView;
	
}






⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -