richtestdoc.h
来自「故障诊断工作涉及的领域相当广泛」· C头文件 代码 · 共 134 行
H
134 行
// richtestDoc.h : interface of the CRichtestDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_RICHTESTDOC_H__22EC97B3_A366_42E9_9805_839C8C133387__INCLUDED_)
#define AFX_RICHTESTDOC_H__22EC97B3_A366_42E9_9805_839C8C133387__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//enum type{type_char=0,type_short=1,type_int=2,type_double=3,type_mw=4,type_var=5};
#include "myview.h"
#include "editor2numric.h"
class CRichtestSrvrItem;
#include "calculatordlg.h"
#include "myform.h" // Added by ClassView
#include "viberation.h"
#include "command.h"
#include "readmoduleinfo.h"
#include "func_template.h"
#include "readcommand.h"
#include "readdata.h"
#include "myplot_idl.h"
#include "bp_net.h"
#include "mygraph.h"
enum error_code{none,cmdl_error,in_data_error,data_error,run_error};
enum mytask{in_data,calt,dig_data,bp_diagnose,graph};
class CRichtestDoc : public CRichEditDoc
{
BOOL bgraph;
BOOL bbpnet;
unsigned int cnt;//完成的模块级别
mytask current_task;
error_code error;
mydata *pdata;//模块所需的结构数据:
mydata *result;
mydata streamline; //处理流水线
int conector_id[COUNT_LIMIT];
CString run_info[PROCESS_CNT+1];
//mydata result[PROCESS_CNT+1];//结果存放数组
command* pcmd;// 复杂数据:模块
bp_net bpnet;
bp_net bpnet0;
mygraph graph;
mydata bp_diagnose_result;
BOOL b_from_file;
CString cmd_text;
int cmd_count;
BOOL link_stview;
BOOL link_formview;
int count_limit;
LPCTSTR lpszPathName;
int total_count;
protected: // create from serialization only
CRichtestDoc();
DECLARE_DYNCREATE(CRichtestDoc)
// Attributes
public:
CRichtestSrvrItem* GetEmbeddedItem()
{ return (CRichtestSrvrItem*)CRichEditDoc::GetEmbeddedItem(); }
CRichEditView* geteditor();
// Operations
public:
friend class myform;
friend class myview;
friend class CRichtestView;
friend class CCadView;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRichtestDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
virtual void SetPathName(LPCTSTR lpszPathName, BOOL bAddToMRU = TRUE);
protected:
virtual COleServerItem* OnGetEmbeddedItem();
//}}AFX_VIRTUAL
virtual CRichEditCntrItem* CreateClientItem(REOBJECT* preo) const;
// Implementation
public:
myview* getview();
CCadView* getcad();
BOOL create(int net_type,unsigned int type, double stderror,unsigned info[]);
BOOL read_data();
BOOL get_cmd();
void attach(mydata in);
LRESULT runcmd(unsigned int* cnt);
myform* getform();
mydata* sendbag() const;
virtual ~CRichtestDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
BOOL get_data();
//{{AFX_MSG(CRichtestDoc)
afx_msg void OnDataInput();
afx_msg void OnCalculator();
afx_msg void OnDataExplore();
afx_msg void OnUpdateDataExplore(CCmdUI* pCmdUI);
afx_msg void OnBpExcercize();
afx_msg void OnUpdateBpExcercize(CCmdUI* pCmdUI);
afx_msg void OnMDiagnose();
afx_msg void OnUpdateMDiagnose(CCmdUI* pCmdUI);
afx_msg void OnBpCreate();
afx_msg void OnUpdateBpCreate(CCmdUI* pCmdUI);
afx_msg void OnReexcersize();
afx_msg void OnUpdateReexcersize(CCmdUI* pCmdUI);
afx_msg void OnGraphCreate();
afx_msg void OnUpdateGraphCreate(CCmdUI* pCmdUI);
afx_msg void OnGraphTest();
afx_msg void OnUpdateGraphTest(CCmdUI* pCmdUI);
afx_msg void OnGraphRun();
afx_msg void OnUpdateGraphRun(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_RICHTESTDOC_H__22EC97B3_A366_42E9_9805_839C8C133387__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?