DUECA/DUSIME
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dueca::AddInitFunction Struct Reference

Helper struct to add an init function from initialization code. More...

#include <ScriptInterpret.hxx>

Public Member Functions

 AddInitFunction (const char *name, voidfunc ifunct, const char *parent=NULL)
 Constructor that remembers and adds the init function.
 

Detailed Description

Helper struct to add an init function from initialization code.

Use by creating an init function, and a static object to run the initialisation. When the script language is initialized, the init functions are called to make classes and functions available.

void myinit()
{
// script init code
}
This is a "light weight object" that enables you to read the latest set of data on a StreamChannelEnd...
Definition StreamReaderLatest.hxx:43
Helper struct to add an init function from initialization code.
Definition ScriptInterpret.hxx:285

Constructor & Destructor Documentation

◆ AddInitFunction()

dueca::AddInitFunction::AddInitFunction ( const char * name,
voidfunc ifunct,
const char * parent = NULL )

Constructor that remembers and adds the init function.

Parameters
nameName of the class or function, as known to the script language.
ifunctInitialisation function.
parentParent class, if applicable. Information on the parent class is used to initialize classes in the right order.

The documentation for this struct was generated from the following file: