AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ScriptRuntimeListener.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2021. 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_SCRIPTRUNTIMELISTENER_H
20 #define AGXPYTHON_SCRIPTRUNTIMELISTENER_H 1
21 
23 
24 #if AGX_USE_PYTHON()
25 
26 #include <agxPython/export.h>
27 
28 #include <agx/Referenced.h>
29 #include <agx/String.h>
30 
31 #include <string>
32 
33 namespace agxPython
34 {
35  class ReactiveScript;
36 
38  {
39  public:
40 
41  friend class ReactiveScript;
42 
44 
45  virtual void OnUnhandledException(const agx::String& message, long line) =0;
46 
47  ReactiveScript *getScript();
48 
49  protected:
50 
51  virtual ~ScriptRuntimeListener();
52 
53  private:
54 
55  ReactiveScript *m_script;
56 
57  };
58 
59 
60 }
61 
62 
63 
64 #endif
65 
66 #endif
The ReactiveScript class is derived from the agxSDK::StepEventListener class and require an agxSDK::S...
Base class providing referencing counted objects.
Definition: Referenced.h:113
GLenum GLuint GLenum GLsizei const GLchar * message
Definition: gl.h:5539
#define AGXPYTHON_EXPORT