|
libdballe 4.0.18
|
Common functions for commandline tools. More...
#include <dballe/core/error.h>Go to the source code of this file.
Functions | |
| dba_err | dba_formatter_describe_level (int ltype, int l1, char **buf) |
| Describe a level layer. | |
| dba_err | dba_formatter_describe_level_or_layer (int ltype1, int l1, int ltype2, int l2, char **buf) |
| Describe a level or a layer. | |
| dba_err | dba_formatter_describe_trange (int ptype, int p1, int p2, char **buf) |
| Describe a time range. | |
Common functions for commandline tools.
| dba_err dba_formatter_describe_level | ( | int | ltype, |
| int | l1, | ||
| char ** | buf | ||
| ) |
Describe a level layer.
| ltype | The level type |
| l1 | The l1 value for the level |
| buf | The formatted layer description, on a newly allocated string. It is the responsibility of the caller to deallocate the string. |
| dba_err dba_formatter_describe_level_or_layer | ( | int | ltype1, |
| int | l1, | ||
| int | ltype2, | ||
| int | l2, | ||
| char ** | buf | ||
| ) |
Describe a level or a layer.
| ltype1 | The type of the first level |
| l1 | The value of the first level |
| ltype2 | The type of the second level |
| l2 | The value of the second level |
| buf | The formatted layer description, on a newly allocated string. It is the responsibility of the caller to deallocate the string. |
References DBA_RUN_OR_GOTO.
| dba_err dba_formatter_describe_trange | ( | int | ptype, |
| int | p1, | ||
| int | p2, | ||
| char ** | buf | ||
| ) |
Describe a time range.
| ptype | The time range type |
| p1 | The p1 value for the time range |
| p2 | The p2 value for the time range |
| buf | The formatted time range description, on a newly allocated string. It is the responsibility of the caller to deallocate the string. |
1.7.4