![]() |
Scanframe Modular Application 0.1.0
|
sf::ScriptGlobalEntry derived class to link static functions or methods using a closure. More...
#include <ScriptGlobalEntry.h>


Public Types | |
| typedef TClosure< Value, const Value::vector_type & > | ClosureType |
Public Member Functions | |
| ScriptGlobalEntryClosure (const std::string &name, const std::string &description, int arg_count) | |
| ScriptGlobalEntryClosure (const StaticScriptGlobalEntry &)=delete | |
| No copying allowed. | |
| ScriptGlobalEntryClosure & | operator= (const StaticScriptGlobalEntry &)=delete |
| No copying allowed. | |
Public Member Functions inherited from sf::ScriptGlobalEntry | |
| ScriptGlobalEntry (const std::string &name, const std::string &description, int argumentCount) | |
| Default Constructor adding itself to the global mapped entries. | |
| virtual | ~ScriptGlobalEntry () |
| Destructor. Removes itself from the mapped entries. | |
| ScriptGlobalEntry (const ScriptGlobalEntry &)=delete | |
| Not allowed to copy. | |
| ScriptGlobalEntry & | operator= (const ScriptGlobalEntry &)=delete |
| Not allowed to copy. | |
| std::string | getName () const |
| Gets the name of the entry. | |
| void | setDescription (const std::string &description) |
| Sets the description of the entry. | |
| std::string | getDescription () const |
| Gets the description of the entry. | |
| int | getArgumentCount () const |
| Gets the amount of parameters that is needed for this function. | |
Public Attributes | |
| ClosureType | onCall |
| Closure handling the call. | |
Additional Inherited Members | |
Static Public Member Functions inherited from sf::ScriptGlobalEntry | |
| static bool | call (const std::string &name, const Value::vector_type &arguments, Value &result) |
| Finds the function with name 'name' and returns true when the function was found passing the correct amount of parameters. When found the function is also executed. | |
| static ScriptGlobalEntry * | getEntry (const std::string &name) |
| Gets the entry pointer by name. | |
| static string_list | getEntryStringList (bool descriptive) |
| Gets a string list containing all available global script functions. | |
Static Public Attributes inherited from sf::ScriptGlobalEntry | |
| static constexpr size_t | unlimitedArgs = std::numeric_limits<int>::max() |
| Unsigned size value indicating not found or no index. | |
Protected Attributes inherited from sf::ScriptGlobalEntry | |
| std::string | _name |
| Holds the name of the entry. | |
| std::string | _description |
| Holds description of the entry. | |
| int | _argumentCount {0} |
| Holds the number of parameters to pass to the entry. | |
sf::ScriptGlobalEntry derived class to link static functions or methods using a closure.
| typedef TClosure<Value, const Value::vector_type&> sf::ScriptGlobalEntryClosure::ClosureType |
| sf::ScriptGlobalEntryClosure::ScriptGlobalEntryClosure | ( | const std::string & | name, |
| const std::string & | description, | ||
| int | arg_count | ||
| ) |
|
delete |
No copying allowed.
|
delete |
No copying allowed.
| ClosureType sf::ScriptGlobalEntryClosure::onCall |
Closure handling the call.