Routines to read tabular data from LIGO lightweight XML files. More...
Prototypes | |
int | XLALLIGOLwHasTable (const char *filename, const char *table_name) |
Test a LIGO Light Weight XML file for the presence of a specific table. More... | |
int | XLALLIGOLwFindColumn (struct MetaioParseEnvironment *env, const char *name, unsigned int type, int required) |
Convenience wrapper for MetaioFindColumn(), translating to XLAL-style error reporting and printing useful error messages on failure. More... | |
long long | XLALLIGOLwParseIlwdChar (const struct MetaioParseEnvironment *env, int column_number, const char *ilwd_char_table_name, const char *ilwd_char_column_name) |
Convenience function to extract the integer part of an ilwd:char ID string with some error checking. More... | |
Routines to read tabular data from LIGO lightweight XML files.
None.
%% Any relevant notes.
Definition in file LIGOLwXMLRead.c.
Go to the source code of this file.
int XLALLIGOLwHasTable | ( | const char * | filename, |
const char * | table_name | ||
) |
Test a LIGO Light Weight XML file for the presence of a specific table.
Returns > 0 if the document contains the table, 0 if the document does not contain the table, and < 0 on error.
BUGS:
Definition at line 85 of file LIGOLwXMLRead.c.
int XLALLIGOLwFindColumn | ( | struct MetaioParseEnvironment * | env, |
const char * | name, | ||
unsigned int | type, | ||
int | required | ||
) |
Convenience wrapper for MetaioFindColumn(), translating to XLAL-style error reporting and printing useful error messages on failure.
Returns the integer index of the column, or a negative integer if the column is not found or has the wrong type. If required is non-zero, then an XLAL error is reported if the column is missing, but if required is zero then no error is generated for missing columns. When a column is found, it's type is checked and an XLAL error is reported if it does not match the requested type. Passing METAIO_TYPE_UNKNOWN disables the column type test.
Definition at line 136 of file LIGOLwXMLRead.c.
long long XLALLIGOLwParseIlwdChar | ( | const struct MetaioParseEnvironment * | env, |
int | column_number, | ||
const char * | ilwd_char_table_name, | ||
const char * | ilwd_char_column_name | ||
) |
Convenience function to extract the integer part of an ilwd:char ID string with some error checking.
If either of ilwd_char_table_name or ilwd_char_column_name is not NULL, then the corresponding portion of the ilwd:char string must match it exactly. The return value is the recovered integer suffix or < 0 on failure.
Definition at line 168 of file LIGOLwXMLRead.c.