1 | /*************************************************************************** |
---|
2 | tmdmprocessor.h |
---|
3 | ------------------- |
---|
4 | copyright : (C) 2013 CREALP Lucien Schreiber |
---|
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 { |
---|
29 | protected: |
---|
30 | TmDmCopier * m_Copier; |
---|
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 | }; |
---|
39 | |
---|
40 | |
---|
41 | |
---|
42 | |
---|
43 | |
---|
44 | |
---|
45 | |
---|
46 | class TmDmProcessorSimple : public TmDmProcessor { |
---|
47 | public: |
---|
48 | TmDmProcessorSimple(); |
---|
49 | virtual ~TmDmProcessorSimple(); |
---|
50 | |
---|
51 | virtual bool ProcessBlock(int blockstart, TmDmCopier * copier); |
---|
52 | }; |
---|
53 | |
---|
54 | |
---|
55 | |
---|
56 | |
---|
57 | |
---|
58 | |
---|
59 | |
---|
60 | class TmDmProcessorAttributs : public TmDmProcessor { |
---|
61 | public: |
---|
62 | TmDmProcessorAttributs(); |
---|
63 | virtual ~TmDmProcessorAttributs(); |
---|
64 | |
---|
65 | virtual bool ProcessBlock(int blockstart, TmDmCopier * copier); |
---|
66 | }; |
---|
67 | #endif |
---|