Provides functions for reading LIGO lightweight XML files to LIGO metadata database tables. More...
Prototypes | |
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... | |
int | XLALLIGOLwHasTable (const char *filename, const char *table_name) |
Test a LIGO Light Weight XML file for the presence of a specific table. More... | |
ProcessTable * | XLALProcessTableFromLIGOLw (const char *filename) |
Read the process table from a LIGO Light Weight XML file into a linked list of ProcessTable structures. More... | |
ProcessParamsTable * | XLALProcessParamsTableFromLIGOLw (const char *filename) |
Read the process_params table from a LIGO Light Weight XML file into a linked list of ProcessParamsTable structures. More... | |
TimeSlide * | XLALTimeSlideTableFromLIGOLw (const char *filename) |
Read the time_slide table from a LIGO Light Weight XML file into a linked list of TimeSlide structures. More... | |
SnglInspiralTable * | XLALSnglInspiralTableFromLIGOLw (const char *fileName) |
Read the sngl_inspiral table from a LIGO Light Weight XML file into a linked list of SnglInspiralTable structures. More... | |
SimInspiralTable * | XLALSimInspiralTableFromLIGOLw (const char *fileName) |
Read the sim_inspiral table from a LIGO Light Weight XML file into a linked list of SimInspiralTable structures. More... | |
SnglRingdownTable * | XLALSnglRingdownTableFromLIGOLw (const char *fileName) |
Read the sngl_ringdown table from a LIGO Light Weight XML file into a linked list of SnglRingdownTable structures. More... | |
SimRingdownTable * | XLALSimRingdownTableFromLIGOLw (const char *fileName) |
Read the sim_ringdown table from a LIGO Light Weight XML file into a linked list of SimRingdownTable structures. More... | |
SnglBurst * | XLALSnglBurstTableFromLIGOLw (const char *filename) |
Read the sngl_burst table from a LIGO Light Weight XML file into a linked list of SnglBurst structures. More... | |
SimBurst * | XLALSimBurstTableFromLIGOLw (const char *filename) |
Read the sim_burst table from a LIGO Light Weight XML file into a linked list of SimBurst structures. More... | |
SearchSummaryTable * | XLALSearchSummaryTableFromLIGOLw (const char *fileName) |
Read the search_summary table from a LIGO Light Weight XML file into a linked list of SearchSummaryTable structures. More... | |
Provides functions for reading LIGO lightweight XML files to LIGO metadata database tables.
Definition in file LIGOLwXMLRead.h.
Go to the source code of this file.
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.
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.
ProcessTable * XLALProcessTableFromLIGOLw | ( | const char * | filename | ) |
Read the process table from a LIGO Light Weight XML file into a linked list of ProcessTable structures.
Definition at line 345 of file processtable.c.
ProcessParamsTable * XLALProcessParamsTableFromLIGOLw | ( | const char * | filename | ) |
Read the process_params table from a LIGO Light Weight XML file into a linked list of ProcessParamsTable structures.
Definition at line 108 of file process_params.c.
TimeSlide * XLALTimeSlideTableFromLIGOLw | ( | const char * | filename | ) |
Read the time_slide table from a LIGO Light Weight XML file into a linked list of TimeSlide structures.
Definition at line 129 of file time_slide.c.
SnglInspiralTable * XLALSnglInspiralTableFromLIGOLw | ( | const char * | fileName | ) |
Read the sngl_inspiral table from a LIGO Light Weight XML file into a linked list of SnglInspiralTable structures.
Definition at line 86 of file sngl_inspiral.c.
SimInspiralTable * XLALSimInspiralTableFromLIGOLw | ( | const char * | fileName | ) |
Read the sim_inspiral table from a LIGO Light Weight XML file into a linked list of SimInspiralTable structures.
Definition at line 115 of file sim_inspiral.c.
SnglRingdownTable * XLALSnglRingdownTableFromLIGOLw | ( | const char * | fileName | ) |
Read the sngl_ringdown table from a LIGO Light Weight XML file into a linked list of SnglRingdownTable structures.
Definition at line 91 of file sngl_ringdown.c.
SimRingdownTable * XLALSimRingdownTableFromLIGOLw | ( | const char * | fileName | ) |
Read the sim_ringdown table from a LIGO Light Weight XML file into a linked list of SimRingdownTable structures.
Definition at line 91 of file sim_ringdown.c.
SnglBurst * XLALSnglBurstTableFromLIGOLw | ( | const char * | filename | ) |
Read the sngl_burst table from a LIGO Light Weight XML file into a linked list of SnglBurst structures.
Definition at line 92 of file sngl_burst.c.
SimBurst * XLALSimBurstTableFromLIGOLw | ( | const char * | filename | ) |
Read the sim_burst table from a LIGO Light Weight XML file into a linked list of SimBurst structures.
Definition at line 95 of file sim_burst.c.
SearchSummaryTable * XLALSearchSummaryTableFromLIGOLw | ( | const char * | fileName | ) |
Read the search_summary table from a LIGO Light Weight XML file into a linked list of SearchSummaryTable structures.
Definition at line 211 of file search_summary.c.