Blender V5.0
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
11
12#include <string>
13
14#include "MEM_guardedalloc.h"
15
16using namespace std;
17
18namespace Freestyle {
19
21 public:
23 {
24 _language = "Unknown";
25 }
26
27 virtual ~Interpreter() {}
28
29 virtual int interpretFile(const string &filename) = 0;
30
31 virtual string getLanguage() const
32 {
33 return _language;
34 }
35
36 virtual void reset() = 0;
37
38 protected:
39 string _language;
40
41 MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Interpreter")
42};
43
44} /* namespace Freestyle */
Read Guarded memory(de)allocation.
virtual int interpretFile(const string &filename)=0
virtual string getLanguage() const
Definition Interpreter.h:31
virtual void reset()=0
inherits from class Rep
Definition AppCanvas.cpp:20