Nebula
Loading...
Searching...
No Matches
pythonserver.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
12#include "util/string.h"
13
14//------------------------------------------------------------------------------
15namespace Scripting
16{
18{
21public:
25 virtual ~PythonServer();
27 bool Open();
29 void Close();
31 void AddModulePath(const IO::URI & folder);
33 bool Eval(const Util::String& str);
35 bool EvalFile(const IO::URI& file);
36private:
37
38};
39
40} // namespace Scripting
41//------------------------------------------------------------------------------
An URI object can split a Uniform Resource Identifier string into its components or build a string fr...
Definition uri.h:67
Python backend for the Nebula scripting subsystem.
Definition pythonserver.h:18
__DeclareSingleton(PythonServer)
bool Open()
open the script server
Definition pythonserver.cc:48
bool EvalFile(const IO::URI &file)
evaluate script in file
Definition pythonserver.cc:147
__DeclareClass(PythonServer)
void AddModulePath(const IO::URI &folder)
add module search path
Definition pythonserver.cc:117
virtual ~PythonServer()
destructor
Definition pythonserver.cc:35
PythonServer()
constructor
Definition pythonserver.cc:27
void Close()
close the script server
Definition pythonserver.cc:100
bool Eval(const Util::String &str)
evaluate a script statement in a string
Definition pythonserver.cc:130
Server class of the scripting subsystem.
Definition scriptserver.h:29
Prototype for deargui scripting init.
Definition deargui.cpp:2701
Nebula's universal string class.
Definition string.h:50