script abstract class More...
#include <Script.h>

Classes | |
| struct | VariableInfo |
| variable information More... | |
Public Member Functions | |
| Script () | |
| constructor | |
| virtual | ~Script () |
| destructor | |
| void | setScript (const char *script) |
| sets the script More... | |
| const char * | getScript () |
| gets the script More... | |
| void | setVariant (kome::objects::Variant &var) |
| sets the variant(Active Object) More... | |
| const kome::objects::Variant & | getVariant (void) |
| gets the variant More... | |
| void | setParameters (kome::objects::Parameters *pParams) |
| sets the variant(Active Object) More... | |
| const kome::objects::Parameters * | getParameters (void) |
| gets the parameter More... | |
| std::string | getTemplate () |
| gets the template More... | |
| std::string | run (const char *script, kome::objects::Variant &var, kome::objects::Parameters *pParams) |
| run the script More... | |
| std::string | run () |
| run the script More... | |
| void | clearVariables () |
| clears variables | |
| void | addVariable (const char *name, const char *desc) |
| adds variable | |
| unsigned int | getNumberOfVariables () |
| gets the number of variables More... | |
| const char * | getVariableName (const unsigned int idx) |
| gets the variable name More... | |
| const char * | getVariableDescription (const unsigned int idx) |
| gets the variable description More... | |
Static Public Member Functions | |
| static void | setScriptFilePath (const char *path) |
| sets the script file path More... | |
| static const char * | getScriptFilePath () |
| gets the script file path More... | |
Protected Member Functions | |
| virtual std::string | onRun (const char *script, kome::objects::Variant &var, kome::objects::Parameters *pParams)=0 |
| This method is called from the run method. (abstract method) More... | |
| virtual std::string | onGetTemplate ()=0 |
| This method is called from the getTempalte method. (abstract method) More... | |
Protected Attributes | |
| std::string | m_script |
| std::vector< VariableInfo > | m_variables |
| kome::objects::Variant | m_refVariant |
| kome::objects::Parameters * | m_pParams |
Static Protected Attributes | |
| static std::string | m_filePath |
| unsigned int kome::objects::Script::getNumberOfVariables | ( | ) |
gets the number of variables
Definition at line 156 of file Script.cpp.
| const kome::objects::Parameters * kome::objects::Script::getParameters | ( | void | ) |
| const char * kome::objects::Script::getScript | ( | ) |
|
static |
| std::string kome::objects::Script::getTemplate | ( | ) |
gets the template
Definition at line 67 of file Script.cpp.

| const char * kome::objects::Script::getVariableDescription | ( | const unsigned int | idx | ) |
gets the variable description
| [in] | idx | variable index |
Definition at line 170 of file Script.cpp.
| const char * kome::objects::Script::getVariableName | ( | const unsigned int | idx | ) |
gets the variable name
| [in] | idx | variable index |
Definition at line 161 of file Script.cpp.
| const kome::objects::Variant & kome::objects::Script::getVariant | ( | void | ) |
gets the variant
Definition at line 81 of file Script.cpp.
|
protectedpure virtual |
This method is called from the getTempalte method. (abstract method)
|
protectedpure virtual |
This method is called from the run method. (abstract method)
| [in] | script | character string of the script |
| [in] | var | ActiveObject what is provided by the Variant type |
| [in] | pParams | pointer of parameter |
| std::string kome::objects::Script::run | ( | const char * | script, |
| kome::objects::Variant & | var, | ||
| kome::objects::Parameters * | pParams | ||
| ) |
run the script
| [in] | script | character string of the script |
| [in] | var | ActiveObject what is provided by the Variant type |
| [in] | pParams | pointer of parameter |
Definition at line 102 of file Script.cpp.

| std::string kome::objects::Script::run | ( | ) |
run the script
Definition at line 115 of file Script.cpp.

| void kome::objects::Script::setParameters | ( | kome::objects::Parameters * | pParams | ) |
sets the variant(Active Object)
| [in] | pParams | pointer of parameter |
Definition at line 87 of file Script.cpp.
| void kome::objects::Script::setScript | ( | const char * | script | ) |
sets the script
| [in] | script | character string of the script |
Definition at line 57 of file Script.cpp.
|
static |
sets the script file path
| [in] | path | script file path |
Definition at line 179 of file Script.cpp.
| void kome::objects::Script::setVariant | ( | kome::objects::Variant & | var | ) |
sets the variant(Active Object)
| [in] | var | ActiveObject what is provided by the Variant type |
Definition at line 75 of file Script.cpp.
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.6