GTXclient C API GTXserver-16.0.2

- Main Page
- Related Pages
- Data Structures
- Files
- Examples

# Examples written in C

Once compiled and linked, these examples can be run at the shell prompt. All of them are clients for the GTXserver. Each client will either run a new server or connect to an existing one depending on command line arguments and or choices in the interface when possible (motif_client for example).

## text_list.c example:

text_list.c example dumps all Isatis studies, directories, files and variables.

This is a simple C program with no user interactions.

## text_client.c example:

text_client.c example is more difficult to understand as it is menu driven. The user asks for a connection, selects a study, a directory... and retrieves information on the variables of his choice.

## motif_client.c example:

motif_client.c example has a complete user interface but needs the Motif libraries to be built. Here again, the user chooses what he wants to read but in a friendlier way due to the Motif interface. The interface allows to run a local GTXserver or to connect to a pre-existing one.

## VendorData example:

This example will show you how to store specific data that are not handled directly by Isatis. For example you can use Vendor Data to store data between import and export phase to keep consistency. See vendor_data_read.c and vendor_data_write.c .

## write_files.c example:

This example will show you how to write standard files (Grid/Points/Lines) into Isatis file system. See write_files.c .

## write_fault.c example:

This example will show you how to write a grid and a fault associated to this file into the Isatis file system. See write_fault.c .

## read_polygon.c example:

This example will show you how to read polygon systems from the Isatis file system. See read_polygon.c .

## write_polygon.c example:

This example will show you how to write a polygon system to the Isatis file system. See write_polygon.c .

## write_color_scale.c example:

This example shows the Isatis 2013 access to palettes and color scales. See write_color_scale.c .