31 enum das_selfmt{bool_t, int_t, real_t, string_t, timept_t};
38 #define XLATE_GE_LT 0x08
41 #define SHOW_DEFAULT 0x10
44 typedef struct das_selector_t{
57 const char** psBounds;
84 const char* sOp,
const char* sDefault);
86 const char* das_selstr(
const DasSelector* pSel,
const char* sOp,
87 const char* sDefault);
93 const char* sOp,
int nDefault);
95 int das_selint(
const DasSelector* pSel,
const char* sOp,
int nDefault);
103 bool das_selbool(
const DasSelector* pSel,
bool bDefault);
111 const char* sOp,
double rDefault);
122 int* yr,
int* mon,
int* dom,
int* doy,
int* hr,
int* min,
double* sec);
124 void das_seltime(
const DasSelector* pSel,
const char* sOp,
int* yr,
int* mon,
125 int* dom,
int* doy,
int* hr,
int* min,
double* sec);
142 const char* sDefault);
144 const char* das_selenum(
const DasSelector* pSel,
const char* sDefault);
149 #define DAS_OUT_DISABLE 0x0200
154 typedef struct das_output_t{
166 const char** psDepends;
169 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
const char * das_progname()
Get the program basename Only works after das_parsecmdline() has been called.
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.
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.
const char * das_get_selenum(const DasSelector *pSels, const char *sKey, const char *sDefault)
A short form of das_getstr for enumeration selectors.
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:31
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.
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.
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_outunit(const DasOutput *pOut)
Get the units for an output.
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.
Das 1 Compatability Utilities.
A basic statement of output is needed to help with output resolution reduction.
Definition: cli.h:153
Holds a single data selection query parameter.
Definition: cli.h:43
Basic date-time structure used throughout the Das1 & Das2 utilities.
Definition: time.h:43