source: trunk/tmdmcreator/src/tmdmcopier.h @ 15

Revision 15, 1.4 KB checked in by lucsch, 11 years ago (diff)

Adding UML analysis and skeleton code

Line 
1/***************************************************************************
2 tmdmcopier.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 _TMDMCOPIER_H_
17#define _TMDMCOPIER_H_
18
19#include "wx/wxprec.h"
20#ifndef WX_PRECOMP
21#include <wx/wx.h>
22#endif
23
24#include <wx/filename.h>
25
26enum TMDMCOPIER_MODE {
27    TMDMCOPIER_MODE_ERASE = 0,
28    TMDMCOPIER_MODE_APPEND
29};
30
31
32class TmDmCopier {
33private:
34    TMDMCOPIER_MODE m_CopyMode;
35   
36public:
37    TmDmCopier(const wxFileName & destfile);
38    virtual ~TmDmCopier();
39   
40    void SetCopyMode(TMDMCOPIER_MODE value);
41    bool CopyFrom(const wxFileName & filename);
42    bool CopyFrom(const wxString & text);
43    bool IsCopyAllowed();
44};
45#endif
Note: See TracBrowser for help on using the repository browser.