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

Revision 17, 1.9 KB checked in by lucsch, 11 years ago (diff)

Preliminary code for processing user_content.txt

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>
[15]26
[17]27
[15]28class TmDmCopier;
29class TmDmProcessor {
[16]30protected:
[17]31    wxFileName m_FileSrc;
32    wxFileName m_FileDst;
[16]33   
34public:
[17]35    TmDmProcessor(const wxFileName & src, const wxFileName & dest);
[16]36    virtual ~TmDmProcessor();
37   
38    int FindBlock(const wxString & blockname);
[17]39    virtual bool ProcessBlock(int blockstart) = 0;
[16]40};
[15]41
42
43
44
45
46
[16]47
[15]48class TmDmProcessorSimple : public TmDmProcessor {
[16]49public:
[17]50    TmDmProcessorSimple(const wxFileName & src, const wxFileName & dest);
[15]51    virtual ~TmDmProcessorSimple();
[16]52   
[17]53    virtual bool ProcessBlock(int blockstart);
[16]54};
[15]55
[16]56
57
58
59
60
61
[15]62class TmDmProcessorAttributs : public TmDmProcessor {
[16]63public:
[17]64    TmDmProcessorAttributs(const wxFileName & src, const wxFileName & dest);
[15]65    virtual ~TmDmProcessorAttributs();
[16]66   
[17]67    virtual bool ProcessBlock(int blockstart);
[15]68};
69#endif
Note: See TracBrowser for help on using the repository browser.