Print a Data Set
The CREATE program is the SDAI equivalent of the command "rose cat". It displays instances from a file on standard output. To keep things simple and clear, this command is non-recursive, and does not display the contents of aggregates. These features could be easily be added, however doing so would render the code less clear.
The C program has been set up so that it can be compiled with either ANSI or K&R C compilers.
Build Instructions
- Source the "Rose_Logicals" file to define environment variables.
Make sure you replace "/usr/steptools" with the ST-Developer
installation directory for your site.
% source /usr/steptools/Rose_Logicals % set path=($PATH $ROSE_BIN)
- Compile the program and link against the SDAI and ROSE libraries.
% cc -I$ROSE_INCLUDE printObject.c -L$ROSE_LIB -lsdai -lrose
- Run the program on a data file.
% a.out datafile.stp