25 #ifndef AURORA_ACTIONSCRIPT_AVM_H 26 #define AURORA_ACTIONSCRIPT_AVM_H 28 #include <boost/function.hpp> 37 namespace ActionScript {
40 typedef boost::function<Variable(const Common::UString &, const Common::UString &)>
FSCommandFunction;
74 std::vector<Variable> arguments = std::vector<Variable>());
99 #endif // AURORA_ACTIONSCRIPT_AVM_H RegisterClassFunction _registerClass
void setReturnValue(Variable returnValue=Variable())
A class holding an UTF-8 string.
void storeRegister(Variable value, byte index)
A variable used in the execution context.
boost::function< void(const Common::UString &, ObjectPtr)> RegisterClassFunction
Function for registering classes for widgets.
Variable getVariable(const Common::UString &name)
Variable registerClass(AVM &avm)
void fsCommand(const Common::UString &name, const Common::UString &value)
fscommand is used for communicating with the host program.
Variable createNewObject(const Common::UString &name, std::vector< Variable > arguments=std::vector< Variable >())
std::map< Common::UString, Variable > _variables
void setFSCommandCallback(FSCommandFunction)
Set a callback for the fscommand() function.
boost::function< Variable(const Common::UString &, const Common::UString &)> FSCommandFunction
Function for receiving fscommand().
Abstract object which is inherited by every other class.
FSCommandFunction _fscommand
An action script variable.
std::vector< Variable > _registers
bool hasVariable(const Common::UString &name)
Check if a specific variable exists.
Variable getReturnValue()
Variable getRegister(byte index)
void setVariable(const Common::UString &name, Variable value)
Set a specific variable.
void setRegisterClassFunction(RegisterClassFunction)
Set a callback for the Object.registerClass() function.
The Action script virtual machine (AVM).