62 typedef struct datum_t {
115 typedef struct das_byteseq_t{
153 const das_datum* pThis,
char* sStr,
size_t uLen,
int nFracDigits
161 const das_datum* pThis,
char* sStr,
size_t uLen,
int nFracDigits
bool das_datum_wrapStr(das_datum *pTHis, const char *sStr, das_units units)
Wrap an external string as a datum.
A value and it's units.
Definition: datum.h:62
das_val_type
Enumeration of types stored in Das Array (DasAry) objects Not that any kind of value may be stored in...
Definition: value.h:51
bool das_datum_fromStr(das_datum *pThis, const char *sStr)
Initialize a numeric datum from a value and units string.
bool das_datum_fromDbl(das_datum *pThis, double value, das_units units)
Create a datum from a double value and units.
double das_datum_toDbl(const das_datum *pThis)
Get a datum value as a double.
bool das_datum_byteSeq(das_datum *pThis, das_byteseq seq, das_units units)
Wrap an external unknown type pointer as a datum.
Defines units used for items in the stream, most notably time units that reference an epoch and a ste...
char * das_datum_toStr(const das_datum *pThis, char *sStr, size_t uLen, int nFracDigits)
Write a UTF-8 string representation of a datum to a buffer.
A generic value type for use in arrays, datums and variables.
Basic date-time structure used throughout the Das1 & Das2 utilities.
Definition: time.h:47
char * das_datum_toStrValOnly(const das_datum *pThis, char *sStr, size_t uLen, int nFracDigits)
Same as das_datum_toStr, but never print the units.
const char * das_units
Enumeration of unit types, that correspond to physical unit types.
Definition: units.h:135