~ubuntu-branches/ubuntu/trusty/blender/trusty-proposed

« back to all changes in this revision

Viewing changes to source/blender/freestyle/intern/system/Interpreter.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2013-08-14 10:43:49 UTC
  • mfrom: (14.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20130814104349-t1d5mtwkphp12dyj
Tags: 2.68a-3
* Upload to unstable
* debian/: python3.3 Depends simplified
  - debian/control: python3.3 Depends dropped
    for blender-data package
  - 0001-blender_thumbnailer.patch refreshed
* debian/control: libavcodec b-dep versioning dropped

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * ***** BEGIN GPL LICENSE BLOCK *****
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU General Public License
 
6
 * as published by the Free Software Foundation; either version 2
 
7
 * of the License, or (at your option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software Foundation,
 
16
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
17
 *
 
18
 * ***** END GPL LICENSE BLOCK *****
 
19
 */
 
20
 
 
21
#ifndef __FREESTYLE_INTERPRETER_H__
 
22
#define __FREESTYLE_INTERPRETER_H__
 
23
 
 
24
/** \file blender/freestyle/intern/system/Interpreter.h
 
25
 *  \ingroup freestyle
 
26
 *  \brief Base Class of all script interpreters
 
27
 *  \author Emmanuel Turquin
 
28
 *  \date 17/04/2003
 
29
 */
 
30
 
 
31
#include <string>
 
32
 
 
33
#ifdef WITH_CXX_GUARDEDALLOC
 
34
#include "MEM_guardedalloc.h"
 
35
#endif
 
36
 
 
37
using namespace std;
 
38
 
 
39
namespace Freestyle {
 
40
 
 
41
class LIB_SYSTEM_EXPORT Interpreter
 
42
{
 
43
public:
 
44
        Interpreter()
 
45
        {
 
46
                _language = "Unknown";
 
47
        }
 
48
 
 
49
        virtual ~Interpreter() {}; //soc
 
50
 
 
51
        virtual int interpretFile(const string& filename) = 0;
 
52
 
 
53
        virtual string getLanguage() const
 
54
        {
 
55
                return _language;
 
56
        }
 
57
 
 
58
        virtual void reset() = 0;
 
59
 
 
60
protected:
 
61
        string _language;
 
62
 
 
63
#ifdef WITH_CXX_GUARDEDALLOC
 
64
public:
 
65
        MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Interpreter")
 
66
#endif
 
67
};
 
68
 
 
69
} /* namespace Freestyle */
 
70
 
 
71
#endif // __FREESTYLE_INTERPRETER_H__