tabmaptoolblock.h
来自「linux下一款GIS程序源码」· C头文件 代码 · 共 55 行
H
55 行
// 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 + =
减小字号Ctrl + -
显示快捷键?