Introduction to Library parts

Library parts support the sharing of functions and variables.

A Library part is a main logic part with multiple entry points. You can access a Library part by direct calls to the shared Library functions or by direct references to the shared Library variables.

EGL provides many system Libraries that contain common functions. You can also create your own Libraries of functions that you use frequently. The program uses stereotypes to specialize code for functions. The following stereotypes are available as part of the core EGL package:
BasicLibrary
Contains EGL-written functions and values for runtime use in other EGL logic parts. This is the most common type of Library. For more information, see BasicLibrary stereotype.
RUIPropertiesLibrary
Contains the linkage necessary to retrieve displayable text from external files; see RUIPropertiesLibrary stereotype.
NativeLibrary
Enables code migrated from Informix® 4GL to invoke a single, locally running DLL (dynamic link library, also sometimes called a driver). Most developers never use the NativeLibrary stereotype. For more information, see NativeLibrary stereotype.

Many properties that determine the behavior of your generated code are available to Libraries. The properties that are available depend on the stereotype of the Library. See Library properties and NativeLibrary properties.

An EGL Library is generated separately from the parts that use it. At run time, EGL loads the Library the first time you use it, and unloads it when the run unit ends. If a Library invokes another Library, the invoked Library remains in memory as long as the invoking Library does.


Feedback