Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALMetaIO 4.0.6.1-ea7c608
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
time_slide.c File Reference

Prototypes

TimeSlideXLALCreateTimeSlide (void)
 Create a TimeSlide structure. More...
 
TimeSlideXLALDestroyTimeSlide (TimeSlide *row)
 Destroy a TimeSlide structure. More...
 
void XLALDestroyTimeSlideTable (TimeSlide *head)
 Destroy a TimeSlide linked list. More...
 
const TimeSlideXLALTimeSlideConstGetByIDAndInstrument (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. More...
 
TimeSlideXLALTimeSlideGetByIDAndInstrument (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. More...
 
TimeSlideXLALTimeSlideTableFromLIGOLw (const char *filename)
 Read the time_slide table from a LIGO Light Weight XML file into a linked list of TimeSlide structures. More...
 
int XLALWriteLIGOLwXMLTimeSlideTable (LIGOLwXMLStream *xml, const TimeSlide *time_slide)
 Write a time_slide table to an XML file. More...
 

Go to the source code of this file.

Function Documentation

◆ XLALCreateTimeSlide()

TimeSlide * XLALCreateTimeSlide ( void  )

Create a TimeSlide structure.

Definition at line 40 of file time_slide.c.

◆ XLALDestroyTimeSlide()

TimeSlide * XLALDestroyTimeSlide ( TimeSlide row)

Destroy a TimeSlide structure.

Definition at line 62 of file time_slide.c.

◆ XLALDestroyTimeSlideTable()

void XLALDestroyTimeSlideTable ( TimeSlide head)

Destroy a TimeSlide linked list.

Definition at line 75 of file time_slide.c.

◆ XLALTimeSlideConstGetByIDAndInstrument()

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.

◆ XLALTimeSlideGetByIDAndInstrument()

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.

◆ XLALTimeSlideTableFromLIGOLw()

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.

◆ XLALWriteLIGOLwXMLTimeSlideTable()

int XLALWriteLIGOLwXMLTimeSlideTable ( LIGOLwXMLStream xml,
const TimeSlide time_slide 
)

Write a time_slide table to an XML file.

Definition at line 222 of file time_slide.c.