Introduction to Library parts

You can use library parts to share functions and variables.

A Library part is a generatable logic part with multiple entry points. You can access a Library part by directly calling the shared Library functions or by directly referencing the shared Library variables.

In EGL there are many system Libraries that contain common functions. You can also create your own Libraries of functions that you use frequently. Stereotypes specialize code for functions. The following stereotypes are available as part of the core EGL package:
BasicLibrary
Contains EGL-written functions and values for run time use in other EGL logic parts. This is the most common type of Library. For more information, see BasicLibrary stereotype.
RUIPropertiesLibrary
Contains the linkage that is necessary to retrieve displayable text from external files; for more information, see RUIPropertiesLibrary stereotype.
NativeLibrary
Enables EGL-generated Java™ code to invoke a single, locally running dynamic link library (DLL), which is sometimes called a driver and is written in C language. For details, 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. For more information, see Library properties and NativeLibrary properties.

An EGL Library is generated separately from the parts that use it. Two cases apply:

Feedback