📄 tabmaptoolblock.h
字号:
// tabmaptoolblock.h: interface for the TABMAPToolBlock class.///*--------------------------------------------------------------------- * class TABMAPToolBlock * * Class to handle Read/Write operation on .MAP Drawing Tool Blocks (Type 05) * * In addition to handling the I/O, this class also maintains the list * of Tool definitions in memory. *--------------------------------------------------------------------*/#ifndef TABMAPToolBlock_H#define TABMAPToolBlock_H#include "tabrawbinblock.h"#include "tabbinblockmanager.h"class TABMAPToolBlock : public TABRawBinBlock {protected: int m_numDataBytes; /* Excluding first 8 bytes header */ UGKInt32 m_nNextToolBlock; int m_numBlocksInChain; TABBinBlockManager *m_poBlockManagerRef;public: TABMAPToolBlock(TABAccess eAccessMode = TABRead); virtual ~TABMAPToolBlock(); virtual int InitBlockFromData(UGKByte *pabyBuf, int nSize, UGKBool bMakeCopy = TRUE, FILE *fpSrc = NULL, int nOffset = 0); virtual int InitNewBlock(FILE *fpSrc, int nBlockSize, int nFileOffset=0); virtual int CommitToFile(); virtual int GetBlockClass() { return TABMAP_TOOL_BLOCK; }; void SetMAPBlockManagerRef(TABBinBlockManager *poBlockManager); virtual int ReadBytes(int numBytes, UGKByte *pabyDstBuf); virtual int WriteBytes(int nBytesToWrite, UGKByte *pBuf); void SetNextToolBlock(UGKInt32 nNextCoordBlockAddress); UGKBool EndOfChain(); int GetNumBlocksInChain() { return m_numBlocksInChain; }; int CheckAvailableSpace(int nToolType); virtual void Dump(FILE *fpOut = NULL);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -