Public Member Functions | Static Private Member Functions | Static Private Attributes
ScriptExecuter Class Reference

#include <ScriptExecuter.h>

List of all members.

Public Member Functions

CompilationResult compile (PythonScript &script)
void execute (PythonScript &pythonScript, ScriptInputType input)
 ScriptExecuter ()
void simulate (PythonScript &pythonScript)

Static Private Member Functions

static PyObject * convertToPythonType (string value)
static PyObject * internalFunction (PyObject *self, PyObject *args)
static PyObject * internalTopic (PyObject *self, PyObject *args)
static PyObject * internalValidation (PyObject *self, PyObject *args)

Static Private Attributes

static PythonScript_currentScript = NULL
static boost::mutex _executionMutex
static bool _runtime
static bool _simulation
static map< string, string > _topicValues
static bool _validationFailed
static vector< string > _validationsFailed
static vector< string > _validationsPassed
static PyMethodDef MonitorPythonLib []

Detailed Description

Definition at line 32 of file ScriptExecuter.h.


Constructor & Destructor Documentation

Definition at line 32 of file ScriptExecuter.cpp.


Member Function Documentation

Parameters:
sourceCode
Returns:

Definition at line 37 of file ScriptExecuter.cpp.

PyObject * ScriptExecuter::convertToPythonType ( string  value) [static, private]

Definition at line 77 of file ScriptExecuter.cpp.

void ScriptExecuter::execute ( PythonScript pythonScript,
ScriptInputType  input 
)

Definition at line 42 of file ScriptExecuter.cpp.

PyObject * ScriptExecuter::internalFunction ( PyObject *  self,
PyObject *  args 
) [static, private]

Definition at line 162 of file ScriptExecuter.cpp.

PyObject * ScriptExecuter::internalTopic ( PyObject *  self,
PyObject *  args 
) [static, private]

Definition at line 124 of file ScriptExecuter.cpp.

PyObject * ScriptExecuter::internalValidation ( PyObject *  self,
PyObject *  args 
) [static, private]

Definition at line 141 of file ScriptExecuter.cpp.

void ScriptExecuter::simulate ( PythonScript pythonScript)

Executes python script without validations and internal function calls. Used to extract involved topic names and validation names

Parameters:
pythonScript

Definition at line 59 of file ScriptExecuter.cpp.


Member Data Documentation

Definition at line 59 of file ScriptExecuter.h.

boost::mutex ScriptExecuter::_executionMutex [static, private]

Definition at line 58 of file ScriptExecuter.h.

bool ScriptExecuter::_runtime [static, private]

Definition at line 61 of file ScriptExecuter.h.

bool ScriptExecuter::_simulation [static, private]

Definition at line 62 of file ScriptExecuter.h.

map< string, string > ScriptExecuter::_topicValues [static, private]

Definition at line 66 of file ScriptExecuter.h.

bool ScriptExecuter::_validationFailed [static, private]

Definition at line 63 of file ScriptExecuter.h.

vector< string > ScriptExecuter::_validationsFailed [static, private]

Definition at line 65 of file ScriptExecuter.h.

vector< string > ScriptExecuter::_validationsPassed [static, private]

Definition at line 64 of file ScriptExecuter.h.

PyMethodDef ScriptExecuter::MonitorPythonLib [static, private]
Initial value:
{
        {"internal_function",   &ScriptExecuter::internalFunction,              METH_O, ""      },
        {"internal_validation", &ScriptExecuter::internalValidation,    METH_O, ""      },
        {"internal_topic",              &ScriptExecuter::internalTopic,                 METH_O, ""      },
        {NULL,                                  NULL,                                                                   0,              NULL}
}

Definition at line 67 of file ScriptExecuter.h.


The documentation for this class was generated from the following files:


scriptable_monitor
Author(s):
autogenerated on Wed Aug 26 2015 16:21:30