20 using namespace kome::objects;
25 #define new new( _NORMAL_BLOCK, __FILE__, __LINE__ )
26 #define malloc( s ) _malloc_dbg( s, _NORMAL_BLOCK, __FILE__, __LINE__ )
109 std::string ret =
run();
131 std::string n =
NVL( name,
"" );
138 for(
unsigned int i = 0; i <
m_variables.size() && idx < 0; i++ ) {
207 if( script !=
NULL ) {
const char * getVariableName(const unsigned int idx)
gets the variable name
std::string run()
run the script
virtual std::string onGetTemplate()=0
This method is called from the getTempalte method. (abstract method)
void setParameters(kome::objects::Parameters *pParams)
sets the variant(Active Object)
kome::objects::Variant m_refVariant
void setVariant(kome::objects::Variant &var)
sets the variant(Active Object)
unsigned int getNumberOfVariables()
gets the number of variables
void removeScript(Script *script)
removes script
ScriptManager()
constructor
std::vector< VariableInfo > m_variables
interfarces of Script class
std::set< Script * > m_scriptSet
std::string getTemplate()
gets the template
void setScript(const char *script)
sets the script
#define NVL(checkVal, replaceVal)
static void setScriptFilePath(const char *path)
sets the script file path
const kome::objects::Parameters * getParameters(void)
gets the parameter
class that treats data of various types
static ScriptManager & getInstance()
gets the instance. (This is the only object.)
static std::string m_filePath
parameters of plug-in function management class
virtual ~Script()
destructor
const kome::objects::Variant & getVariant(void)
gets the variant
void clearVariables()
clears variables
void addScript(Script *script)
adds script
kome::objects::Parameters * m_pParams
const char * getScript()
gets the script
virtual ~ScriptManager()
destructor
void addVariable(const char *name, const char *desc)
adds variable
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)
static const char * getScriptFilePath()
gets the script file path
const char * getVariableDescription(const unsigned int idx)
gets the variable description