AGX Dynamics  2.37.2.0
ScriptIDEInterpreter.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 
18 #pragma once
19 #ifndef AGXPYTHON_SCRIPTIDEINTERPRETER_H
20 #define AGXPYTHON_SCRIPTIDEINTERPRETER_H 1
21 
22 #include <agx/config/AGX_USE_PYTHON.h>
23 
24 #if AGX_USE_PYTHON()
25 
26 #include <agxPython/export.h>
27 #include <agx/Referenced.h>
28 
29 
30 
31 namespace agxPython
32 {
33  class ScriptIDE;
34 
35  class AGXPYTHON_EXPORT ScriptIDEInterpreter : public agx::Referenced
36  {
37 
38  public:
39 
40  friend class ScriptIDE;
41 
42  ScriptIDEInterpreter();
43 
44  virtual void onException() = 0;
45 
46  virtual void onStarted() = 0;
47 
48  virtual void onSuspended() = 0;
49 
50  virtual void onAbort() = 0;
51 
52  virtual void onBreakpoint(int line) = 0;
53 
54  virtual bool isEnabled();
55 
56  virtual void setEnabled(bool enable = true);
57 
58  void start(bool restart);
59 
60  void stop();
61 
62  protected:
63 
64  virtual ~ScriptIDEInterpreter();
65 
66  private:
67 
68  ScriptIDE *m_ide;
69 
70  bool m_enabled;
71 
72  };
73 
74 
75 }
76 
77 
78 #endif
79 
80 #endif
Base class providing referencing counted objects.
Definition: Referenced.h:119
#define AGXPYTHON_EXPORT