![]() |
Scanframe Modular Application 0.1.0
|
Info structure for objects used in scripts. More...
#include <ScriptObject.h>

Classes | |
| struct | IdInfo |
| Used to create static lookup lists. More... | |
| struct | Parameters |
| Type to pass to registered classes. More... | |
Public Types | |
| 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. | |
Public Member Functions | |
| ScriptObject (const char *type_name, ScriptObject *parent=nullptr) | |
| virtual | ~ScriptObject ()=default |
| Virtual destructor which can be overridden to clean up objects. | |
| virtual const IdInfo * | getInfo (const std::string &name) const =0 |
| Must be overridden for member namespace. | |
| virtual std::string | getStatusText () |
| Gets the status text of this object for debugging purposes. | |
| virtual bool | getSetValue (const IdInfo *info, Value *value, Value::vector_type *params, bool flag_set)=0 |
| Gets or sets the passed data member. Must be overridden in derived class. | |
| virtual void | destroyObject (bool &should_delete)=0 |
| Asks if the object should be deleted after having made this call. | |
| 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. | |
Static Public Member Functions | |
| static const IdInfo * | getInfoUnknown () |
| Returns the static Info structure for unknowns. | |
Protected Member Functions | |
| 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. | |
Friends | |
| class | ScriptInterpreter |
Info structure for objects used in scripts.
| typedef ssize_t sf::ScriptObject::ip_type |
Instruction pointer type.
| typedef std::string::size_type sf::ScriptObject::pos_type |
Source position type.
Keyword identifiers.
|
explicit |
Constructor.
|
virtualdefault |
Virtual destructor which can be overridden to clean up objects.
| ScriptObject * sf::ScriptObject::castToObject | ( | const Value & | value | ) |
Casts a sf::Value::vitCustom typed sf::Value to a ScriptObject typed pointer.
|
pure virtual |
Asks if the object should be deleted after having made this call.
Implemented in sf::FileFindObject, sf::IniProfileObject, sf::ResultDataScriptObject, sf::VariableScriptObject, sf::ProjectScriptObject, and sf::ScriptGlobalObject.
|
pure virtual |
Must be overridden for member namespace.
Implemented in sf::FileFindObject, sf::IniProfileObject, sf::GiiScriptInterpreter, sf::ResultDataScriptObject, sf::VariableScriptObject, sf::ProjectData, sf::ProjectScriptObject, sf::ScanBinder, sf::ScanMethod, sf::DefaultScanBinder, sf::ScriptEngine, sf::ScriptGlobalObject, and sf::ScriptInterpreter.
|
static |
Returns the static Info structure for unknowns.
| ScriptObject * sf::ScriptObject::getParent | ( | ) |
Gets the script object owner.
| const ScriptObject * sf::ScriptObject::getParent | ( | ) | const |
Gets the script object owner.
| int sf::ScriptObject::getRefCount | ( | ) | const |
Gets the reference count.
|
pure virtual |
Gets or sets the passed data member. Must be overridden in derived class.
Implemented in sf::GiiScriptInterpreter, sf::FileFindObject, sf::IniProfileObject, sf::ResultDataScriptObject, sf::VariableScriptObject, sf::ProjectData, sf::ProjectScriptObject, sf::ScanBinder, sf::ScanMethod, sf::ScriptEngine, sf::ScriptGlobalObject, and sf::ScriptInterpreter.
|
virtual |
Gets the status text of this object for debugging purposes.
Reimplemented in sf::ResultDataScriptObject, and sf::VariableScriptObject.
| std::string sf::ScriptObject::getTypeName | ( | ) | const |
Returns the type name Set at the constructor.
|
protected |
Makes this object the owner of the other object.
|
explicit |
Cast operator to be able to return this instance as a Value.
|
protected |
Sets the owner to the pass script object.
|
friend |