From: <ku...@us...> - 2003-02-06 00:43:38
|
Update of /cvsroot/basedb/basedb/src/lib In directory sc8-pr-cvs1:/tmp/cvs-serv4237/src/lib Added Files: Makefile.am basefile.cc Log Message: Added autoconf/automake functionality. Supports c/c++ compilation. --- NEW FILE: Makefile.am --- # $Id: Makefile.am,v 1.1 2003/02/06 00:43:35 kurri Exp $ noinst_LIBRARIES = libbase.a libbase_a_SOURCES = basefile.cc INCLUDES = -I@top_srcdir@/$(BASE_INCLUDE_LOCATION) --- NEW FILE: basefile.cc --- // $Id: basefile.cc,v 1.1 2003/02/06 00:43:35 kurri Exp $ // // BioArray Software Environment (BASE) - homepage http://base.thep.lu.se/ // Copyright (C) 2002 Lao Saal, Carl Troein, Johan Vallon-Christersson // // This file is part of BASE. // // BASE is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // // BASE is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software [...206 lines suppressed...] int subSects = sect.subSections; while(subSects--) { if(!readSection(sect)) return false; if(!skipSection(sect)) return false; } return true; } bool BaseFileReader::readLines(vector<string> &vec) { dataEnd = false; // Kludge for compatibility. if(!readLine()) return false; while(!dataEnd) { vec.push_back(&buf[0]); if(!readLine()) return false; } return true; } |