AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
ScriptIDEInterpreter.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx 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
31namespace 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
#define AGXPYTHON_EXPORT
Base class providing referencing counted objects.
Definition Referenced.h:120