formatter.h File Reference


Detailed Description

Common functions for commandline tools.

#include <dballe/core/error.h>

Go to the source code of this file.

Functions

dba_err dba_formatter_describe_level (int ltype, int l1, int l2, char **buf)
 Describe a level layer.
dba_err dba_formatter_describe_trange (int ptype, int p1, int p2, char **buf)
 Describe a time range.


Function Documentation

dba_err dba_formatter_describe_level ( int  ltype,
int  l1,
int  l2,
char **  buf 
)

Describe a level layer.

Parameters:
ltype The layer type
l1 The l1 value for the layer
l2 The l2 value for the layer
Return values:
buf The formatted layer description, on a newly allocated string. It is the responsibility of the caller to deallocate the string.
Returns:
The error indicator for the function (See error.h)

dba_err dba_formatter_describe_trange ( int  ptype,
int  p1,
int  p2,
char **  buf 
)

Describe a time range.

Parameters:
ptype The time range type
p1 The p1 value for the time range
p2 The p2 value for the time range
Return values:
buf The formatted time range description, on a newly allocated string. It is the responsibility of the caller to deallocate the string.
Returns:
The error indicator for the function (See error.h)


Generated on Fri Jun 22 14:45:47 2007 for libdballe-msg by  doxygen 1.5.2