LCOV - code coverage report
Current view: top level - ogr/ogrsf_frmts/cad/libopencad - cadfileio.cpp (source / functions) Hit Total Coverage
Test: gdal_filtered.info Lines: 9 12 75.0 %
Date: 2024-11-21 22:18:42 Functions: 4 6 66.7 %

          Line data    Source code
       1             : /*******************************************************************************
       2             :  *  Project: libopencad
       3             :  *  Purpose: OpenSource CAD formats support library
       4             :  *  Author: Alexandr Borzykh, mush3d at gmail.com
       5             :  *  Author: Dmitry Baryshnikov, bishop.dev@gmail.com
       6             :  *  Language: C++
       7             :  *******************************************************************************
       8             :  *  The MIT License (MIT)
       9             :  *
      10             :  *  Copyright (c) 2016 Alexandr Borzykh
      11             :  *  Copyright (c) 2016 NextGIS, <info@nextgis.com>
      12             :  *
      13             :   * SPDX-License-Identifier: MIT
      14             :  ******************************************************************************/
      15             : #include "cadfileio.h"
      16             : 
      17           9 : CADFileIO::CADFileIO( const char * pszFileName ) :
      18             :     m_soFilePath( pszFileName),
      19           9 :     m_bIsOpened (false)
      20             : {
      21           9 : }
      22             : 
      23           9 : CADFileIO::~CADFileIO()
      24             : {
      25           9 : }
      26             : 
      27          44 : bool CADFileIO::IsOpened() const
      28             : {
      29          44 :     return m_bIsOpened;
      30             : }
      31             : 
      32           0 : bool CADFileIO::Close()
      33             : {
      34           0 :     m_bIsOpened = false;
      35           0 :     return true;
      36             : }
      37             : 
      38          27 : const char * CADFileIO::GetFilePath() const
      39             : {
      40          27 :     return m_soFilePath.c_str();
      41             : }

Generated by: LCOV version 1.14