Class used to manage script functions virtually.  
 More...
#include <ScriptContext.h>
Class used to manage script functions virtually. 
 
  
  
      
        
          | virtual Neo::ScriptContext::~ScriptContext  | 
          ( | 
          void  | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
  
  
      
        
          | virtual void Neo::ScriptContext::addFunction  | 
          ( | 
          const char *  | 
          name,  | 
         
        
           | 
           | 
          int(*)(void)  | 
          function  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
pure virtual   | 
  
 
Add script function. 
- Parameters
 - 
  
    | name | Function name  | 
    | function | Function callback  | 
  
   
 
 
  
  
      
        
          | virtual void Neo::ScriptContext::callFunction  | 
          ( | 
          const char *  | 
          name | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Call script function. 
- Parameters
 - 
  
  
 
 
 
  
  
      
        
          | virtual bool Neo::ScriptContext::endCallFunction  | 
          ( | 
          int  | 
          numArgs = 0 | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
End call script function. 
- Parameters
 - 
  
    | numArgs | Number of arguments  | 
  
   
 
 
  
  
      
        
          | virtual unsigned int Neo::ScriptContext::getArgsNumber  | 
          ( | 
          void  | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual bool Neo::ScriptContext::getBoolean  | 
          ( | 
          unsigned int  | 
          arg | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual float Neo::ScriptContext::getFloat  | 
          ( | 
          unsigned int  | 
          arg | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual void Neo::ScriptContext::getFloatArray  | 
          ( | 
          unsigned int  | 
          arg,  | 
         
        
           | 
           | 
          float *  | 
          values,  | 
         
        
           | 
           | 
          unsigned int  | 
          valuesNumber  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual void Neo::ScriptContext::getIntArray  | 
          ( | 
          unsigned int  | 
          arg,  | 
         
        
           | 
           | 
          int *  | 
          values,  | 
         
        
           | 
           | 
          unsigned int  | 
          valuesNumber  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual int Neo::ScriptContext::getInteger  | 
          ( | 
          unsigned int  | 
          arg | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual void* Neo::ScriptContext::getPointer  | 
          ( | 
          unsigned int  | 
          arg | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual const char* Neo::ScriptContext::getString  | 
          ( | 
          unsigned int  | 
          arg | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual void Neo::ScriptContext::init  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual bool Neo::ScriptContext::isFunctionOk  | 
          ( | 
          const char *  | 
          name,  | 
         
        
           | 
           | 
          unsigned int  | 
          args  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual bool Neo::ScriptContext::isNumber  | 
          ( | 
          unsigned int  | 
          arg | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | bool Neo::ScriptContext::isRunning  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | virtual void Neo::ScriptContext::pushBoolean  | 
          ( | 
          bool  | 
          value | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual void Neo::ScriptContext::pushFloat  | 
          ( | 
          float  | 
          value | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual void Neo::ScriptContext::pushFloatArray  | 
          ( | 
          const float *  | 
          values,  | 
         
        
           | 
           | 
          unsigned int  | 
          valuesNumber  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual void Neo::ScriptContext::pushIntArray  | 
          ( | 
          const int *  | 
          values,  | 
         
        
           | 
           | 
          unsigned int  | 
          valuesNumber  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual void Neo::ScriptContext::pushInteger  | 
          ( | 
          int  | 
          value | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual void Neo::ScriptContext::pushPointer  | 
          ( | 
          void *  | 
          value | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual void Neo::ScriptContext::pushString  | 
          ( | 
          const char *  | 
          string | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual bool Neo::ScriptContext::runScript  | 
          ( | 
          const char *  | 
          filename | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual bool Neo::ScriptContext::runString  | 
          ( | 
          const char *  | 
          str | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual bool Neo::ScriptContext::startCallFunction  | 
          ( | 
          const char *  | 
          name | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Start call function. All arguments to the function have to be pushed between MScriptContext::startCallFunction and MScriptContext::endCallFunction 
- Parameters
 - 
  
  
 
 
 
  
  
      
        
          | bool Neo::ScriptContext::m_isRunning | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file: