![]() |
![]() |
![]() |
Gwyddion Module Library Reference Manual | ![]() |
---|
File Type Plug-insFile Type Plug-ins — Plug-in loading and/or saving third party data formats. |
When the plug-in is called with register
as
its first argument it should dump following information to standard
output (each on a separate line) and terminate:
These information correspond to similar file module information. All fields are case-sensitive. The supported operations line consists of a space-separated sublist from:
load |
save |
The file globs line consists of a space separated list of file globs
(not just extensions; note to Unix users: they are in fact GPatternSpec
globs, so character classes are not supported) of files the plug-in
claims it can read and/or
write. Note the plug-in proxy has a notion of file glob specificity
and prefers to give chance to the plug-in whose file glob is the most
specific if more than one match. So while it is possible to register
*.*
the effect is quite the opposite of getting
all files Gwyddion tries to open or write.
So the output of plugin acme_v5 when run as acme_v5 register could look:
1 2 3 4 |
acme_v5 ACME AFM Data Format v5 (*.ac5) *.ac5 *.acme5 load save |