📄 mapperdoc.h
字号:
//////////////////////////////////////////////////////////////////////
//
// File: mapperDoc.h
//
// $Archive: /ComemL/Util/PCfg/mapperDoc.h $
//
// Purpose:
//
// $Author: Tpm $
//
// $History: mapperDoc.h $
//
// ***************** Version 1 *****************
// User: Tpm Date: 7/13/98 Time: 8:38a
// Created in $/ComemL/Util/PCfg
//
// ***************** 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
//TPMTPMTPM CMapperDoc();
DECLARE_DYNCREATE(CMapperDoc)
// Attributes
public:
CMapperDoc(); //TPMTPMTPM Publicised
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -