24 #include <lal/LALDatatypes.h>
25 #include <lal/StringInput.h>
107 typedef struct tagLALParsedDataFile {
124 #define DECLARE_XLALREADCONFIGVARIABLE(TYPE,CTYPE) \
125 int XLALReadConfig ##TYPE## Variable ( CTYPE *varp, LALParsedDataFile *cfgdata, const CHAR *secName, const CHAR *varName, BOOLEAN *wasRead )
UINT4Vector * XLALConfigFileGetUnreadEntries(const LALParsedDataFile *cfgdata)
Return a list of unread config-file entries, NULL if none found (without error).
int XLALParseDataFileContent(LALParsedDataFile **cfgdata, const CHAR *string)
int XLALParseDataFile(LALParsedDataFile **cfgdata, const CHAR *fname)
Parse an ASCII data-file into a pre-cleaned array of lines.
#define DECLARE_XLALREADCONFIGVARIABLE(TYPE, CTYPE)
int XLALConfigSectionExists(const LALParsedDataFile *, const CHAR *)
Function to determine whether a given section secName exists in the parsed config-file contents cfgda...
LALStringVector * XLALListConfigFileSections(const LALParsedDataFile *cfgdata)
Function to find all sections in given config-file contents cfgdata.
void XLALDestroyParsedDataFile(LALParsedDataFile *cfgdata)
Free memory associated with a LALParsedDataFile structure.
unsigned char BOOLEAN
Boolean logical type, see Headers LAL(Atomic)Datatypes.h for more details.
uint64_t UINT8
Eight-byte unsigned integer; on some platforms this is equivalent to unsigned long int instead.
double REAL8
Double precision real floating-point number (8 bytes).
int64_t INT8
Eight-byte signed integer; on some platforms this is equivalent to long int instead.
char CHAR
One-byte signed integer, see Headers LAL(Atomic)Datatypes.h for more details.
uint32_t UINT4
Four-byte unsigned integer.
int32_t INT4
Four-byte signed integer.
This structure is returned by XLALParseDataFile() and holds the contents of an ASCII data-file in a p...
TokenList * lines
list of pre-parsed data-file lines
BOOLEAN * wasRead
keep track of successfully read lines
Vector of type CHAR*, ie 'strings', see DATATYPE-Vector types for more details.
Epoch relative to GPS epoch, see LIGOTimeGPS type for more details.
This structure stores a number of null-terminated strings of arbitrary length.
Vector of type UINT4, see DATATYPE-Vector types for more details.