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-05-03 15:49:35 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             :  *  Permission is hereby granted, free of charge, to any person obtaining a copy
      14             :  *  of this software and associated documentation files (the "Software"), to deal
      15             :  *  in the Software without restriction, including without limitation the rights
      16             :  *  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
      17             :  *  copies of the Software, and to permit persons to whom the Software is
      18             :  *  furnished to do so, subject to the following conditions:
      19             :  *
      20             :  *  The above copyright notice and this permission notice shall be included in all
      21             :  *  copies or substantial portions of the Software.
      22             :  *
      23             :  *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
      24             :  *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
      25             :  *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
      26             :  *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
      27             :  *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
      28             :  *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
      29             :  *  SOFTWARE.
      30             :  ******************************************************************************/
      31             : #include "cadfileio.h"
      32             : 
      33           9 : CADFileIO::CADFileIO( const char * pszFileName ) :
      34             :     m_soFilePath( pszFileName),
      35           9 :     m_bIsOpened (false)
      36             : {
      37           9 : }
      38             : 
      39           9 : CADFileIO::~CADFileIO()
      40             : {
      41           9 : }
      42             : 
      43          44 : bool CADFileIO::IsOpened() const
      44             : {
      45          44 :     return m_bIsOpened;
      46             : }
      47             : 
      48           0 : bool CADFileIO::Close()
      49             : {
      50           0 :     m_bIsOpened = false;
      51           0 :     return true;
      52             : }
      53             : 
      54          27 : const char * CADFileIO::GetFilePath() const
      55             : {
      56          27 :     return m_soFilePath.c_str();
      57             : }

Generated by: LCOV version 1.14