

Go to the source code of this file.
Classes | |
| struct | _VlFileMeta |
| Support for command line drivers - Definition. More... | |
Typedefs | |
| typedef struct _VlFileMeta | VlFileMeta |
| File meta information type. | |
Functions | |
| static void | vl_file_meta_close (VlFileMeta *self) |
| Close the file associated to meta information. | |
| VL_INLINE int | vl_file_meta_get_double (VlFileMeta *self, double *x) |
| Read double from file. | |
| static int | vl_file_meta_open (VlFileMeta *self, char const *basename, char const *mode) |
| Open the file associated to meta information. | |
| static int | vl_file_meta_parse (VlFileMeta *self, char const *optarg) |
| Parse argument for file meta information. | |
| VL_INLINE int | vl_file_meta_put_double (VlFileMeta *self, double x) |
| Write double to file. | |
| VL_INLINE int | vl_file_meta_put_uint8 (VlFileMeta *self, vl_uint8 x) |
| Write uint8 to file. | |
| typedef struct _VlFileMeta VlFileMeta |
| static void vl_file_meta_close | ( | VlFileMeta * | self | ) | [static] |
Close the file associated to meta information.
| self | File meta information. |
Definition at line 145 of file generic-driver.h.
| VL_INLINE int vl_file_meta_get_double | ( | VlFileMeta * | self, |
| double * | x | ||
| ) |
Read double from file.
| self | File meta information. |
| x | Datum read. |
Definition at line 236 of file generic-driver.h.
| static int vl_file_meta_open | ( | VlFileMeta * | self, |
| char const * | basename, | ||
| char const * | mode | ||
| ) | [static] |
Open the file associated to meta information.
| self | File meta information. |
| basename | Basename. |
| mode | Opening mode (as in fopen). |
Definition at line 112 of file generic-driver.h.
| static int vl_file_meta_parse | ( | VlFileMeta * | self, |
| char const * | optarg | ||
| ) | [static] |
Parse argument for file meta information.
| optarg | argument to parse. |
| self | structure to initalize. |
The function parses the string optarg to fill the structure self. optarg is supposed to be composed of two parts: a file protocol specification and a file pattern. Then the function:
Definition at line 63 of file generic-driver.h.
| VL_INLINE int vl_file_meta_put_double | ( | VlFileMeta * | self, |
| double | x | ||
| ) |
Write double to file.
| self | File meta information. |
| x | Datum to write. |
Definition at line 164 of file generic-driver.h.
| VL_INLINE int vl_file_meta_put_uint8 | ( | VlFileMeta * | self, |
| vl_uint8 | x | ||
| ) |
Write uint8 to file.
| self | File meta information. |
| x | Datum to write. |
Definition at line 200 of file generic-driver.h.