Blender V4.3
Interpreter.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
12#include <string>
13
14#ifdef WITH_CXX_GUARDEDALLOC
15# include "MEM_guardedalloc.h"
16#endif
17
18using namespace std;
19
20namespace Freestyle {
21
23 public:
25 {
26 _language = "Unknown";
27 }
28
29 virtual ~Interpreter() {}
30
31 virtual int interpretFile(const string &filename) = 0;
32
33 virtual string getLanguage() const
34 {
35 return _language;
36 }
37
38 virtual void reset() = 0;
39
40 protected:
41 string _language;
42
43#ifdef WITH_CXX_GUARDEDALLOC
44 MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Interpreter")
45#endif
46};
47
48} /* namespace Freestyle */
Read Guarded memory(de)allocation.
virtual int interpretFile(const string &filename)=0
virtual string getLanguage() const
Definition Interpreter.h:33
virtual void reset()=0
inherits from class Rep
Definition AppCanvas.cpp:20