Browse Prior Art Database

Data Structures made Accessible from Outside the Application

IP.com Disclosure Number: IPCOM000108996D
Original Publication Date: 1992-Jul-01
Included in the Prior Art Database: 2005-Mar-23
Document File: 2 page(s) / 61K

Publishing Venue

IBM

Related People

Beaty, KA: AUTHOR [+2]

Abstract

This article deals with the problem of making records or structures defined in applications using a compiled language known and useable outside the application. The definitions of the records and structures are normally lost during the compilation of the application, as it is not normally needed in a compiled, run-time environment. However, if trying to use these records and structures from external environments, it becomes important to be able to access the original definitions, as they provide the key to using the data records and structures.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 55% of the total text.

Data Structures made Accessible from Outside the Application

       This article deals with the problem of making records or
structures defined in applications using a compiled language known
and useable outside the application.  The definitions of the records
and structures are normally lost during the compilation of the
application, as it is not normally needed in a compiled, run-time
environment.  However, if trying to use these records and structures
from external environments, it becomes important to be able to access
the original definitions, as they provide the key to using the data
records and structures.

      To solve this problem, maintain the structure definition in a
table form that can be accessed from the outside.  This table must at
a minimum contain
      1.   The length of an instance, to be used when allocating new
data records and structures externally.
      2.   The definition of each field in the structure, i.e.
                 .  Field name
                 .  Field type
      Additional items may be added to the field definition part,
depending on the actual needs.  Some candidates for inclusion are:
                 .  Field description
                 .  Field repetition, needed for definitions of
arrays
                 .  Field default value
This definition can be generated almost automatically from the
underlying definition of...