Functions
include.cpp File Reference

Implement the include facility of the Scripting API. More...

#include "include.h"
#include <xsqlquery.h>

Functions

 include (String first, String second,...)
 Include the named script(s) in the current script.
QScriptValue includeScript (QScriptContext *context, QScriptEngine *engine)
 Implements an include facility for use in xTuple ERP scripts.
void setupInclude (QScriptEngine *engine)
 Sets the include() function as a property of the global object.

Detailed Description

Implement the include facility of the Scripting API.

This file implements the include() function used in scripts to extend xTuple ERP.


Function Documentation

QScriptValue includeScript ( QScriptContext context,
QScriptEngine engine 
)

Implements an include facility for use in xTuple ERP scripts.

This is the C++ implementation of the include() function. It should never be called directly.

Parameters:
contextThe context contains a list of arguments passed to the include() function by the calling script. All arguments are processed as potential script names to be loaded and run.
engineThe QScriptEngine in which to load the included scripts.
See also:
include()
void setupInclude ( QScriptEngine engine)

Sets the include() function as a property of the global object.

This installs the include() function as a property in the global namespace of the given QScriptEngine. It should only be called by setupScriptApi().

Parameters:
engineA pointer to the script engine in which to install the include function.

Generated on Mon Jan 23 2012 12:22:29 xTuple ERP Programmer Reference, Version 3.8.0 doxygen 1.7.6.1