Core access functions
[Runtime module API]


Detailed Description

Most module function use core library functions and variables.

Use these macros to access the core library and other global module variables.


Defines

#define gl_find_module   (*callback->module_find)
#define gl_findfile   (*callback->file.find_file)
 Provide file search function.
#define gl_get_module_var   (*callback->get_module_var)
 Provides access to a global module variable.
#define set_callback(CT)   (callback=(CT))
 Defines the callback table for the module.


Define Documentation

#define gl_findfile   (*callback->file.find_file)

Provide file search function.

See also:
find_file()

Definition at line 300 of file gridlabd.h.

Referenced by check(), get_ftable(), import_cdf(), climate::init(), csv::open(), and tmy2_reader::open().

#define gl_get_module_var   (*callback->get_module_var)

Provides access to a global module variable.

See also:
global_getvar(), global_setvar()

Definition at line 295 of file gridlabd.h.

#define set_callback ( CT   )     (callback=(CT))

Defines the callback table for the module.

Callback function provide module with direct access to important core functions.

See also:
struct s_callback

Definition at line 290 of file gridlabd.h.

Referenced by init().


GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy