LCOV - code coverage report
Current view: top level - frmts/rcm - rcmdrivercore.h (source / functions) Hit Total Coverage
Test: gdal_filtered.info Lines: 6 6 100.0 %
Date: 2024-11-21 22:18:42 Functions: 1 1 100.0 %

          Line data    Source code
       1             : /******************************************************************************
       2             :  *
       3             :  * Project:  DRDC Ottawa GEOINT
       4             :  * Purpose:  Radarsat Constellation Mission - XML Products (product.xml) driver
       5             :  * Author:   Roberto Caron, MDA
       6             :  *           on behalf of DRDC Ottawa
       7             :  *
       8             :  ******************************************************************************
       9             :  * Copyright (c) 2020, DRDC Ottawa
      10             :  *
      11             :  * Based on the RS2 Dataset Class
      12             :  *
      13             :  * SPDX-License-Identifier: MIT
      14             :  ****************************************************************************/
      15             : 
      16             : #ifndef RCMDRIVERCORE_H
      17             : #define RCMDRIVERCORE_H
      18             : 
      19             : #include "gdal_priv.h"
      20             : 
      21             : // Should be size of larged possible filename.
      22             : constexpr int CPL_PATH_BUF_SIZE = 2048;
      23             : constexpr char szLayerCalibration[] = "RCM_CALIB";
      24             : constexpr char chLayerSeparator = ':';
      25             : constexpr char szSIGMA0[] = "SIGMA0";
      26             : constexpr char szGAMMA[] = "GAMMA";
      27             : constexpr char szBETA0[] = "BETA0";
      28             : constexpr char szUNCALIB[] = "UNCALIB";
      29             : 
      30             : constexpr const char *RCM_DRIVER_NAME = "RCM";
      31             : 
      32             : /*** Function to concat 'metadata' with a folder separator with the filename
      33             :  * 'product.xml'  ***/
      34             : /*
      35             :  *  Should return either 'metadata\product.xml' or 'metadata/product.xml'
      36             :  */
      37          98 : inline CPLString GetMetadataProduct()
      38             : {
      39             :     // Always begin by the layer calibration name
      40          98 :     CPLString ptr;
      41          98 :     ptr.append("metadata");
      42          98 :     ptr.append("/");
      43          98 :     ptr.append("product.xml");
      44             : 
      45             :     /* return metadata product filename */
      46          98 :     return ptr;
      47             : }
      48             : 
      49             : int CPL_DLL RCMDatasetIdentify(GDALOpenInfo *poOpenInfo);
      50             : 
      51             : void CPL_DLL RCMDriverSetCommonMetadata(GDALDriver *poDriver);
      52             : 
      53             : #endif

Generated by: LCOV version 1.14