00001 /* 00002 * Copyright (C) 2008 Reinhard Prix 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with with program; see the file COPYING. If not, write to the 00016 * Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 00017 * MA 02111-1307 USA 00018 */ 00019 00020 /** 00021 * \author Reinhard Prix 00022 * \date 2008 00023 * \file 00024 * \ingroup factories 00025 * \brief Creation/destruction/manipulation API for 'StringVector' type objects, 00026 * which are just LAL 'vectors' of CHAR * pointers. 00027 * 00028 * $Id: StringVector.h,v 1.1 2008/02/22 16:11:07 reinhard Exp $ 00029 * 00030 */ 00031 00032 #ifndef _STRINGVECTOR_H /* Double-include protection. */ 00033 #define _STRINGVECTOR_H 00034 00035 /* C++ protection. */ 00036 #ifdef __cplusplus 00037 extern "C" { 00038 #endif 00039 00040 /*---------- INCLUDES ----------*/ 00041 #include <stdarg.h> 00042 00043 #include <lal/LALDatatypes.h> 00044 #include <lal/LALRCSID.h> 00045 00046 /*---------- DEFINES ----------*/ 00047 NRCSID( STRINGVECTORH, "$Id: StringVector.h,v 1.1 2008/02/22 16:11:07 reinhard Exp $" ); 00048 00049 /*----- Error-codes -----*/ 00050 /*---------- exported types ----------*/ 00051 /*---------- Global variables ----------*/ 00052 /*---------- exported prototypes [API] ----------*/ 00053 00054 LALStringVector *XLALCreateStringVector ( const CHAR *str1, ... ); 00055 LALStringVector *XLALAppendString2Vector (LALStringVector *vect, const CHAR *string ); 00056 void XLALDestroyStringVector ( LALStringVector *vect ); 00057 00058 int XLALSortStringVector (LALStringVector *strings); 00059 LALStringVector *XLALParseCSV2StringVector ( const CHAR *CSVlist ); 00060 00061 00062 #ifdef __cplusplus 00063 } 00064 #endif 00065 /* C++ protection. */ 00066 00067 #endif /* Double-include protection. */
1.5.2