55#include <lal/FileIO.h>
56#include <lal/LALMalloc.h>
57#include <lal/LIGOLwXML.h>
58#include <lal/XLALError.h>
135 const char* dataSource,
136 const char* dataDescription,
139 const char* extension
145 if (!
filename || !dataSource || !dataDescription ||
146 !gpsStartTime || !gpsEndTime || !extension)
150 if ( strchr(dataSource,
'-') || strchr(dataDescription,
'-'))
163 snprintf(
filename, size,
"%s-%s-%d-%d.%s",
164 dataSource, dataDescription, gpsStartTime->
gpsSeconds,
165 gpsDuration, extension );
int XLALCloseLIGOLwXMLFile(LIGOLwXMLStream *xml)
Close an XML stream.
LIGOLwXMLStream * XLALOpenLIGOLwXMLFile(const char *path)
Open an XML file for writing.
int XLALCreateLIGODataFileName(char *filename, size_t size, const char *dataSource, const char *dataDescription, const LIGOTimeGPS *gpsStartTime, const LIGOTimeGPS *gpsEndTime, const char *extension)
Creates a XML filename accordingly to document T050017.
int XLALFileClose(LALFILE *file)
LALFILE * XLALFileOpen(const char *path, const char *mode)
int XLALFilePuts(const char *s, LALFILE *file)
void * XLALMalloc(size_t n)
#define XLAL_ERROR_NULL(...)
int XLALPrintError(const char *fmt,...) _LAL_GCC_PRINTF_FORMAT_(1
This structure contains the file stream and current table type for writing to LIGO lightweight XML fi...