Version: 0.6.0
gxgnm.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: Markup language Dataset classes.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2014 Dmitry Baryshnikov
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  ****************************************************************************/
21 #pragma once
22 
23 #include "wxgis/catalog/catalog.h"
24 #include "wxgis/catalog/gxobject.h"
25 #include "wxgis/catalog/gxdataset.h"
26 #include "wxgis/datasource/dataset.h"
27 
28 #ifdef wxGIS_USE_GDAL_GNM
29 
37 class WXDLLIMPEXP_GIS_CLT wxGxGNMConnectivity :
39 {
40  DECLARE_CLASS(wxGxGNMConnectivity)
41 public:
42  wxGxGNMConnectivity(wxGISEnumVectorDatasetType eType, wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "");
43  virtual ~wxGxGNMConnectivity(void);
44  //wxGxObject
45  virtual wxString GetCategory(void) const;
46  virtual void Refresh(void);
47  //wxGxDatasetContainer
48  virtual wxGISDataset* const GetDataset(bool bCache = true, ITrackCancel* const pTrackCancel = NULL);
49  virtual wxGISEnumDatasetType GetType(void) const;
50  virtual int GetSubType(void) const {return m_eType;};
51  //wxGxObjectContainer
52  virtual bool DestroyChildren();
53  virtual bool AreChildrenViewable(void) const {return true;};
54  virtual bool HasChildren(void);
55 protected:
56  //wxGxMLDataset
57  virtual void LoadChildren(void);
58  //create wxGISDataset without openning it
59  virtual wxGISDataset* const GetDatasetFast(void);
60 protected:
61  bool m_bIsChildrenLoaded;
62 // wxGISDataset* m_pwxGISDataset;
63  wxGISEnumVectorDatasetType m_eType;
64 };
65 
85 #endif
A TrackCancel interface class.
Definition: core.h:144
Definition: gxdataset.h:80
Definition: dataset.h:33
Definition: gxobject.h:37