~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

Viewing changes to src/include/ibaseloader.h

  • Committer: damienlmoore at gmail
  • Date: 2016-02-02 02:43:22 UTC
  • Revision ID: damienlmoore@gmail.com-20160202024322-yql5qmtbwdyamdwd
Code::BlocksĀ 16.01

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
6
#ifndef IBASELOADER_H
 
7
#define IBASELOADER_H
 
8
 
 
9
#include "settings.h"
 
10
 
 
11
class wxString;
 
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
};
 
32
 
 
33
#endif // IBASELOADER_H