jlpioutils.h

00001 /****************************************************************************************
00002                                           jlpioutils.h 
00003                                         ----------------
00004     copyright            : (C) 2006 Jean-Luc Perret - Pierre Mahé
00005     email                : jean-luc.perret@unine.ch - pierre.mahe@ensmp.fr
00006  ***************************************************************************************/
00007 
00008 /****************************************************************************************
00009  *                                                                                      *
00010  *      This program is free software; you can redistribute it and/or                   *
00011  *      modify it under the terms of the GNU Lesser General Public                      *
00012  *      License as published by the Free Software Foundation; either                    *
00013  *      version 2.1 of the License, or (at your option) any later version.              *
00014  *                                                                                      *
00015  *      This program is distributed in the hope that it will be useful,                 *
00016  *      but WITHOUT ANY WARRANTY; without even the implied warranty of                  *
00017  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU               *
00018  *      Lesser General Public License for more details.                                 *
00019  *                                                                                      *
00020  *      You should have received a copy of the GNU Lesser General Public                *
00021  *      License along with this library; if not, write to the Free Software             *
00022  *      Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA      *
00023  *                                                                                      *
00024  ****************************************************************************************/
00025 
00026 #ifndef JLPIOUTILS_H
00027 #define JLPIOUTILS_H
00028 
00029 #include <iostream>
00030 #include <string>
00031 #include <vector>
00032 
00033 #include <sys/types.h>
00034 #include <sys/stat.h>
00035 #include <dirent.h>
00036 
00037 
00038 using namespace std;
00039 
00043 class JLPIOUtils {
00044 public: 
00047         JLPIOUtils();
00048 
00051         ~JLPIOUtils();
00052 
00061         static void readDirectory( const string directoryLocation, vector< string > *result, string extension = "", long start = -1, long end = -1 );
00062 
00065         static string vectorToString(vector<float>* a, string separator = "\t");
00066         
00069         static string vectorToString(vector<double>* a, string separator = "\t");
00070 };
00071 
00072 #endif

Generated on Wed Nov 28 12:12:51 2007 for ChemCpp by  doxygen 1.4.6