From: <ku...@us...> - 2003-02-06 00:43:38
|
Update of /cvsroot/basedb/basedb/src/assayImporter In directory sc8-pr-cvs1:/tmp/cvs-serv4237/src/assayImporter Added Files: Makefile.am assayImporter.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 $ bin_PROGRAMS = assayImporter assayImporter_SOURCES = assayImporter.cc assayImporter_LDADD = -L@top_srcdir@/$(BASE_LIB_LOCATION) $(BASE_LIB) INCLUDES = -I@top_srcdir@/$(BASE_INCLUDE_LOCATION) --- NEW FILE: assayImporter.cc --- // $Id: assayImporter.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 [...144 lines suppressed...] if(argc != 3) { cerr << "Syntax: assayImporter datafile channels " "<translationfile >tabfile\n"; return 1; } ifstream datain(argv[1]); if(!datain) { cerr << "Unable to open input file '" << argv[1] << "'\n"; return 1; } int channels = atoi(argv[2]); if(channels < 1 || channels > 100) { cerr << "Strange number of channels ("<<channels<<")\n"; return 1; } return assayImport(datain, cin, channels) ? 0 : 1; } |