34enum das_selfmt{bool_t, int_t, real_t, string_t, timept_t};
41#define XLATE_GE_LT 0x08
44#define SHOW_DEFAULT 0x10
47typedef struct das_selector_t{
60 const char** psBounds;
87 const char* sOp,
const char* sDefault);
89const char* das_selstr(
const DasSelector* pSel,
const char* sOp,
90 const char* sDefault);
96 const char* sOp,
int nDefault);
98int das_selint(
const DasSelector* pSel,
const char* sOp,
int nDefault);
106bool das_selbool(
const DasSelector* pSel,
bool bDefault);
114 const char* sOp,
double rDefault);
125 int* yr,
int* mon,
int* dom,
int* doy,
int* hr,
int* min,
double* sec);
127void das_seltime(
const DasSelector* pSel,
const char* sOp,
int* yr,
int* mon,
128 int* dom,
int* doy,
int* hr,
int* min,
double* sec);
145 const char* sDefault);
147const char* das_selenum(
const DasSelector* pSel,
const char* sDefault);
152#define DAS_OUT_DISABLE 0x0200
157typedef struct das_output_t{
169 const char** psDepends;
172 const char* sSummary;
232 DasOutput* pOuts,
const char* sDesc,
const char* sFooter);
240#define DAS_LL_CRIT 100
241#define DAS_LL_ERROR 80
242#define DAS_LL_WARN 60
243#define DAS_LL_INFO 40
244#define DAS_LL_DEBUG 20
245#define DAS_LL_TRACE 0
bool das_get_outenabled(const DasOutput *pOuts, const char *sKey)
Search for the enabled status for a named output.
double das_selreal(const DasSelector *pSel, const char *sOp, double rDefault)
Get a selection criteria from a particular selector as a double.
const char * das_progname()
Get the program basename Only works after das_parsecmdline() has been called.
bool das_outenabled(const DasOutput *pOut)
Get the enabled status for a given output.
int das_loglevel()
Get the log level.
void das_get_seldastime(const DasSelector *pSels, const char *sKey, const char *sOp, das_time *pDt)
Equivalent to das_get_seltime but uses the new das_time type from time.h.
void das_seldastime(const DasSelector *pSel, const char *sOp, das_time *pDt)
Equivalent to das_seltime but uses the new das_time type from time.h.
das_selfmt
An enumeration of das selector value types.
Definition cli.h:34
double das_outinterval(const DasOutput *pOut, double rDefault)
Get the interval setting for a given output.
bool das_get_selbool(const DasSelector *pSels, const char *sKey, bool bDefault)
Get a selection criteria as a boolean Only works for BOOLEAN format selectors.
int das_get_selint(const DasSelector *pSels, const char *sKey, const char *sOp, int nDefault)
Get the selection boundary as an integer This function only works for INTEGER parameter types.
void das_get_seltime(const DasSelector *pSels, const char *sKey, const char *sOp, int *yr, int *mon, int *dom, int *doy, int *hr, int *min, double *sec)
Parse the boundary value into a time tuple.
const char * das_get_selstr(const DasSelector *pSels, const char *sKey, const char *sOp, const char *sDefault)
Get the a selection boundary as a raw string.
double das_get_selreal(const DasSelector *pSels, const char *sKey, const char *sOp, double rDefault)
Search for a selection criteria, return boundary value as a double.
void das_parsecmdline(int nArgs, char **sArgs, DasSelector *pSels, DasOutput *pOuts, const char *sDesc, const char *sFooter)
Parse a Das 2.3 style commandline, with Das 2.1 support.
double das_get_outinterval(const DasOutput *pOuts, const char *sKey, double rDefault)
Search for the interval setting for a named output.
const char * das_get_selenum(const DasSelector *pSels, const char *sKey, const char *sDefault)
A short form of das_getstr for enumeration selectors.
Das 1 Compatibility Utilities.
A basic statement of output is needed to help with output resolution reduction.
Definition cli.h:156
Holds a single data selection query parameter.
Definition cli.h:46
Basic date-time structure used throughout the Das1 & Das2 utilities.
Definition time.h:43