Blender  V3.3
Interpreter.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
10 #include <string>
11 
12 #ifdef WITH_CXX_GUARDEDALLOC
13 # include "MEM_guardedalloc.h"
14 #endif
15 
16 using namespace std;
17 
18 namespace Freestyle {
19 
20 class Interpreter {
21  public:
23  {
24  _language = "Unknown";
25  }
26 
27  virtual ~Interpreter()
28  {
29  }
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:18