iLand
Public Member Functions | List of all members
BITE::Events Class Reference

#include <bitecellscript.h>

Public Member Functions

 Events ()
 
void clear ()
 clear the list of events More...
 
void setup (QJSValue &js_value, QStringList event_names, BiteAgent *agent)
 setup events from the javascript object More...
 
QString run (const QString event, BiteCell *cell=nullptr, QJSValueList *params=nullptr)
 execute javascript event /if registered) in the context of the forest stand 'stand'. More...
 
bool hasEvent (const QString &event) const
 returns true, if the event 'event' is available. More...
 
QJSValue eventFunction (const QString &event)
 
QString dump ()
 prints some debug info More...
 

Constructor & Destructor Documentation

◆ Events()

BITE::Events::Events ( )
inline

Member Function Documentation

◆ clear()

void BITE::Events::clear ( )

clear the list of events

◆ dump()

QString BITE::Events::dump ( )

prints some debug info

◆ eventFunction()

QJSValue BITE::Events::eventFunction ( const QString &  event)
inline

◆ hasEvent()

bool BITE::Events::hasEvent ( const QString &  event) const

returns true, if the event 'event' is available.

◆ run()

QString BITE::Events::run ( const QString  event,
BiteCell cell = nullptr,
QJSValueList *  params = nullptr 
)

execute javascript event /if registered) in the context of the forest stand 'stand'.

◆ setup()

void BITE::Events::setup ( QJSValue &  js_value,
QStringList  event_names,
BiteAgent agent 
)

setup events from the javascript object


The documentation for this class was generated from the following files: