source: trunk/tmdmcreator/src/tmdmprocessor.h @ 40

Revision 21, 2.2 KB checked in by lucsch, 11 years ago (diff)
  • TmDmCreator is now working (supports language selection)
  • Adding swisstopo data model definition
RevLine 
[15]1/***************************************************************************
2 tmdmprocessor.h
3 -------------------
[16]4 copyright            : (C) 2013 CREALP Lucien Schreiber
[15]5 email                : lucien.schreiber at crealp dot vs dot ch
6 ***************************************************************************/
7
8/***************************************************************************
9 *                                                                         *
10 *   This program is free software; you can redistribute it and/or modify  *
11 *   it under the terms of the GNU General Public License as published by  *
12 *   the Free Software Foundation; either version 2 of the License, or     *
13 *   (at your option) any later version.                                   *
14 *                                                                         *
15 ***************************************************************************/
16#ifndef _TMDMPROCESSOR_H_
17#define _TMDMPROCESSOR_H_
18
19#include "wx/wxprec.h"
20#ifndef WX_PRECOMP
21#include <wx/wx.h>
22#endif
[17]23#include <wx/filename.h>
24#include <wx/wfstream.h>
25#include <wx/txtstrm.h>
[18]26#include <wx/tokenzr.h>
[15]27
[17]28
[15]29class TmDmCopier;
30class TmDmProcessor {
[16]31protected:
[17]32    wxFileName m_FileSrc;
33    wxFileName m_FileDst;
[16]34   
[21]35    int m_LanguageCol;
36    wxString SwitchCols(wxArrayString * cols, wxArrayString * values, int item);
37   
[16]38public:
[17]39    TmDmProcessor(const wxFileName & src, const wxFileName & dest);
[16]40    virtual ~TmDmProcessor();
41   
42    int FindBlock(const wxString & blockname);
[18]43    virtual bool ProcessBlock(int blockstart, const wxString & tablename) = 0;
[21]44
45    void SetLanguageColumn(int value);
[16]46};
[15]47
48
49
50
51
52
[16]53
[15]54class TmDmProcessorSimple : public TmDmProcessor {
[16]55public:
[17]56    TmDmProcessorSimple(const wxFileName & src, const wxFileName & dest);
[15]57    virtual ~TmDmProcessorSimple();
[16]58   
[18]59    virtual bool ProcessBlock(int blockstart, const wxString & tablename);
[16]60};
[15]61
[16]62
63
64
65
66
67
[15]68class TmDmProcessorAttributs : public TmDmProcessor {
[19]69private:
70    bool _ProcessAttributesName(int blockstart);
71    bool _ProcessAttributesValues(int blockstart);
72   
[16]73public:
[17]74    TmDmProcessorAttributs(const wxFileName & src, const wxFileName & dest);
[15]75    virtual ~TmDmProcessorAttributs();
[16]76   
[18]77    virtual bool ProcessBlock(int blockstart, const wxString & tablename);
[15]78};
79#endif
Note: See TracBrowser for help on using the repository browser.