Version: 0.6.0
gxgisprojfactory.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGxGisProjectFactory class. Create new GxGisProjects objects
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/gxobjectfactory.h"
24 
29 enum wxGISEnumGisProjectType
30 {
31  enumGisProjUnknown = 0,
32  enumGisProjQGIS,
33  enumGisProjWor,
34  enumGisProjMAX
35 };
36 
43 class WXDLLIMPEXP_GIS_CLT wxGxGisProjectFactory :
44  public wxGxObjectFactory
45 {
46  DECLARE_DYNAMIC_CLASS(wxGxGisProjectFactory)
47 public:
49  virtual ~wxGxGisProjectFactory(void);
50  //wxGxObjectFactory
51  virtual bool GetChildren(wxGxObject* pParent, char** &pFileNames, wxArrayLong & pChildrenIds);
52  virtual wxString GetName(void) const {return wxString(_("GIS Projects"));};
53  virtual wxGxObject* GetGxObject(wxGxObject* pParent, const wxString &soName, const CPLString &szPath, wxGISEnumGisProjectType eType, bool bCheckNames);
54 };
A base class for GxObject factory.
Definition: gxobjectfactory.h:32
Definition: gxgisprojfactory.h:43
Definition: gxobject.h:37