mapperdoc.h

来自「The Lite Evaluation/Demonstration Kit is」· C头文件 代码 · 共 139 行

H
139
字号
//////////////////////////////////////////////////////////////////////
//
// File: mapperDoc.h 
//
// $Archive: /ComemL/Host/ComemLif/mapperDoc.h $
//
// Purpose:
//
// $Author: Tpm $
//
// $History: mapperDoc.h $
//  
//  *****************  Version 23  *****************
//  User: Tpm          Date: 11/06/98   Time: 4:58p
//  Updated in $/ComemL/Host/ComemLif
//  Creat seperate directory for ComemLite IF Library.
//  
//  *****************  Version 21  *****************
//  User: Tpm          Date: 8/27/98    Time: 10:30a
//  Updated in $/Comem/Mapper
//  Aug Plug-Fest version.
//  
//  *****************  Version 20  *****************
//  User: Tpm          Date: 8/27/98    Time: 9:12a
//  Updated in $/ComemL/Host/ComemLif
//  use ComelL.vxd.
//  
//  *****************  Version 19  *****************
//  User: Tpm          Date: 10/31/97   Time: 6:17p
//  Updated in $/Comem/Mapper
//  Bug: SWAP ICache/DCache locations.
//  Bug: Recalc CACHE start addresses to mask off low order bit.
//  Req: Make double-Click in Visual map bring up mem in local space.
//  Fix: Space is remapped now.
//  
//  *****************  Version 18  *****************
//  User: Tpm          Date: 10/31/97   Time: 10:04a
//  Updated in $/Comem/Mapper
//  Req: Add Address Selector to Memory Views to select cache pages.
//  Fix: Added Selector and strings for cache pages.
//  
//  *****************  Version 17  *****************
//  User: Tpm          Date: 10/30/97   Time: 9:18a
//  Updated in $/Comem/Mapper
//  Req: Implement "Load/Save Configuration" for .ini file.
//  Fix: Added options to File Menu.
//  Req: Should display .ini file ID in toolbar vice "Mapper1".
//  Fix: Displays .ini file now.
//  Bug: StartScreen Comem Number dropdown is too short.
//  Fix: Changed properties to have "No Integral height"; now shows mult
//  selections.
//  
//  *****************  Version 16  *****************
//  User: Stevek       Date: 10/24/97   Time: 3:55p
//  Updated in $/Comem/Mapper
//  Started to seperate library functions out of mapper files.
//  Current code is tested with one comem.
//  
//  *****************  Version 15  *****************
//  User: Stevek       Date: 10/22/97   Time: 12:27p
//  Updated in $/Comem/Mapper
//  Added header blocks to all files at once!
//  
// Copyright (c) 1997 Anchor Chips, Inc.  May not be reproduced without
// permission.  See the license agreement for more details.
//
//////////////////////////////////////////////////////////////////////
// mapperDoc.h : interface of the CMapperDoc class
//
/////////////////////////////////////////////////////////////////////////////


class CMapperSrvrItem;

class CMapperDoc : public COleServerDoc
{
protected: // create from serialization only
	CMapperDoc();
	DECLARE_DYNCREATE(CMapperDoc)

// Attributes
public:
	CMapperSrvrItem* GetEmbeddedItem()
		{ return (CMapperSrvrItem*)COleServerDoc::GetEmbeddedItem(); }

// Operations
public:
//   void MyTile();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMapperDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	virtual void DeleteContents();
	virtual void OnCloseDocument();
	protected:
	virtual COleServerItem* OnGetEmbeddedItem();
	virtual BOOL SaveModified();
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMapperDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
	CString lastFilename;
	DWORD	lastFileType;
	CString	cpuName;						// Just a comment for the user
	DWORD	comemID;
   CComemDevice *dev;
   errcodeE writeCfgFile(blockT *block, const char *filename = NULL);
   errcodeE readCfgFile(blockT *blockArray, const char *filename = NULL);


protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMapperDoc)
		// 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()

	// Generated OLE dispatch map functions
	//{{AFX_DISPATCH(CMapperDoc)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DISPATCH
	DECLARE_DISPATCH_MAP()
	DECLARE_INTERFACE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

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