www.pudn.com > ChineseProcessing.rar > CPTDoc.h


// CPTDoc.h : interface of the CCPTDoc class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_CPTDOC_H__4BF0FD57_A6DF_4F0F_9DD5_DA7127106A9F__INCLUDED_) 
#define AFX_CPTDOC_H__4BF0FD57_A6DF_4F0F_9DD5_DA7127106A9F__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class CCPTDoc : public CDocument 
{ 
protected: // create from serialization only 
	CCPTDoc(); 
	DECLARE_DYNCREATE(CCPTDoc) 
 
// Attributes 
public: 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CCPTDoc) 
	public: 
	virtual BOOL OnNewDocument(); 
	virtual void Serialize(CArchive& ar); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	CString GetSourceDirectory(); 
	void IncNumTrigrams(); 
	void IncNumBigrams(); 
	void IncNumUnigrams(); 
	void IncNumSent(); 
	void IncNumChars(); 
	void IncNumFiles(); 
	UINT GetNumTrigrams() {return m_nNumTrigrams;}; 
	UINT GetNumBigrams(){return m_nNumBigrams;}; 
	UINT GetNumUnigrams(){return m_nNumUnigrams;}; 
	UINT GetNumSent(){return m_nNumSent;}; 
	UINT GetNumChars(){return m_nNumChars;}; 
	UINT GetNumFiles(){return m_nNumFiles;}; 
	void ClearAllCounters(); 
	virtual ~CCPTDoc(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CCPTDoc) 
		// 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() 
private: 
	UINT m_nNumTrigrams; 
	UINT m_nNumBigrams; 
	UINT m_nNumUnigrams; 
	UINT m_nNumChars; 
	UINT m_nNumSent; 
	UINT m_nNumFiles; 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_CPTDOC_H__4BF0FD57_A6DF_4F0F_9DD5_DA7127106A9F__INCLUDED_)