Provides functions for manipulating the LAL structures that correspond to the LIGO metadata database tables defined in LIGOMetadataTables.h. More...
Provides functions for manipulating the LAL structures that correspond to the LIGO metadata database tables defined in LIGOMetadataTables.h.
This header provides prototypes for routines that perform processing on the LAL structures that correspond to the LIGO metadata database tables defined in LIGOMetadataTables.h, such as sorting and eliminating duplictaes. The functions specific to a particular metadata table (e.g. sngl_inspiral
, sngl_burst
, etc.) are all prototyped in this header.
None.
Definition in file LIGOMetadataUtils.h.
Go to the source code of this file.
ProcessTable* XLALCreateProcessTableRow | ( | void | ) |
Create a ProcessTable structure.
Definition at line 52 of file processtable.c.
ProcessTable* XLALDestroyProcessTableRow | ( | ProcessTable * | row | ) |
Destroy a ProcessTable structure.
Definition at line 83 of file processtable.c.
void XLALDestroyProcessTable | ( | ProcessTable * | head | ) |
Destroy a ProcessTable linked list.
Definition at line 94 of file processtable.c.
long XLALProcessTableGetNextID | ( | ProcessTable * | head | ) |
Return the next available process ID.
Definition at line 104 of file processtable.c.
int XLALPopulateProcessTable | ( | ProcessTable * | ptable, |
const char * | program_name, | ||
const char * | cvs_revision, | ||
const char * | cvs_source, | ||
const char * | cvs_date, | ||
long | process_id | ||
) |
Populate a pre-allocated ProcessTable structure.
Definition at line 220 of file processtable.c.
ProcessParamsTable* XLALCreateProcessParamsTableRow | ( | const ProcessTable * | process | ) |
Create a ProcessParamsTable structure.
Definition at line 40 of file process_params.c.
ProcessParamsTable* XLALDestroyProcessParamsTableRow | ( | ProcessParamsTable * | row | ) |
Destroy a ProcessParamsTable structure.
Definition at line 66 of file process_params.c.
void XLALDestroyProcessParamsTable | ( | ProcessParamsTable * | head | ) |
Destroy a ProcessParamsTable linked list.
Definition at line 79 of file process_params.c.
TimeSlide* XLALCreateTimeSlide | ( | void | ) |
Create a TimeSlide structure.
Definition at line 40 of file time_slide.c.
Destroy a TimeSlide structure.
Definition at line 62 of file time_slide.c.
void XLALDestroyTimeSlideTable | ( | TimeSlide * | head | ) |
Destroy a TimeSlide linked list.
Definition at line 75 of file time_slide.c.
const TimeSlide* XLALTimeSlideConstGetByIDAndInstrument | ( | const TimeSlide * | time_slide, |
long | time_slide_id, | ||
const char * | instrument | ||
) |
Find and return the address of the first element in the linked list of TimeSlide objects whose time_slide_id and instrument name equal the values given.
TimeSlide elements whose instrument pointer is NULL are skipped. Returns NULL if no matching row is found. This version is for a linked list of const pointers, and returns a const pointer. See also XLALTimeSlideGetByIDAndInstrument().
Definition at line 92 of file time_slide.c.
TimeSlide* XLALTimeSlideGetByIDAndInstrument | ( | TimeSlide * | time_slide, |
long | time_slide_id, | ||
const char * | instrument | ||
) |
Find and return the address of the first element in the linked list of TimeSlide objects whose time_slide_id and instrument name equal the values given.
TimeSlide elements whose instrument pointer is NULL are skipped. Returns NULL if no matching row is found. This version is for a linked list of non-const pointers, and returns a non-const pointer. See also XLALTimeSlideConstGetByIDAndInstrument(). NOTE: neither version modifies the TimeSlide rows; the two versions are identical, they are provided to allow the const'ness to be passed through the function.
Definition at line 114 of file time_slide.c.
SearchSummaryTable* XLALCreateSearchSummaryTableRow | ( | const ProcessTable * | process | ) |
Create a SearchSummaryTable structure.
Definition at line 41 of file search_summary.c.
SearchSummaryTable* XLALDestroySearchSummaryTableRow | ( | SearchSummaryTable * | row | ) |
Destroy a SearchSummaryTable structure.
Definition at line 71 of file search_summary.c.
void XLALDestroySearchSummaryTable | ( | SearchSummaryTable * | head | ) |
Destroy a SearchSummaryTable linked list.
Definition at line 84 of file search_summary.c.
SegmentTable* XLALCreateSegmentTableRow | ( | const ProcessTable * | process | ) |
Create a SegmentTable structure.
SegmentTable* XLALDestroySegmentTableRow | ( | SegmentTable * | row | ) |
void XLALDestroySegmentTable | ( | SegmentTable * | head | ) |
SnglInspiralTable* XLALCreateSnglInspiralTableRow | ( | const ProcessTable * | process | ) |
Create a SnglInspiralTable structure.
Definition at line 40 of file sngl_inspiral.c.
SnglInspiralTable* XLALDestroySnglInspiralTableRow | ( | SnglInspiralTable * | row | ) |
Destroy a SnglInspiralTable structure.
Definition at line 64 of file sngl_inspiral.c.
void XLALDestroySnglInspiralTable | ( | SnglInspiralTable * | head | ) |
Destroy a SnglInspiralTable linked list.
Definition at line 75 of file sngl_inspiral.c.
SimInspiralTable* XLALCreateSimInspiralTableRow | ( | const ProcessTable * | process | ) |
Create a SimInspiralTable structure.
Definition at line 40 of file sim_inspiral.c.
SimInspiralTable* XLALDestroySimInspiralTableRow | ( | SimInspiralTable * | row | ) |
Destroy a SimInspiralTable structure.
Definition at line 67 of file sim_inspiral.c.
void XLALDestroySimInspiralTable | ( | SimInspiralTable * | head | ) |
Destroy a SimInspiralTable linked list.
Definition at line 80 of file sim_inspiral.c.
SnglRingdownTable* XLALCreateSnglRingdownTableRow | ( | const ProcessTable * | process | ) |
Create a SnglRingdownTable structure.
Definition at line 40 of file sngl_ringdown.c.
SnglRingdownTable* XLALDestroySnglRingdownTableRow | ( | SnglRingdownTable * | row | ) |
Destroy a SnglRingdownTable structure.
Definition at line 65 of file sngl_ringdown.c.
void XLALDestroySnglRingdownTable | ( | SnglRingdownTable * | head | ) |
Destroy a SnglRingdownTable linked list.
Definition at line 78 of file sngl_ringdown.c.
SimRingdownTable* XLALCreateSimRingdownTableRow | ( | const ProcessTable * | process | ) |
Create a SimRingdownTable structure.
Definition at line 40 of file sim_ringdown.c.
SimRingdownTable* XLALDestroySimRingdownTableRow | ( | SimRingdownTable * | row | ) |
Destroy a SimRingdownTable structure.
Definition at line 65 of file sim_ringdown.c.
void XLALDestroySimRingdownTable | ( | SimRingdownTable * | head | ) |
Destroy a SimRingdownTable linked list.
Definition at line 78 of file sim_ringdown.c.
SnglBurst* XLALCreateSnglBurst | ( | void | ) |
Create a SnglBurst structure.
Definition at line 40 of file sngl_burst.c.
Free a SnglBurst.
Definition at line 70 of file sngl_burst.c.
void XLALDestroySnglBurstTable | ( | SnglBurst * | head | ) |
Free a SnglBurst linked list.
Definition at line 81 of file sngl_burst.c.
SimBurst* XLALCreateSimBurst | ( | void | ) |
Create a SimBurst structure.
Definition at line 40 of file sim_burst.c.
Destroy a SimBurst structure.
Definition at line 73 of file sim_burst.c.
void XLALDestroySimBurstTable | ( | SimBurst * | head | ) |
Destroy a SimBurst linked list.
Definition at line 84 of file sim_burst.c.
int XLALCountProcessTable | ( | ProcessTable * | head | ) |
Count and return the number of rows in the linked list.
Definition at line 117 of file processtable.c.
int XLALCountProcessParamsTable | ( | ProcessParamsTable * | head | ) |
Count the number of rows in a ProcessParamsTable linked the list.
Definition at line 91 of file process_params.c.
long XLALSimInspiralAssignIDs | ( | SimInspiralTable * | head, |
long | process_id, | ||
long | simulation_id | ||
) |
Assign simulation_id values to the entries in a SimInspiral linked list.
All SimInspiral rows in the list will be blamed on the given process_id, and assigned sequential simulation_ids starting with the given simulation_id. The return value is the next simulation_id after the last one assigned to a row in the list.
Definition at line 97 of file sim_inspiral.c.
long XLALSnglBurstAssignIDs | ( | SnglBurst * | head, |
long | process_id, | ||
long | event_id | ||
) |
Assign event_id values to the entries in a SnglBurst linked list.
All SnglBurst rows in the list will be blamed on the given process_id, and assigned sequential event_ids starting with the given event_id. The return value is the next event_id after the last one assigned to a row in the list.
Definition at line 307 of file sngl_burst.c.
long XLALSimBurstAssignIDs | ( | SimBurst * | sim_burst, |
long | process_id, | ||
long | time_slide_id, | ||
long | simulation_id | ||
) |
Assign simulation_id values to the entries in a sim_burst linked list.
All sim_burst rows in the list will be blamed on the given process_id, and assigned simulation_ids in order starting with the given simulation_id. The return value is the next simulation_id after the last one assigned to a row in the list.
Definition at line 388 of file sim_burst.c.
void XLALReturnIFO | ( | char * | ifo, |
InterferometerNumber | IFONumber | ||
) |
Definition at line 63 of file LIGOMetadataUtils.c.
void XLALReturnDetector | ( | LALDetector * | det, |
InterferometerNumber | IFONumber | ||
) |
Definition at line 104 of file LIGOMetadataUtils.c.
int XLALCompareSearchSummaryByOutTime | ( | const void * | a, |
const void * | b | ||
) |
Definition at line 93 of file search_summary.c.
int XLALTimeSortSearchSummary | ( | SearchSummaryTable ** | summHead, |
int(*)(const void *, const void *) | comparfunc | ||
) |
Definition at line 127 of file search_summary.c.
SearchSummaryTable* XLALIfoScanSearchSummary | ( | SearchSummaryTable * | input, |
CHAR * | ifos | ||
) |
Scan through a linked list of search_summary row objects and copy rows whose ifos match the given string into a new linked list, and return the address of the first entry in the new list.
Returns NULL if no matching rows are found, or if an error occured (out of memory). Use XLAL error functions to check for an error status code if it matters which condition occured.
Definition at line 175 of file search_summary.c.