[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 | // For compilers that support precompilation, includes "wx/wx.h". |
---|
| 20 | #include "wx/wxprec.h" |
---|
| 21 | |
---|
| 22 | // Include wxWidgets' headers |
---|
| 23 | #ifndef WX_PRECOMP |
---|
| 24 | #include <wx/wx.h> |
---|
| 25 | #endif |
---|
| 26 | |
---|
| 27 | class TmDmCopier; |
---|
| 28 | class TmDmProcessor { |
---|
[16] | 29 | protected: |
---|
[15] | 30 | TmDmCopier * m_Copier; |
---|
[16] | 31 | |
---|
| 32 | public: |
---|
| 33 | TmDmProcessor(); |
---|
| 34 | virtual ~TmDmProcessor(); |
---|
| 35 | |
---|
| 36 | int FindBlock(const wxString & blockname); |
---|
| 37 | virtual bool ProcessBlock(int blockstart, TmDmCopier * copier) = 0; |
---|
| 38 | }; |
---|
[15] | 39 | |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | |
---|
[16] | 45 | |
---|
[15] | 46 | class TmDmProcessorSimple : public TmDmProcessor { |
---|
[16] | 47 | public: |
---|
[15] | 48 | TmDmProcessorSimple(); |
---|
| 49 | virtual ~TmDmProcessorSimple(); |
---|
[16] | 50 | |
---|
[15] | 51 | virtual bool ProcessBlock(int blockstart, TmDmCopier * copier); |
---|
[16] | 52 | }; |
---|
[15] | 53 | |
---|
[16] | 54 | |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | |
---|
[15] | 60 | class TmDmProcessorAttributs : public TmDmProcessor { |
---|
[16] | 61 | public: |
---|
[15] | 62 | TmDmProcessorAttributs(); |
---|
| 63 | virtual ~TmDmProcessorAttributs(); |
---|
[16] | 64 | |
---|
[15] | 65 | virtual bool ProcessBlock(int blockstart, TmDmCopier * copier); |
---|
| 66 | }; |
---|
| 67 | #endif |
---|