|
|
||||||
|
lbp_function.h
Go to the documentation of this file.
117 * a trailing "_" is dropped. E.g. the variant <tt>res=a+b</tt> matches the Lua function <tt>res_a_b</tt>.
120 * as a parameter value. Thus, to assign a value to an <tt>access="Out"</tt> or <tt>access="InOut"</tt>
121 * parameter, you must use the assigment memberfunction Assign (as opposed to the assignment operator "=").
122 * - Elementary types (i.e. integers, booleans and strings) are passed to the Lua function by value.
123 * Thus, it would be pointless to have an elementary typed parameter with access attribute other than
125 * Lua function must return the corresponding values by an approriate return statement. The signature
131 * - When using Install() to install the function to a LuaState, a single wrapper function will be
132 * defined to dispatch variants. By convention, this function is located in <tt>faudes.name_of_fdef</tt>,
360 virtual void DoWrite(TokenWriter& rTw, const std::string& rLabel="",const Type* pContext=0) const;
#define FAUDES_TYPE_DECLARATION(ftype, ctype, cbase) faudes type declaration macro Definition: cfl_types.h:867 A FunctionDefinition defines the interface to a faudes-function. Definition: cfl_functions.h:419 A faudes-function hosts parameter values of some faudes type and provides a method to perform an oper... Definition: cfl_functions.h:720 A LuaFunctionDefinition is derived from FunctionDefinition to define a faudes-function by a Lua scrip... Definition: lbp_function.h:140 virtual void DoRead(TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) Read configuration data of this object from TokenReader. virtual void DoWriteCore(TokenWriter &rTw) const Write configuration data of this object to TokenWriter. virtual void DoReadCore(TokenReader &rTr) Read configuration data of this object from TokenReader. virtual void DoWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Write configuration data of this object to TokenWriter. static void Register(const std::string &rFilename) A LuaFunction is a faudes-function that executes a luafaudes script. Definition: lbp_function.h:677 void Definition(const FunctionDefinition *fdef) Set function definition. virtual void DoExecute() Executes code as supplied by FunctionDefinition. virtual bool DoTypeCheck(int n) Method to test the type of an assigned parameter with the specified faudes::Signature (i.... const LuaFunctionDefinition * pLuaFuncDef Typed reference to definition. Definition: lbp_function.h:869 virtual void DoVariant(int n) const LuaFunctionDefinition * Definition(void) const Get function definition. Type * Global(const std::string &gname, const Type *fdata=0) Get/set global data. static Type * Global(lua_State *pLL, const std::string &gname, const Type *fdata=0) Get/set global data. static void Evaluate(lua_State *pLL, const std::string &expr) Evaluate Lua expression. static void Push(lua_State *pLL, const Type *fdata) Push faudes typed object on the Lua stack. void Install(const std::string &rFilename) Install LuaExtension to Lua state. void Close(void) void Open(void) std::list< std::string > Complete(const std::string &word) Complete Lua identifier. static std::list< std::string > Complete(lua_State *pLL, const std::string &word) Complete Lua identifier. A TokenReader reads sequential tokens from a file or string. Definition: cfl_tokenreader.h:64 A TokenWriter writes sequential tokens to a file, a string or stdout. Definition: cfl_tokenwriter.h:52 Base class of all libFAUDES objects that participate in the run-time interface. Definition: cfl_types.h:239 Includes all libFAUDES headers, no plugins. static void Install(lua_State *pLL, const std::string &rFilename) Install LuaExtension to Lua state. libFAUDES 2.32f --- 2024.12.22 --- c++ api documentaion by doxygen |