// KBEditorsDoc.h : interface of the CKBEditorsDoc class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_KBEDITORSDOC_H__B419213B_A59E_11D3_9695_0040C7772DA0__INCLUDED_) #define AFX_KBEDITORSDOC_H__B419213B_A59E_11D3_9695_0040C7772DA0__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include #include "stdafx.h" #include "General.h" class CKBEditorsView; class CKBEditorsDoc : public CDocument { public: CKBEditorsDoc(); BOOL MyOpenDocument(LPCTSTR lpszPathName); protected: // create from serialization only DECLARE_DYNCREATE(CKBEditorsDoc) //General Pointer // public: CString AppName; CString AppDir; CString WorkingMemoryFile; CCluster *Cluster; CConcept * Cpt; CRule * Rule ; CProperty * Prop; CImageListOb m_ImageListOb; // Attributes public: CCptList m_TempCptList; CCptList m_CptList; CCptList m_CptListA; CCptIDList m_MapIDToCpt; long MaxConceptID; long MaxRuleID; CClusterList m_ClusterList; CInferenceList m_InferenceList; CWMStructure* m_WM; CTableList m_TableList; CService * Service; CServiceList m_ServiceList; CString DBName; CString DBPath; CKBDBList m_CKBDBList; CTblKeysList m_CTblKeysList; CStringArray m_CBDKeysList; BOOL Language; void DecomposeString(CString str, CString &str1, CString &str2,const char * delemeter); void AbductAll(CString strCluster, CString strCpt,CString strProp); void AbductAll(CString strCluster, CString strCpt,CString strProp, CString strVal); BOOL LogicalCondition(CString Cond); void AddinTempList(CString str); void InitTempList(); public: // Temperary Variables CString CurrentCpt; CString CurrentProp; // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CKBEditorsDoc) public: virtual BOOL OnNewDocument(); virtual void Serialize(CArchive& ar); virtual void OnCloseDocument(); virtual BOOL OnOpenDocument(LPCTSTR lpszPathName); //}}AFX_VIRTUAL // Implementation public: CString GetVersion(); BOOL SetDBAssociationToWM(); void AssertToWM(CString strCpt, CString strProp, CString strVal); void SetDBValueToWM(CString strCpt, CString strProp, CString strVal); void SetDefaultInWM(); BOOL IsSourceValue(CString ssSource, CProperty* Prop); BOOL IsSourceValue(CString ssSource, CString ssCpt, CString ssProp); void InitWM(); void RemoveCptPropValFromWM(CConcept* Cpt,CString strVal); void PrintWM(); //void GetChildList(CCptList m_CptList,CString strCpt,CObArray * ListVal); void PlayInference(CString strInf); void RemoveItemFromWM(CString Cpt, CString Prop); virtual ~CKBEditorsDoc(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif private: int Version; // Generated message map functions protected: //{{AFX_MSG(CKBEditorsDoc) // NOTE - the ClassWizard will add and remove member functions here. // DO NOT EDIT what you see in these blocks of generated code ! //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_KBEDITORSDOC_H__B419213B_A59E_11D3_9695_0040C7772DA0__INCLUDED_)