Advertisement
Guest User

frmts/raw virtual to override

a guest
Dec 14th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 38.70 KB | None | 0 0
  1. Index: ace2dataset.cpp
  2. ===================================================================
  3. --- ace2dataset.cpp (revision 41033)
  4. +++ ace2dataset.cpp (working copy)
  5. @@ -98,11 +98,11 @@
  6.      double       adfGeoTransform[6];
  7.  
  8.    public:
  9. -                ACE2Dataset();
  10. -    virtual ~ACE2Dataset() {}
  11. +    ACE2Dataset();
  12. +    ~ACE2Dataset() override {}
  13.  
  14. -    virtual const char *GetProjectionRef(void) override;
  15. -    virtual CPLErr GetGeoTransform( double * ) override;
  16. +    const char *GetProjectionRef(void) override;
  17. +    CPLErr GetGeoTransform( double * ) override;
  18.  
  19.      static GDALDataset *Open( GDALOpenInfo * );
  20.      static int Identify( GDALOpenInfo * );
  21. @@ -117,13 +117,13 @@
  22.  class ACE2RasterBand : public RawRasterBand
  23.  {
  24.    public:
  25. -            ACE2RasterBand(VSILFILE* fpRaw,
  26. -                           GDALDataType eDataType,
  27. -                           int nXSize, int nYSize);
  28. -    virtual ~ACE2RasterBand() {}
  29. +    ACE2RasterBand( VSILFILE* fpRaw,
  30. +                    GDALDataType eDataType,
  31. +                    int nXSize, int nYSize );
  32. +    ~ACE2RasterBand() override {}
  33.  
  34. -    virtual const char *GetUnitType() override;
  35. -    virtual char **GetCategoryNames() override;
  36. +    const char *GetUnitType() override;
  37. +    char **GetCategoryNames() override;
  38.  };
  39.  
  40.  /************************************************************************/
  41. Index: btdataset.cpp
  42. ===================================================================
  43. --- btdataset.cpp   (revision 41033)
  44. +++ btdataset.cpp   (working copy)
  45. @@ -61,15 +61,15 @@
  46.      float        m_fVscale;
  47.  
  48.    public:
  49. -             BTDataset();
  50. -    virtual ~BTDataset();
  51. +    BTDataset();
  52. +    ~BTDataset() override;
  53.  
  54. -    virtual const char *GetProjectionRef(void) override;
  55. -    virtual CPLErr SetProjection( const char * ) override;
  56. -    virtual CPLErr GetGeoTransform( double * ) override;
  57. -    virtual CPLErr SetGeoTransform( double * ) override;
  58. +    const char *GetProjectionRef(void) override;
  59. +    CPLErr SetProjection( const char * ) override;
  60. +    CPLErr GetGeoTransform( double * ) override;
  61. +    CPLErr SetGeoTransform( double * ) override;
  62.  
  63. -    virtual void   FlushCache() override;
  64. +    void FlushCache() override;
  65.  
  66.      static GDALDataset *Open( GDALOpenInfo * );
  67.      static GDALDataset *Create( const char * pszFilename,
  68. @@ -90,15 +90,15 @@
  69.    public:
  70.                     BTRasterBand( GDALDataset * poDS, VSILFILE * fp,
  71.                                   GDALDataType eType );
  72. -    virtual ~BTRasterBand() {}
  73. +    ~BTRasterBand() override {}
  74.  
  75. -    virtual CPLErr IReadBlock( int, int, void * ) override;
  76. -    virtual CPLErr IWriteBlock( int, int, void * ) override;
  77. +    CPLErr IReadBlock( int, int, void * ) override;
  78. +    CPLErr IWriteBlock( int, int, void * ) override;
  79.  
  80. -    virtual const char* GetUnitType() override;
  81. -    virtual CPLErr SetUnitType(const char*) override;
  82. -    virtual double GetNoDataValue( int* = nullptr ) override;
  83. -    virtual CPLErr SetNoDataValue( double ) override;
  84. +    const char* GetUnitType() override;
  85. +    CPLErr SetUnitType(const char*) override;
  86. +    double GetNoDataValue( int* = nullptr ) override;
  87. +    CPLErr SetNoDataValue( double ) override;
  88.  };
  89.  
  90.  /************************************************************************/
  91. @@ -266,7 +266,7 @@
  92.  
  93.      return -32768;
  94.  }
  95. -
  96. +
  97.  CPLErr BTRasterBand::SetNoDataValue( double dfNoDataValue )
  98.  
  99.  {
  100. Index: cpgdataset.cpp
  101. ===================================================================
  102. --- cpgdataset.cpp  (revision 41033)
  103. +++ cpgdataset.cpp  (working copy)
  104. @@ -79,17 +79,17 @@
  105.    CPLErr LoadStokesLine( int iLine, int bNativeOrder );
  106.  
  107.    public:
  108. -                CPGDataset();
  109. -    virtual ~CPGDataset();
  110. +    CPGDataset();
  111. +    ~CPGDataset() override;
  112.  
  113. -    virtual int    GetGCPCount() override;
  114. -    virtual const char *GetGCPProjection() override;
  115. -    virtual const GDAL_GCP *GetGCPs() override;
  116. +    int GetGCPCount() override;
  117. +    const char *GetGCPProjection() override;
  118. +    const GDAL_GCP *GetGCPs() override;
  119.  
  120. -    virtual const char *GetProjectionRef(void) override;
  121. -    virtual CPLErr GetGeoTransform( double * ) override;
  122. +    const char *GetProjectionRef() override;
  123. +    CPLErr GetGeoTransform( double * ) override;
  124.  
  125. -    virtual char **GetFileList() override;
  126. +    char **GetFileList() override;
  127.  
  128.      static GDALDataset *Open( GDALOpenInfo * );
  129.  };
  130. @@ -168,10 +168,10 @@
  131.      friend class CPGDataset;
  132.  
  133.    public:
  134. -                   SIRC_QSLCRasterBand( CPGDataset *, int, GDALDataType );
  135. -    virtual ~SIRC_QSLCRasterBand() {}
  136. +    SIRC_QSLCRasterBand( CPGDataset *, int, GDALDataType );
  137. +    ~SIRC_QSLCRasterBand() override {}
  138.  
  139. -    virtual CPLErr IReadBlock( int, int, void * ) override;
  140. +    CPLErr IReadBlock( int, int, void * ) override;
  141.  };
  142.  
  143.  static const int M11 = 0;
  144. @@ -204,12 +204,12 @@
  145.      int bNativeOrder;
  146.  
  147.    public:
  148. -                   CPG_STOKESRasterBand( GDALDataset *poDS,
  149. -                                         GDALDataType eType,
  150. -                                         int bNativeOrder );
  151. -    virtual ~CPG_STOKESRasterBand() {}
  152. +    CPG_STOKESRasterBand( GDALDataset *poDS,
  153. +                          GDALDataType eType,
  154. +                          int bNativeOrder );
  155. +    ~CPG_STOKESRasterBand() override {}
  156.  
  157. -    virtual CPLErr IReadBlock( int, int, void * ) override;
  158. +    CPLErr IReadBlock( int, int, void * ) override;
  159.  };
  160.  
  161.  /************************************************************************/
  162. Index: ctable2dataset.cpp
  163. ===================================================================
  164. --- ctable2dataset.cpp  (revision 41033)
  165. +++ ctable2dataset.cpp  (working copy)
  166. @@ -48,13 +48,13 @@
  167.      double      adfGeoTransform[6];
  168.  
  169.    public:
  170. -                CTable2Dataset();
  171. -    virtual ~CTable2Dataset();
  172. +    CTable2Dataset();
  173. +    ~CTable2Dataset() override;
  174.  
  175. -    virtual CPLErr SetGeoTransform( double * padfTransform ) override;
  176. -    virtual CPLErr GetGeoTransform( double * padfTransform ) override;
  177. -    virtual const char *GetProjectionRef() override;
  178. -    virtual void   FlushCache(void) override;
  179. +    CPLErr SetGeoTransform( double * padfTransform ) override;
  180. +    CPLErr GetGeoTransform( double * padfTransform ) override;
  181. +    const char *GetProjectionRef() override;
  182. +    void   FlushCache(void) override;
  183.  
  184.      static GDALDataset *Open( GDALOpenInfo * );
  185.      static int          Identify( GDALOpenInfo * );
  186. Index: dipxdataset.cpp
  187. ===================================================================
  188. --- dipxdataset.cpp (revision 41033)
  189. +++ dipxdataset.cpp (working copy)
  190. @@ -85,12 +85,12 @@
  191.      double      adfGeoTransform[6];
  192.  
  193.    public:
  194. -                 DIPExDataset();
  195. -    virtual ~DIPExDataset();
  196. +    DIPExDataset();
  197. +    ~DIPExDataset() override;
  198.  
  199. -    virtual CPLErr GetGeoTransform( double * ) override;
  200. +    CPLErr GetGeoTransform( double * ) override;
  201.  
  202. -    virtual const char *GetProjectionRef( void ) override;
  203. +    const char *GetProjectionRef( void ) override;
  204.      static GDALDataset *Open( GDALOpenInfo * );
  205.  };
  206.  
  207. Index: ehdrdataset.h
  208. ===================================================================
  209. --- ehdrdataset.h   (revision 41033)
  210. +++ ehdrdataset.h   (working copy)
  211. @@ -93,14 +93,14 @@
  212.  
  213.    public:
  214.      EHdrDataset();
  215. -    virtual ~EHdrDataset();
  216. +    ~EHdrDataset() override;
  217.  
  218. -    virtual CPLErr GetGeoTransform( double *padfTransform ) override;
  219. -    virtual CPLErr SetGeoTransform( double *padfTransform ) override;
  220. -    virtual const char *GetProjectionRef(void) override;
  221. -    virtual CPLErr SetProjection( const char * ) override;
  222. +    CPLErr GetGeoTransform( double *padfTransform ) override;
  223. +    CPLErr SetGeoTransform( double *padfTransform ) override;
  224. +    const char *GetProjectionRef() override;
  225. +    CPLErr SetProjection( const char * ) override;
  226.  
  227. -    virtual char **GetFileList() override;
  228. +    char **GetFileList() override;
  229.  
  230.      static GDALDataset *Open( GDALOpenInfo * );
  231.      static GDALDataset *Create( const char *pszFilename,
  232. @@ -138,11 +138,11 @@
  233.  
  234.      int            minmaxmeanstddev;
  235.  
  236. -    virtual CPLErr IRasterIO( GDALRWFlag, int, int, int, int,
  237. -                              void *, int, int, GDALDataType,
  238. -                              GSpacing nPixelSpace,
  239. -                              GSpacing nLineSpace,
  240. -                              GDALRasterIOExtraArg *psExtraArg ) override;
  241. +    CPLErr IRasterIO( GDALRWFlag, int, int, int, int,
  242. +                      void *, int, int, GDALDataType,
  243. +                      GSpacing nPixelSpace,
  244. +                      GSpacing nLineSpace,
  245. +                      GDALRasterIOExtraArg *psExtraArg ) override;
  246.  
  247.    public:
  248.      EHdrRasterBand( GDALDataset *poDS, int nBand, VSILFILE *fpRaw,
  249. @@ -150,20 +150,20 @@
  250.                      int nLineOffset,
  251.                      GDALDataType eDataType, int bNativeOrder,
  252.                      int nBits);
  253. -    virtual ~EHdrRasterBand() {}
  254. +    ~EHdrRasterBand() override {}
  255.  
  256. -    virtual CPLErr IReadBlock( int, int, void * ) override;
  257. -    virtual CPLErr IWriteBlock( int, int, void * ) override;
  258. +    CPLErr IReadBlock( int, int, void * ) override;
  259. +    CPLErr IWriteBlock( int, int, void * ) override;
  260.  
  261. -    virtual double GetNoDataValue( int *pbSuccess = nullptr ) override;
  262. -    virtual double GetMinimum( int *pbSuccess = nullptr ) override;
  263. -    virtual double GetMaximum(int *pbSuccess = nullptr ) override;
  264. -    virtual CPLErr GetStatistics( int bApproxOK, int bForce,
  265. -                                  double *pdfMin, double *pdfMax,
  266. -                                  double *pdfMean, double *pdfStdDev ) override;
  267. -    virtual CPLErr SetStatistics( double dfMin, double dfMax,
  268. -                                  double dfMean, double dfStdDev ) override;
  269. -    virtual CPLErr SetColorTable( GDALColorTable *poNewCT ) override;
  270. +    double GetNoDataValue( int *pbSuccess = nullptr ) override;
  271. +    double GetMinimum( int *pbSuccess = nullptr ) override;
  272. +    double GetMaximum(int *pbSuccess = nullptr ) override;
  273. +    CPLErr GetStatistics( int bApproxOK, int bForce,
  274. +                          double *pdfMin, double *pdfMax,
  275. +                          double *pdfMean, double *pdfStdDev ) override;
  276. +    CPLErr SetStatistics( double dfMin, double dfMax,
  277. +                          double dfMean, double dfStdDev ) override;
  278. +    CPLErr SetColorTable( GDALColorTable *poNewCT ) override;
  279.  };
  280.  
  281.  #endif  // GDAL_FRMTS_RAW_EHDRDATASET_H_INCLUDED
  282. Index: eirdataset.cpp
  283. ===================================================================
  284. --- eirdataset.cpp  (revision 41033)
  285. +++ eirdataset.cpp  (working copy)
  286. @@ -56,11 +56,11 @@
  287.  
  288.    public:
  289.      EIRDataset();
  290. -    virtual ~EIRDataset();
  291. +    ~EIRDataset() override;
  292.  
  293. -    virtual CPLErr GetGeoTransform( double * padfTransform ) override;
  294. +    CPLErr GetGeoTransform( double * padfTransform ) override;
  295.  
  296. -    virtual char **GetFileList() override;
  297. +    char **GetFileList() override;
  298.  
  299.      static int          Identify( GDALOpenInfo * );
  300.      static GDALDataset *Open( GDALOpenInfo * );
  301. Index: fastdataset.cpp
  302. ===================================================================
  303. --- fastdataset.cpp (revision 41033)
  304. +++ fastdataset.cpp (working copy)
  305. @@ -118,8 +118,8 @@
  306.      int         OpenChannel( const char *pszFilename, int iBand );
  307.  
  308.    public:
  309. -                FASTDataset();
  310. -    virtual ~FASTDataset();
  311. +    FASTDataset();
  312. +    ~FASTDataset() override;
  313.  
  314.      static GDALDataset *Open( GDALOpenInfo * );
  315.  
  316. @@ -128,7 +128,7 @@
  317.      VSILFILE    *FOpenChannel( const char *, int iBand, int iFASTBand );
  318.      void        TryEuromap_IRS_1C_1D_ChannelNameConvention();
  319.  
  320. -    virtual  char** GetFileList() override;
  321. +    char** GetFileList() override;
  322.  };
  323.  
  324.  /************************************************************************/
  325. Index: fujibasdataset.cpp
  326. ===================================================================
  327. --- fujibasdataset.cpp  (revision 41033)
  328. +++ fujibasdataset.cpp  (working copy)
  329. @@ -50,7 +50,7 @@
  330.                  FujiBASDataset();
  331.                  ~FujiBASDataset();
  332.  
  333. -    virtual char **GetFileList() override;
  334. +    char **GetFileList() override;
  335.  
  336.      static GDALDataset *Open( GDALOpenInfo * );
  337.  };
  338. Index: genbindataset.cpp
  339. ===================================================================
  340. --- genbindataset.cpp   (revision 41033)
  341. +++ genbindataset.cpp   (working copy)
  342. @@ -205,12 +205,12 @@
  343.  
  344.    public:
  345.      GenBinDataset();
  346. -    virtual ~GenBinDataset();
  347. +    ~GenBinDataset() override;
  348.  
  349. -    virtual CPLErr GetGeoTransform( double * padfTransform ) override;
  350. -    virtual const char *GetProjectionRef(void) override;
  351. +    CPLErr GetGeoTransform( double * padfTransform ) override;
  352. +    const char *GetProjectionRef(void) override;
  353.  
  354. -    virtual char **GetFileList() override;
  355. +    char **GetFileList() override;
  356.  
  357.      static GDALDataset *Open( GDALOpenInfo * );
  358.  };
  359. @@ -227,9 +227,9 @@
  360.  
  361.    public:
  362.      GenBinBitRasterBand( GenBinDataset *poDS, int nBits );
  363. -    virtual ~GenBinBitRasterBand() {}
  364. +    ~GenBinBitRasterBand() override {}
  365.  
  366. -    virtual CPLErr IReadBlock( int, int, void * ) override;
  367. +    CPLErr IReadBlock( int, int, void * ) override;
  368.  };
  369.  
  370.  /************************************************************************/
  371. Index: gtxdataset.cpp
  372. ===================================================================
  373. --- gtxdataset.cpp  (revision 41033)
  374. +++ gtxdataset.cpp  (working copy)
  375. @@ -73,19 +73,19 @@
  376.      double      adfGeoTransform[6];
  377.  
  378.    public:
  379. -                GTXDataset() : fpImage(nullptr) {
  380. -                      adfGeoTransform[0] = 0.0;
  381. -                      adfGeoTransform[1] = 1.0;
  382. -                      adfGeoTransform[2] = 0.0;
  383. -                      adfGeoTransform[3] = 0.0;
  384. -                      adfGeoTransform[4] = 0.0;
  385. -                      adfGeoTransform[5] = 1.0;
  386. -                }
  387. -    virtual ~GTXDataset();
  388. +    GTXDataset() : fpImage(nullptr) {
  389. +        adfGeoTransform[0] = 0.0;
  390. +        adfGeoTransform[1] = 1.0;
  391. +        adfGeoTransform[2] = 0.0;
  392. +        adfGeoTransform[3] = 0.0;
  393. +        adfGeoTransform[4] = 0.0;
  394. +        adfGeoTransform[5] = 1.0;
  395. +    }
  396. +    ~GTXDataset() override;
  397.  
  398. -    virtual CPLErr GetGeoTransform( double * padfTransform ) override;
  399. -    virtual CPLErr SetGeoTransform( double * padfTransform ) override;
  400. -    virtual const char *GetProjectionRef() override;
  401. +    CPLErr GetGeoTransform( double * padfTransform ) override;
  402. +    CPLErr SetGeoTransform( double * padfTransform ) override;
  403. +    const char *GetProjectionRef() override;
  404.  
  405.      static GDALDataset *Open( GDALOpenInfo * );
  406.      static int          Identify( GDALOpenInfo * );
  407. @@ -103,15 +103,14 @@
  408.  class GTXRasterBand : public RawRasterBand
  409.  {
  410.    public:
  411. +    GTXRasterBand( GDALDataset *poDS, int nBand, VSILFILE * fpRaw,
  412. +                   vsi_l_offset nImgOffset, int nPixelOffset,
  413. +                   int nLineOffset,
  414. +                   GDALDataType eDataType, int bNativeOrder );
  415.  
  416. -                 GTXRasterBand( GDALDataset *poDS, int nBand, VSILFILE * fpRaw,
  417. -                                 vsi_l_offset nImgOffset, int nPixelOffset,
  418. -                                 int nLineOffset,
  419. -                                 GDALDataType eDataType, int bNativeOrder );
  420. +    ~GTXRasterBand() override;
  421.  
  422. -    virtual ~GTXRasterBand();
  423. -
  424. -    virtual double GetNoDataValue( int *pbSuccess = nullptr ) override;
  425. +    double GetNoDataValue( int *pbSuccess = nullptr ) override;
  426.  };
  427.  
  428.  
  429. Index: hkvdataset.cpp
  430. ===================================================================
  431. --- hkvdataset.cpp  (revision 41033)
  432. +++ hkvdataset.cpp  (working copy)
  433. @@ -54,13 +54,13 @@
  434.      friend class HKVDataset;
  435.  
  436.    public:
  437. -                HKVRasterBand( HKVDataset *poDS, int nBand, VSILFILE * fpRaw,
  438. -                               unsigned int nImgOffset, int nPixelOffset,
  439. -                               int nLineOffset,
  440. -                               GDALDataType eDataType, int bNativeOrder );
  441. -    virtual     ~HKVRasterBand() {}
  442. +    HKVRasterBand( HKVDataset *poDS, int nBand, VSILFILE * fpRaw,
  443. +                   unsigned int nImgOffset, int nPixelOffset,
  444. +                   int nLineOffset,
  445. +                   GDALDataType eDataType, int bNativeOrder );
  446. +    ~HKVRasterBand() override {}
  447.  
  448. -    virtual CPLErr SetNoDataValue( double ) override;
  449. +    CPLErr SetNoDataValue( double ) override;
  450.  };
  451.  
  452.  /************************************************************************/
  453. @@ -196,18 +196,18 @@
  454.      double      dfNoDataValue;
  455.  
  456.    public:
  457. -                HKVDataset();
  458. -    virtual     ~HKVDataset();
  459. +    HKVDataset();
  460. +    ~HKVDataset() override;
  461.  
  462. -    virtual int GetGCPCount() override /* const */ { return nGCPCount; }
  463. -    virtual const char *GetGCPProjection() override;
  464. -    virtual const GDAL_GCP *GetGCPs() override;
  465. +    int GetGCPCount() override /* const */ { return nGCPCount; }
  466. +    const char *GetGCPProjection() override;
  467. +    const GDAL_GCP *GetGCPs() override;
  468.  
  469. -    virtual const char *GetProjectionRef(void) override;
  470. -    virtual CPLErr GetGeoTransform( double * ) override;
  471. +    const char *GetProjectionRef(void) override;
  472. +    CPLErr GetGeoTransform( double * ) override;
  473.  
  474. -    virtual CPLErr SetGeoTransform( double * ) override;
  475. -    virtual CPLErr SetProjection( const char * ) override;
  476. +    CPLErr SetGeoTransform( double * ) override;
  477. +    CPLErr SetProjection( const char * ) override;
  478.  
  479.      static GDALDataset *Open( GDALOpenInfo * );
  480.      static GDALDataset *Create( const char * pszFilename,
  481. Index: idadataset.cpp
  482. ===================================================================
  483. --- idadataset.cpp  (revision 41033)
  484. +++ idadataset.cpp  (working copy)
  485. @@ -146,15 +146,15 @@
  486.      void        ReadColorTable();
  487.  
  488.    public:
  489. -                IDADataset();
  490. -    virtual ~IDADataset();
  491. +    IDADataset();
  492. +    ~IDADataset() override;
  493.  
  494. -    virtual void FlushCache() override;
  495. -    virtual const char *GetProjectionRef(void) override;
  496. -    virtual CPLErr SetProjection( const char * ) override;
  497. +    void FlushCache() override;
  498. +    const char *GetProjectionRef(void) override;
  499. +    CPLErr SetProjection( const char * ) override;
  500.  
  501. -    virtual CPLErr GetGeoTransform( double * ) override;
  502. -    virtual CPLErr SetGeoTransform( double * ) override;
  503. +    CPLErr GetGeoTransform( double * ) override;
  504. +    CPLErr SetGeoTransform( double * ) override;
  505.  
  506.      static GDALDataset *Open( GDALOpenInfo * );
  507.      static GDALDataset *Create( const char * pszFilename,
  508. @@ -177,17 +177,17 @@
  509.      GDALColorTable       *poColorTable;
  510.  
  511.    public:
  512. -                 IDARasterBand( IDADataset *poDSIn, VSILFILE *fpRaw, int nXSize );
  513. -    virtual     ~IDARasterBand();
  514. +    IDARasterBand( IDADataset *poDSIn, VSILFILE *fpRaw, int nXSize );
  515. +    ~IDARasterBand() override;
  516.  
  517. -    virtual GDALRasterAttributeTable *GetDefaultRAT() override;
  518. -    virtual GDALColorInterp GetColorInterpretation() override;
  519. -    virtual GDALColorTable *GetColorTable() override;
  520. -    virtual double GetOffset( int *pbSuccess = nullptr ) override;
  521. -    virtual CPLErr SetOffset( double dfNewValue ) override;
  522. -    virtual double GetScale( int *pbSuccess = nullptr ) override;
  523. -    virtual CPLErr SetScale( double dfNewValue ) override;
  524. -    virtual double GetNoDataValue( int *pbSuccess = nullptr ) override;
  525. +    GDALRasterAttributeTable *GetDefaultRAT() override;
  526. +    GDALColorInterp GetColorInterpretation() override;
  527. +    GDALColorTable *GetColorTable() override;
  528. +    double GetOffset( int *pbSuccess = nullptr ) override;
  529. +    CPLErr SetOffset( double dfNewValue ) override;
  530. +    double GetScale( int *pbSuccess = nullptr ) override;
  531. +    CPLErr SetScale( double dfNewValue ) override;
  532. +    double GetNoDataValue( int *pbSuccess = nullptr ) override;
  533.  };
  534.  
  535.  /************************************************************************/
  536. Index: iscedataset.cpp
  537. ===================================================================
  538. --- iscedataset.cpp (revision 41033)
  539. +++ iscedataset.cpp (working copy)
  540. @@ -85,11 +85,11 @@
  541.      enum Scheme eScheme;
  542.  
  543.    public:
  544. -                ISCEDataset();
  545. -    virtual ~ISCEDataset();
  546. +    ISCEDataset();
  547. +    ~ISCEDataset() override;
  548.  
  549. -    virtual void        FlushCache() override;
  550. -    virtual char      **GetFileList() override;
  551. +    void FlushCache() override;
  552. +    char **GetFileList() override;
  553.  
  554.      static int          Identify( GDALOpenInfo *poOpenInfo );
  555.      static GDALDataset *Open( GDALOpenInfo *poOpenInfo );
  556. Index: landataset.cpp
  557. ===================================================================
  558. --- landataset.cpp  (revision 41033)
  559. +++ landataset.cpp  (working copy)
  560. @@ -114,14 +114,14 @@
  561.  
  562.    public:
  563.                     LAN4BitRasterBand( LANDataset *, int );
  564. -    virtual ~LAN4BitRasterBand();
  565. +    ~LAN4BitRasterBand() override;
  566.  
  567. -    virtual GDALColorTable *GetColorTable() override;
  568. -    virtual GDALColorInterp GetColorInterpretation() override;
  569. -    virtual CPLErr SetColorTable( GDALColorTable * ) override;
  570. -    virtual CPLErr SetColorInterpretation( GDALColorInterp ) override;
  571. +    GDALColorTable *GetColorTable() override;
  572. +    GDALColorInterp GetColorInterpretation() override;
  573. +    CPLErr SetColorTable( GDALColorTable * ) override;
  574. +    CPLErr SetColorInterpretation( GDALColorInterp ) override;
  575.  
  576. -    virtual CPLErr IReadBlock( int, int, void * ) override;
  577. +    CPLErr IReadBlock( int, int, void * ) override;
  578.  };
  579.  
  580.  /************************************************************************/
  581. @@ -144,16 +144,16 @@
  582.      CPLString   osSTAFilename;
  583.      void        CheckForStatistics(void);
  584.  
  585. -    virtual char **GetFileList() override;
  586. +    char **GetFileList() override;
  587.  
  588.    public:
  589.                  LANDataset();
  590. -    virtual ~LANDataset();
  591. +    ~LANDataset() override;
  592.  
  593. -    virtual CPLErr GetGeoTransform( double * padfTransform ) override;
  594. -    virtual CPLErr SetGeoTransform( double * padfTransform ) override;
  595. -    virtual const char *GetProjectionRef() override;
  596. -    virtual CPLErr SetProjection( const char * ) override;
  597. +    CPLErr GetGeoTransform( double * padfTransform ) override;
  598. +    CPLErr SetGeoTransform( double * padfTransform ) override;
  599. +    const char *GetProjectionRef() override;
  600. +    CPLErr SetProjection( const char * ) override;
  601.  
  602.      static GDALDataset *Open( GDALOpenInfo * );
  603.      static GDALDataset *Create( const char * pszFilename,
  604. Index: lcpdataset.cpp
  605. ===================================================================
  606. --- lcpdataset.cpp  (revision 41033)
  607. +++ lcpdataset.cpp  (working copy)
  608. @@ -61,12 +61,12 @@
  609.                                      GInt32 *panClasses );
  610.  
  611.    public:
  612. -                LCPDataset();
  613. -    virtual ~LCPDataset();
  614. +    LCPDataset();
  615. +    ~LCPDataset() override;
  616.  
  617. -    virtual char **GetFileList(void) override;
  618. +    char **GetFileList(void) override;
  619.  
  620. -    virtual CPLErr GetGeoTransform( double * ) override;
  621. +    CPLErr GetGeoTransform( double * ) override;
  622.  
  623.      static int          Identify( GDALOpenInfo * );
  624.      static GDALDataset *Open( GDALOpenInfo * );
  625. @@ -75,7 +75,7 @@
  626.                                      int bStrict, char ** papszOptions,
  627.                                      GDALProgressFunc pfnProgress,
  628.                                      void * pProgressData );
  629. -    virtual const char *GetProjectionRef(void) override;
  630. +    const char *GetProjectionRef(void) override;
  631.  
  632.      int bHaveProjection;
  633.  };
  634. Index: loslasdataset.cpp
  635. ===================================================================
  636. --- loslasdataset.cpp   (revision 41033)
  637. +++ loslasdataset.cpp   (working copy)
  638. @@ -81,11 +81,11 @@
  639.      double      adfGeoTransform[6];
  640.  
  641.    public:
  642. -                LOSLASDataset();
  643. -    virtual ~LOSLASDataset();
  644. +    LOSLASDataset();
  645. +    ~LOSLASDataset() override;
  646.  
  647. -    virtual CPLErr GetGeoTransform( double * padfTransform ) override;
  648. -    virtual const char *GetProjectionRef() override;
  649. +    CPLErr GetGeoTransform( double * padfTransform ) override;
  650. +    const char *GetProjectionRef() override;
  651.  
  652.      static GDALDataset *Open( GDALOpenInfo * );
  653.      static int          Identify( GDALOpenInfo * );
  654. Index: mffdataset.cpp
  655. ===================================================================
  656. --- mffdataset.cpp  (revision 41033)
  657. +++ mffdataset.cpp  (working copy)
  658. @@ -68,21 +68,21 @@
  659.      void        ScanForProjectionInfo();
  660.  
  661.    public:
  662. -                MFFDataset();
  663. -    virtual ~MFFDataset();
  664. +    MFFDataset();
  665. +    ~MFFDataset() override;
  666.  
  667.      char        **papszHdrLines;
  668.  
  669.      VSILFILE        **pafpBandFiles;
  670.  
  671. -    virtual char** GetFileList() override;
  672. +    char** GetFileList() override;
  673.  
  674. -    virtual int    GetGCPCount() override;
  675. -    virtual const char *GetGCPProjection() override;
  676. -    virtual const GDAL_GCP *GetGCPs() override;
  677. +    int GetGCPCount() override;
  678. +    const char *GetGCPProjection() override;
  679. +    const GDAL_GCP *GetGCPs() override;
  680.  
  681. -    virtual const char *GetProjectionRef() override;
  682. -    virtual CPLErr GetGeoTransform( double * ) override;
  683. +    const char *GetProjectionRef() override;
  684. +    CPLErr GetGeoTransform( double * ) override;
  685.  
  686.      static GDALDataset *Open( GDALOpenInfo * );
  687.      static GDALDataset *Create( const char * pszFilename,
  688. @@ -109,12 +109,11 @@
  689.      bool           bNative;
  690.  
  691.    public:
  692. +    MFFTiledBand( MFFDataset *, int, VSILFILE *, int, int,
  693. +                  GDALDataType, int );
  694. +    ~MFFTiledBand() override;
  695.  
  696. -                   MFFTiledBand( MFFDataset *, int, VSILFILE *, int, int,
  697. -                                 GDALDataType, int );
  698. -    virtual ~MFFTiledBand();
  699. -
  700. -    virtual CPLErr IReadBlock( int, int, void * ) override;
  701. +    CPLErr IReadBlock( int, int, void * ) override;
  702.  };
  703.  
  704.  /************************************************************************/
  705. Index: ndfdataset.cpp
  706. ===================================================================
  707. --- ndfdataset.cpp  (revision 41033)
  708. +++ ndfdataset.cpp  (working copy)
  709. @@ -51,12 +51,12 @@
  710.      const char  *Get( const char *pszKey, const char *pszDefault);
  711.  
  712.    public:
  713. -                NDFDataset();
  714. -    virtual ~NDFDataset();
  715. +    NDFDataset();
  716. +    ~NDFDataset() override;
  717.  
  718. -    virtual CPLErr  GetGeoTransform( double * padfTransform ) override;
  719. -    virtual const char *GetProjectionRef(void) override;
  720. -    virtual char **GetFileList(void) override;
  721. +    CPLErr  GetGeoTransform( double * padfTransform ) override;
  722. +    const char *GetProjectionRef(void) override;
  723. +    char **GetFileList(void) override;
  724.  
  725.      static GDALDataset *Open( GDALOpenInfo * );
  726.  };
  727. Index: ntv2dataset.cpp
  728. ===================================================================
  729. --- ntv2dataset.cpp (revision 41033)
  730. +++ ntv2dataset.cpp (working copy)
  731. @@ -102,13 +102,13 @@
  732.      int         OpenGrid( char *pachGridHeader, vsi_l_offset nDataStart );
  733.  
  734.    public:
  735. -                NTv2Dataset();
  736. -    virtual ~NTv2Dataset();
  737. +    NTv2Dataset();
  738. +    ~NTv2Dataset() override;
  739.  
  740. -    virtual CPLErr SetGeoTransform( double * padfTransform ) override;
  741. -    virtual CPLErr GetGeoTransform( double * padfTransform ) override;
  742. -    virtual const char *GetProjectionRef() override;
  743. -    virtual void   FlushCache(void) override;
  744. +    CPLErr SetGeoTransform( double * padfTransform ) override;
  745. +    CPLErr GetGeoTransform( double * padfTransform ) override;
  746. +    const char *GetProjectionRef() override;
  747. +    void FlushCache(void) override;
  748.  
  749.      static GDALDataset *Open( GDALOpenInfo * );
  750.      static int          Identify( GDALOpenInfo * );
  751. Index: pauxdataset.cpp
  752. ===================================================================
  753. --- pauxdataset.cpp (revision 41034)
  754. +++ pauxdataset.cpp (working copy)
  755. @@ -68,15 +68,15 @@
  756.      char        **papszAuxLines;
  757.      int         bAuxUpdated;
  758.  
  759. -    virtual const char *GetProjectionRef() override;
  760. -    virtual CPLErr GetGeoTransform( double * ) override;
  761. -    virtual CPLErr SetGeoTransform( double * ) override;
  762. +    const char *GetProjectionRef() override;
  763. +    CPLErr GetGeoTransform( double * ) override;
  764. +    CPLErr SetGeoTransform( double * ) override;
  765.  
  766. -    virtual int    GetGCPCount() override;
  767. -    virtual const char *GetGCPProjection() override;
  768. -    virtual const GDAL_GCP *GetGCPs() override;
  769. +    int    GetGCPCount() override;
  770. +    const char *GetGCPProjection() override;
  771. +    const GDAL_GCP *GetGCPs() override;
  772.  
  773. -    virtual char **GetFileList() override;
  774. +    char **GetFileList() override;
  775.  
  776.      static GDALDataset *Open( GDALOpenInfo * );
  777.      static GDALDataset *Create( const char * pszFilename,
  778. @@ -94,20 +94,20 @@
  779.  {
  780.    public:
  781.  
  782. -                 PAuxRasterBand( GDALDataset *poDS, int nBand, VSILFILE * fpRaw,
  783. -                                 vsi_l_offset nImgOffset, int nPixelOffset,
  784. -                                 int nLineOffset,
  785. -                                 GDALDataType eDataType, int bNativeOrder );
  786. +    PAuxRasterBand( GDALDataset *poDS, int nBand, VSILFILE * fpRaw,
  787. +                    vsi_l_offset nImgOffset, int nPixelOffset,
  788. +                    int nLineOffset,
  789. +                    GDALDataType eDataType, int bNativeOrder );
  790.  
  791. -    virtual ~PAuxRasterBand();
  792. +    ~PAuxRasterBand() override;
  793.  
  794. -    virtual double GetNoDataValue( int *pbSuccess = nullptr ) override;
  795. -    virtual CPLErr SetNoDataValue( double ) override;
  796. +    double GetNoDataValue( int *pbSuccess = nullptr ) override;
  797. +    CPLErr SetNoDataValue( double ) override;
  798.  
  799. -    virtual GDALColorTable *GetColorTable() override;
  800. -    virtual GDALColorInterp GetColorInterpretation() override;
  801. +    GDALColorTable *GetColorTable() override;
  802. +    GDALColorInterp GetColorInterpretation() override;
  803.  
  804. -    virtual void SetDescription( const char *pszNewDescription ) override;
  805. +    void SetDescription( const char *pszNewDescription ) override;
  806.  };
  807.  
  808.  /************************************************************************/
  809. Index: pnmdataset.cpp
  810. ===================================================================
  811. --- pnmdataset.cpp  (revision 41033)
  812. +++ pnmdataset.cpp  (working copy)
  813. @@ -49,9 +49,9 @@
  814.  
  815.    public:
  816.                  PNMDataset();
  817. -    virtual ~PNMDataset();
  818. +    ~PNMDataset() override;
  819.  
  820. -    virtual CPLErr GetGeoTransform( double * ) override;
  821. +    CPLErr GetGeoTransform( double * ) override;
  822.  
  823.      static int          Identify( GDALOpenInfo * );
  824.      static GDALDataset *Open( GDALOpenInfo * );
  825. Index: rawdataset.h
  826. ===================================================================
  827. --- rawdataset.h    (revision 41033)
  828. +++ rawdataset.h    (working copy)
  829. @@ -50,12 +50,12 @@
  830.      friend class RawRasterBand;
  831.  
  832.    protected:
  833. -    virtual CPLErr      IRasterIO( GDALRWFlag, int, int, int, int,
  834. -                                   void *, int, int, GDALDataType,
  835. -                                   int, int *,
  836. -                                   GSpacing nPixelSpace, GSpacing nLineSpace,
  837. -                                   GSpacing nBandSpace,
  838. -                                   GDALRasterIOExtraArg* psExtraArg ) CPL_OVERRIDE;
  839. +    CPLErr IRasterIO( GDALRWFlag, int, int, int, int,
  840. +                      void *, int, int, GDALDataType,
  841. +                      int, int *,
  842. +                      GSpacing nPixelSpace, GSpacing nLineSpace,
  843. +                      GSpacing nBandSpace,
  844. +                      GDALRasterIOExtraArg* psExtraArg ) override;
  845.    public:
  846.                   RawDataset();
  847.           virtual ~RawDataset() = 0;
  848. @@ -111,10 +111,10 @@
  849.      int         IsSignificantNumberOfLinesLoaded( int nLineOff, int nLines );
  850.      void        Initialize();
  851.  
  852. -    virtual CPLErr  IRasterIO( GDALRWFlag, int, int, int, int,
  853. -                              void *, int, int, GDALDataType,
  854. -                              GSpacing nPixelSpace, GSpacing nLineSpace,
  855. -                              GDALRasterIOExtraArg* psExtraArg ) CPL_OVERRIDE;
  856. +    CPLErr IRasterIO( GDALRWFlag, int, int, int, int,
  857. +                      void *, int, int, GDALDataType,
  858. +                      GSpacing nPixelSpace, GSpacing nLineSpace,
  859. +                      GDALRasterIOExtraArg* psExtraArg ) override;
  860.  
  861.      int         CanUseDirectIO(int nXOff, int nYOff, int nXSize, int nYSize,
  862.                                 GDALDataType eBufType);
  863. @@ -135,26 +135,24 @@
  864.  
  865.      virtual ~RawRasterBand() /* = 0 */ ;
  866.  
  867. -    // should CPL_OVERRIDE RasterIO eventually.
  868. +    CPLErr  IReadBlock( int, int, void * ) override;
  869. +    CPLErr  IWriteBlock( int, int, void * ) override;
  870.  
  871. -    virtual CPLErr  IReadBlock( int, int, void * ) CPL_OVERRIDE;
  872. -    virtual CPLErr  IWriteBlock( int, int, void * ) CPL_OVERRIDE;
  873. +    GDALColorTable *GetColorTable() override;
  874. +    GDALColorInterp GetColorInterpretation() override;
  875. +    CPLErr SetColorTable( GDALColorTable * ) override;
  876. +    CPLErr SetColorInterpretation( GDALColorInterp ) override;
  877.  
  878. -    virtual GDALColorTable *GetColorTable() CPL_OVERRIDE;
  879. -    virtual GDALColorInterp GetColorInterpretation() CPL_OVERRIDE;
  880. -    virtual CPLErr SetColorTable( GDALColorTable * ) CPL_OVERRIDE;
  881. -    virtual CPLErr SetColorInterpretation( GDALColorInterp ) CPL_OVERRIDE;
  882. +    char **GetCategoryNames() override;
  883. +    CPLErr SetCategoryNames( char ** ) override;
  884.  
  885. -    virtual char **GetCategoryNames() CPL_OVERRIDE;
  886. -    virtual CPLErr SetCategoryNames( char ** ) CPL_OVERRIDE;
  887. +    CPLErr FlushCache() override;
  888.  
  889. -    virtual CPLErr  FlushCache() CPL_OVERRIDE;
  890. +    CPLVirtualMem *GetVirtualMemAuto( GDALRWFlag eRWFlag,
  891. +                                      int *pnPixelSpace,
  892. +                                      GIntBig *pnLineSpace,
  893. +                                      char **papszOptions ) override;
  894.  
  895. -    virtual CPLVirtualMem  *GetVirtualMemAuto( GDALRWFlag eRWFlag,
  896. -                                               int *pnPixelSpace,
  897. -                                               GIntBig *pnLineSpace,
  898. -                                               char **papszOptions ) CPL_OVERRIDE;
  899. -
  900.      CPLErr          AccessLine( int iLine );
  901.  
  902.      void            SetAccess( GDALAccess eAccess );
  903. Index: roipacdataset.cpp
  904. ===================================================================
  905. --- roipacdataset.cpp   (revision 41033)
  906. +++ roipacdataset.cpp   (working copy)
  907. @@ -54,8 +54,8 @@
  908.      char        *pszProjection;
  909.  
  910.    public:
  911. -                ROIPACDataset( void );
  912. -    virtual ~ROIPACDataset( void );
  913. +    ROIPACDataset();
  914. +    ~ROIPACDataset() override;
  915.  
  916.      static GDALDataset *Open( GDALOpenInfo *poOpenInfo );
  917.      static int          Identify( GDALOpenInfo *poOpenInfo );
  918. @@ -63,12 +63,12 @@
  919.                                  int nXSize, int nYSize, int nBands,
  920.                                  GDALDataType eType, char **papszOptions );
  921.  
  922. -    virtual void        FlushCache( void ) override;
  923. +    void        FlushCache() override;
  924.      CPLErr              GetGeoTransform( double *padfTransform ) override;
  925. -    virtual CPLErr      SetGeoTransform( double *padfTransform ) override;
  926. +    CPLErr      SetGeoTransform( double *padfTransform ) override;
  927.      const char         *GetProjectionRef( void ) override;
  928. -    virtual CPLErr      SetProjection( const char *pszNewProjection ) override;
  929. -    virtual char      **GetFileList( void ) override;
  930. +    CPLErr      SetProjection( const char *pszNewProjection ) override;
  931. +    char      **GetFileList() override;
  932.  };
  933.  
  934.  /************************************************************************/
  935. Index: rrasterdataset.cpp
  936. ===================================================================
  937. --- rrasterdataset.cpp  (revision 41033)
  938. +++ rrasterdataset.cpp  (working copy)
  939. @@ -49,16 +49,16 @@
  940.      CPLString   m_osProjection;
  941.  
  942.    public:
  943. -                RRASTERDataset();
  944. -       virtual ~RRASTERDataset();
  945. +    RRASTERDataset();
  946. +    ~RRASTERDataset() override;
  947.  
  948. -    virtual char **GetFileList(void) override;
  949. +    char **GetFileList() override;
  950.  
  951.      static GDALDataset *Open( GDALOpenInfo * );
  952.      static int          Identify( GDALOpenInfo * );
  953.  
  954. -    virtual CPLErr GetGeoTransform( double * ) override;
  955. -    virtual const char *GetProjectionRef(void) override;
  956. +    CPLErr GetGeoTransform( double * ) override;
  957. +  const char *GetProjectionRef() override;
  958.  };
  959.  
  960.  /************************************************************************/
  961. @@ -80,16 +80,16 @@
  962.                      GDALDataType eDataType, int bNativeOrder );
  963.  
  964.        void SetMinMax( double dfMin, double dfMax );
  965. -      virtual double GetMinimum( int *pbSuccess = nullptr ) override;
  966. -      virtual double GetMaximum(int *pbSuccess = nullptr ) override;
  967. +      double GetMinimum( int *pbSuccess = nullptr ) override;
  968. +      double GetMaximum( int *pbSuccess = nullptr ) override;
  969.  
  970.  #ifdef UPDATE_SUPPORTED
  971.    protected:
  972. -      virtual CPLErr  IWriteBlock( int, int, void * );
  973. -      virtual CPLErr  IRasterIO( GDALRWFlag, int, int, int, int,
  974. -                                void *, int, int, GDALDataType,
  975. -                                GSpacing nPixelSpace, GSpacing nLineSpace,
  976. -                                GDALRasterIOExtraArg* psExtraArg );
  977. +      CPLErr IWriteBlock( int, int, void * ) override;
  978. +      CPLErr IRasterIO( GDALRWFlag, int, int, int, int,
  979. +                        void *, int, int, GDALDataType,
  980. +                        GSpacing nPixelSpace, GSpacing nLineSpace,
  981. +                        GDALRasterIOExtraArg* psExtraArg ) override;
  982.  #endif
  983.  };
  984.  
  985. Index: snodasdataset.cpp
  986. ===================================================================
  987. --- snodasdataset.cpp   (revision 41033)
  988. +++ snodasdataset.cpp   (working copy)
  989. @@ -56,13 +56,13 @@
  990.      friend class SNODASRasterBand;
  991.  
  992.    public:
  993. -                    SNODASDataset();
  994. -    virtual ~SNODASDataset();
  995. +    SNODASDataset();
  996. +    ~SNODASDataset() override;
  997.  
  998. -    virtual CPLErr GetGeoTransform( double * padfTransform ) override;
  999. -    virtual const char *GetProjectionRef(void) override;
  1000. +    CPLErr GetGeoTransform( double * padfTransform ) override;
  1001. +    const char *GetProjectionRef() override;
  1002.  
  1003. -    virtual char **GetFileList() override;
  1004. +    char **GetFileList() override;
  1005.  
  1006.      static GDALDataset *Open( GDALOpenInfo * );
  1007.      static int Identify( GDALOpenInfo * );
  1008. @@ -77,12 +77,12 @@
  1009.  class SNODASRasterBand : public RawRasterBand
  1010.  {
  1011.    public:
  1012. -            SNODASRasterBand( VSILFILE* fpRaw, int nXSize, int nYSize );
  1013. -    virtual ~SNODASRasterBand() {}
  1014. +    SNODASRasterBand( VSILFILE* fpRaw, int nXSize, int nYSize );
  1015. +    ~SNODASRasterBand() override {}
  1016.  
  1017. -    virtual double GetNoDataValue( int *pbSuccess = nullptr ) override;
  1018. -    virtual double GetMinimum( int *pbSuccess = nullptr ) override;
  1019. -    virtual double GetMaximum(int *pbSuccess = nullptr ) override;
  1020. +    double GetNoDataValue( int *pbSuccess = nullptr ) override;
  1021. +    double GetMinimum( int *pbSuccess = nullptr ) override;
  1022. +    double GetMaximum( int *pbSuccess = nullptr ) override;
  1023.  };
  1024.  
  1025.  /************************************************************************/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement