![]() |
Scanframe Modular Application 0.1.0
|
Base class for a script to implementing. More...
#include <ScriptGlobalObject.h>
Public Member Functions | |
ScriptGlobalObject (const Parameters &) | |
const IdInfo * | getInfo (const std::string &name) const override |
Must be overloaded for member namespace. | |
bool | getSetValue (const IdInfo *info, Value *value, Value::vector_type *params, bool flag_set) override |
Gets or sets the passed data member. Must be overloaded in derived class. | |
![]() | |
ScriptObject (const char *type_name, ScriptObject *parent=nullptr) | |
virtual | ~ScriptObject ()=default |
Virtual destructor which can be overloaded to clean up objects. | |
virtual std::string | getStatusText () |
Gets the status text of this object for debugging purposes. | |
int | getRefCount () const |
Gets the reference count. | |
operator Value () const | |
Cast operator to be able to return this instance as a Value. | |
std::string | getTypeName () const |
Returns the type name Set at the constructor. | |
ScriptObject * | getParent () |
Gets the script object owner. | |
const ScriptObject * | getParent () const |
Gets the script object owner. | |
ScriptObject * | castToObject (const Value &value) |
Casts a sf::Value::vitCustom typed sf::Value to a ScriptObject typed pointer. | |
Protected Member Functions | |
void | destroyObject (bool &should_delete) override |
Asks if the object should be deleted after having made this call. | |
![]() | |
void | makeParent (ScriptObject *so) |
Makes this object the owner of the other object. | |
void | setParent (ScriptObject *parent) |
Sets the owner to the pass script object. | |
Additional Inherited Members | |
![]() | |
enum | EIdentifier { idUnknown = 0 , idConstant , idVariable , idFunction , idTypedef , idKeyword } |
Keyword identifiers. More... | |
typedef std::string::size_type | pos_type |
Source position type. | |
typedef ssize_t | ip_type |
Instruction pointer type. | |
![]() | |
static const IdInfo * | getInfoUnknown () |
Returns the static Info structure for unknowns. | |
Base class for a script to implementing.
|
explicit |
|
overrideprotectedvirtual |
Asks if the object should be deleted after having made this call.
Implements sf::ScriptObject.
|
overridevirtual |
Must be overloaded for member namespace.
Implements sf::ScriptObject.
|
overridevirtual |
Gets or sets the passed data member. Must be overloaded in derived class.
Implements sf::ScriptObject.