| 1 | /****************************************************************************** |
| 2 | * |
| 3 | * Purpose: Block directory API. |
| 4 | * |
| 5 | ****************************************************************************** |
| 6 | * Copyright (c) 2011 |
| 7 | * PCI Geomatics, 90 Allstate Parkway, Markham, Ontario, Canada. |
| 8 | * |
| 9 | * SPDX-License-Identifier: MIT |
| 10 | ****************************************************************************/ |
| 11 | |
| 12 | #ifndef PCIDSK_BLOCK_TILE_DIR_H |
| 13 | #define PCIDSK_BLOCK_TILE_DIR_Hcxx . . $ `frmts/pcidsk/sdk/blockdir/blocktiledir.h:13:9`! |
| 14 | |
| 15 | #include "blockdir/blockdir.h"cxx . . $ `<file>/frmts/pcidsk/sdk/blockdir/blockdir.h`/ |
| 16 | |
| 17 | namespace PCIDSKcxx . . $ PCIDSK/ |
| 18 | { |
| 19 | |
| 20 | class BlockTileLayercxx . . $ PCIDSK/BlockTileLayer#; |
| 21 | |
| 22 | /************************************************************************/ |
| 23 | /* class BlockTileDir */ |
| 24 | /************************************************************************/ |
| 25 | |
| 26 | /** |
| 27 | * Class used to manage a block tile directory. |
| 28 | * |
| 29 | * @see BlockDir |
| 30 | */ |
| 31 | class PCIDSK_DLLcxx . . $ `frmts/pcidsk/sdk/pcidsk_config.h:62:11`! BlockTileDircxx . . $ PCIDSK/BlockTileDir# /* non final*/: public BlockDircxx . . $ PCIDSK/BlockDir# |
| 32 | { |
| 33 | public: |
| 34 | #pragma pack(push, 1) |
| 35 | |
| 36 | /// The block layer info structure. |
| 37 | struct BlockLayerInfocxx . . $ PCIDSK/BlockTileDir#BlockLayerInfo# |
| 38 | { |
| 39 | uint16cxx . . $ PCIDSK/uint16# nLayerTypecxx . . $ PCIDSK/BlockTileDir#BlockLayerInfo#nLayerType. = 0; |
| 40 | uint32cxx . . $ PCIDSK/uint32# nStartBlockcxx . . $ PCIDSK/BlockTileDir#BlockLayerInfo#nStartBlock. = 0; |
| 41 | uint32cxx . . $ PCIDSK/uint32# nBlockCountcxx . . $ PCIDSK/BlockTileDir#BlockLayerInfo#nBlockCount. = 0; |
| 42 | uint64cxx . . $ PCIDSK/uint64# nLayerSizecxx . . $ PCIDSK/BlockTileDir#BlockLayerInfo#nLayerSize. = 0; |
| 43 | }; |
| 44 | |
| 45 | /// The tile layer info structure. |
| 46 | struct TileLayerInfocxx . . $ PCIDSK/BlockTileDir#TileLayerInfo# |
| 47 | { |
| 48 | uint32cxx . . $ PCIDSK/uint32# nXSizecxx . . $ PCIDSK/BlockTileDir#TileLayerInfo#nXSize.; |
| 49 | uint32cxx . . $ PCIDSK/uint32# nYSizecxx . . $ PCIDSK/BlockTileDir#TileLayerInfo#nYSize.; |
| 50 | uint32cxx . . $ PCIDSK/uint32# nTileXSizecxx . . $ PCIDSK/BlockTileDir#TileLayerInfo#nTileXSize.; |
| 51 | uint32cxx . . $ PCIDSK/uint32# nTileYSizecxx . . $ PCIDSK/BlockTileDir#TileLayerInfo#nTileYSize.; |
| 52 | char szDataTypecxx . . $ PCIDSK/BlockTileDir#TileLayerInfo#szDataType.[4]; |
| 53 | char szCompresscxx . . $ PCIDSK/BlockTileDir#TileLayerInfo#szCompress.[8]; |
| 54 | uint16cxx . . $ PCIDSK/uint16# bNoDataValidcxx . . $ PCIDSK/BlockTileDir#TileLayerInfo#bNoDataValid.; |
| 55 | double dfNoDataValuecxx . . $ PCIDSK/BlockTileDir#TileLayerInfo#dfNoDataValue.; |
| 56 | }; |
| 57 | |
| 58 | #pragma pack(pop) |
| 59 | |
| 60 | /// The block layer info list type. |
| 61 | typedef stdcxx . . $ std/::vectorcxx . . $ std/vector#<BlockLayerInfocxx . . $ PCIDSK/BlockTileDir#BlockLayerInfo# *> BlockLayerInfoListcxx . . $ PCIDSK/BlockTileDir#BlockLayerInfoList#; |
| 62 | |
| 63 | /// The tile layer info list type. |
| 64 | typedef stdcxx . . $ std/::vectorcxx . . $ std/vector#<TileLayerInfocxx . . $ PCIDSK/BlockTileDir#TileLayerInfo# *> TileLayerInfoListcxx . . $ PCIDSK/BlockTileDir#TileLayerInfoList#; |
| 65 | |
| 66 | protected: |
| 67 | /// The block layer info list. |
| 68 | BlockLayerInfoListcxx . . $ PCIDSK/BlockTileDir#BlockLayerInfoList# moLayerInfoListcxx . . $ PCIDSK/BlockTileDir#moLayerInfoList.; |
| 69 | |
| 70 | /// The tile layer info list. |
| 71 | TileLayerInfoListcxx . . $ PCIDSK/BlockTileDir#TileLayerInfoList# moTileLayerInfoListcxx . . $ PCIDSK/BlockTileDir#moTileLayerInfoList.; |
| 72 | |
| 73 | /// The free block layer info. |
| 74 | BlockLayerInfocxx . . $ PCIDSK/BlockTileDir#BlockLayerInfo# msFreeBlockLayercxx . . $ PCIDSK/BlockTileDir#msFreeBlockLayer.{}; |
| 75 | |
| 76 | uint32cxx . . $ PCIDSK/uint32# GetNewBlockCountcxx . . $ PCIDSK/BlockTileDir#GetNewBlockCount(ddd8539a2fcdd4ce).(void) const override; |
| 77 | |
| 78 | void SwapBlockLayercxx . . $ PCIDSK/BlockTileDir#SwapBlockLayer(4dabd27ab1fbeee).(BlockLayerInfocxx . . $ PCIDSK/BlockTileDir#BlockLayerInfo# * psBlockLayer); |
| 79 | void SwapTileLayercxx . . $ PCIDSK/BlockTileDir#SwapTileLayer(1a493b6fc7039b4d).(TileLayerInfocxx . . $ PCIDSK/BlockTileDir#TileLayerInfo# * psTileLayer); |
| 80 | void SwapBlockcxx . . $ PCIDSK/BlockTileDir#SwapBlock(4ad29e868807ca5e).(BlockInfocxx . . $ PCIDSK/BlockInfo# * psBlock, size_t nCount); |
| 81 | |
| 82 | public: |
| 83 | BlockTileDircxx . . $ PCIDSK/BlockTileDir#BlockTileDir(25ebdf7480363f4e).(BlockFilecxx . . $ PCIDSK/BlockFile# * poFile, uint16cxx . . $ PCIDSK/uint16# nSegment); |
| 84 | BlockTileDircxx . . $ PCIDSK/BlockTileDir#BlockTileDir(fc7e95d59d6c5360).(BlockFilecxx . . $ PCIDSK/BlockFile# * poFile, uint16cxx . . $ PCIDSK/uint16# nSegment, uint16cxx . . $ PCIDSK/uint16# nVersion); |
| 85 | |
| 86 | ~cxx . . $ PCIDSK/BlockTileDir#`~BlockTileDir`(ced63f7c635d850d).BlockTileDircxx . . $ PCIDSK/BlockTileDir#() override; |
| 87 | |
| 88 | BlockTileLayercxx . . $ PCIDSK/BlockTileLayer# * GetTileLayercxx . . $ PCIDSK/BlockTileDir#GetTileLayer(8c561f423beb2472).(uint32cxx . . $ PCIDSK/uint32# iLayer); |
| 89 | }; |
| 90 | |
| 91 | } // namespace PCIDSK |
| 92 | |
| 93 | #endif |