Go to the documentation of this file.
6 #ifndef CNOID_PYTHON_PLUGIN_PYTHON_SCRIPT_ITEM_H
7 #define CNOID_PYTHON_PLUGIN_PYTHON_SCRIPT_ITEM_H
9 #include <cnoid/ScriptItem>
10 #include "exportdecl.h"
14 class PythonScriptItemImpl;
24 bool setScriptFilename(
const std::string& filename);
25 virtual const std::string& scriptFilename()
const override;
27 virtual void setBackgroundMode(
bool on)
override;
28 virtual bool isBackgroundMode()
const override;
29 virtual bool isRunning()
const override;
31 virtual bool execute()
override;
32 virtual bool executeCode(
const char* code)
override;
33 virtual bool waitToFinish(
double timeout = 0.0)
override;
34 virtual std::string resultString()
const override;
35 virtual SignalProxy<void()> sigScriptFinished()
override;
37 virtual bool terminate()
override;
41 virtual void onDisconnectedFromRoot()
override;
42 virtual Item* doDuplicate()
const override;
44 virtual bool store(
Archive& archive)
override;
45 virtual bool restore(
const Archive& archive)
override;
49 bool doExecuteOnProjectLoading;
Definition: ScriptItem.h:14
Definition: ExtensionManager.h:23
Definition: PutPropertyFunction.h:51
Definition: Referenced.h:103
Definition: AbstractSceneLoader.h:11
Definition: PythonScriptItem.h:16
ref_ptr< PythonScriptItem > PythonScriptItemPtr
Definition: PythonScriptItem.h:52
Definition: PythonScriptItemImpl.h:16