Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
pythonserver.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
11
#include "
scripting/scriptserver.h
"
12
#include "
util/string.h
"
13
14
//------------------------------------------------------------------------------
15
namespace
Scripting
16
{
17
class
PythonServer
:
public
ScriptServer
18
{
19
__DeclareClass
(
PythonServer
);
20
__DeclareSingleton
(
PythonServer
);
21
public
:
23
PythonServer
();
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);
36
private
:
37
38
};
39
40
}
// namespace Scripting
41
//------------------------------------------------------------------------------
IO::URI
An URI object can split a Uniform Resource Identifier string into its components or build a string fr...
Definition
uri.h:67
Scripting::PythonServer::__DeclareSingleton
__DeclareSingleton(PythonServer)
Scripting::PythonServer::Open
bool Open()
open the script server
Definition
pythonserver.cc:48
Scripting::PythonServer::EvalFile
bool EvalFile(const IO::URI &file)
evaluate script in file
Definition
pythonserver.cc:147
Scripting::PythonServer::__DeclareClass
__DeclareClass(PythonServer)
Scripting::PythonServer::AddModulePath
void AddModulePath(const IO::URI &folder)
add module search path
Definition
pythonserver.cc:117
Scripting::PythonServer::~PythonServer
virtual ~PythonServer()
destructor
Definition
pythonserver.cc:35
Scripting::PythonServer::PythonServer
PythonServer()
constructor
Definition
pythonserver.cc:27
Scripting::PythonServer::Close
void Close()
close the script server
Definition
pythonserver.cc:100
Scripting::PythonServer::Eval
bool Eval(const Util::String &str)
evaluate a script statement in a string
Definition
pythonserver.cc:130
Scripting::ScriptServer::ScriptServer
ScriptServer()
constructor
Definition
scriptserver.cc:22
Scripting
Prototype for deargui scripting init.
Definition
deargui.cpp:2701
scriptserver.h
string.h
Util.String
Nebula's universal string class.
Definition
String.cs:8
code
addons
scripting
python
pythonserver.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.