~efargaspro/+junk/codeblocks-16.01-release

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
 * http://www.gnu.org/licenses/lgpl-3.0.html
 */

#ifndef IBASELOADER_H
#define IBASELOADER_H

#include "settings.h"

class wxString;

/** Base interface for project loaders. */
class DLLIMPORT IBaseLoader
{
    public:
        /// Constructor
        IBaseLoader(){}
        /// Destructor
        virtual ~IBaseLoader(){}

        /** Open a file.
          * @param filename The file to open.
          * @return True on success, false on failure. */
        virtual bool Open(const wxString& filename) = 0;

        /** Save a file.
          * @param filename The file to save.
          * @return True on success, false on failure. */
        virtual bool Save(const wxString& filename) = 0;
};

#endif // IBASELOADER_H