Gwyfile Library
GwyfileItem Struct Reference

One piece of data in a GWY file. More...

Detailed Description

One piece of data in a GWY file.

GwyfileItem is an opaque structure representing one particular piece of data in a GWY file. It is also called ‘component’ in the user guide (but usually ‘item’ in Gwyddion code).

Data items are non-recyclable. Item name and type are set upon creation and fixed during its lifetime. Since a data item corresponds to a particular piece of data in the GWY file, if the same piece of data (for instance a string) occurs multiple times in the file, each has its own GwyfileItem.

Data items of different types are created using constructor function such as gwyfile_item_new_bool() or gwyfile_item_new_double().

If you derive the item name from external input, make sure it is valid.


The documentation for this struct was generated from the following file: