4197
by mortenmacfly
- tagged all header files to GPLv3 |
1 |
/*
|
2 |
* This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
|
|
3 |
* http://www.gnu.org/licenses/lgpl-3.0.html
|
|
4 |
*/
|
|
5 |
||
2914
by mandrav
* First part of directories layout re-organization: moved all sdk header files to a new dir named "include". |
6 |
#ifndef IBASELOADER_H
|
7 |
#define IBASELOADER_H
|
|
8 |
||
9 |
#include <wx/string.h> |
|
10 |
#include "settings.h" |
|
11 |
#include "tinyxml/tinyxml.h" |
|
12 |
||
13 |
/** Base interface for project loaders. */
|
|
14 |
class DLLIMPORT IBaseLoader |
|
15 |
{
|
|
16 |
public: |
|
17 |
/// Constructor
|
|
18 |
IBaseLoader(){} |
|
19 |
/// Destructor
|
|
20 |
virtual ~IBaseLoader(){} |
|
21 |
||
22 |
/** Open a file.
|
|
23 |
* @param filename The file to open.
|
|
24 |
* @return True on success, false on failure. */
|
|
25 |
virtual bool Open(const wxString& filename) = 0; |
|
26 |
||
27 |
/** Save a file.
|
|
28 |
* @param filename The file to save.
|
|
29 |
* @return True on success, false on failure. */
|
|
30 |
virtual bool Save(const wxString& filename) = 0; |
|
31 |
protected: |
|
32 |
};
|
|
33 |
||
34 |
#endif // IBASELOADER_H |