/src/gdal/ogr/ogrsf_frmts/cad/libopencad/cadfileio.cpp
Line | Count | Source |
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 | | CADFileIO::CADFileIO( const char * pszFileName ) : |
18 | 7.59k | m_soFilePath( pszFileName), |
19 | 7.59k | m_bIsOpened (false) |
20 | 7.59k | { |
21 | 7.59k | } |
22 | | |
23 | | CADFileIO::~CADFileIO() |
24 | 7.59k | { |
25 | 7.59k | } |
26 | | |
27 | | bool CADFileIO::IsOpened() const |
28 | 37.9k | { |
29 | 37.9k | return m_bIsOpened; |
30 | 37.9k | } |
31 | | |
32 | | bool CADFileIO::Close() |
33 | 0 | { |
34 | 0 | m_bIsOpened = false; |
35 | 0 | return true; |
36 | 0 | } |
37 | | |
38 | | const char * CADFileIO::GetFilePath() const |
39 | 7.58k | { |
40 | 7.58k | return m_soFilePath.c_str(); |
41 | 7.58k | } |