|
OOP Syntax Elements |
Below is a list of some of the directives and functions used in the implementation of PxPlus object-oriented mechanisms.
|
Defines the object class. | |
|
Deletes class definition and all related information. | |
|
Deletes an object. | |
|
Declares functions or methods for the object. | |
|
Specifies other objects that this object inherits from. | |
|
Preloads a class definition into memory from a .pvc file. | |
|
Declares internal data/properties for the object. | |
|
Creates an object instance. | |
|
Opens a file for exclusive use in an object. | |
|
Sets default program precision for use within the object. | |
|
Defines the default program that contains the object logic. | |
|
Declares data/properties for the object. | |
|
Controls reference counts. | |
|
Change name of an existing class. | |
|
Dynamically declares LOCAL variables. |
System-supplied variables available while executing code on behalf of an object:
|
_Class$ |
Contains the name of the class for current object. |
|
_Obj |
Identifies internal object identifier of current object. |
|
_Refcnt |
Contains the reference count for this class of object. |
|
'_Type$ |
Internal property for PxPlus OOP objects that provides a list of the various combinations of parameter types for the objects methods/functions. Each reference to a function declaration with different calling parameters will be listed using '_Type$ with numeric parameters identified with an 'N' and strings with an 'S'. Arrays will contain '{ALL}' and functions declared with the '(*)' syntax will also be reported accordingly. Example: 0010 DEF CLASS "TypeTest" |