src/matrixmarket/basemtxreader.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           basemtxreader.h  -  description
00003                              -------------------
00004     begin                : Tue Dec 2 2003
00005     copyright            : (C) 2003 by Roman Geus
00006     email                : roman.geus@psi.ch
00007 ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef BASEMTXREADER_H
00019 #define BASEMTXREADER_H
00020 
00021 #include <iostream>
00022 #include "Epetra_CrsMatrix.h"
00023 #include "Epetra_Map.h"
00024 
00029 class BaseMtxReader
00030 {
00031 public:
00032     BaseMtxReader(string filename, const Epetra_Comm& Comm);
00033 
00034     BaseMtxReader(istream& istr, const Epetra_Comm& Comm);
00035 
00036     virtual ~BaseMtxReader();
00037 
00038     virtual Epetra_CrsMatrix * read() = 0;
00039 
00040 protected: // Protected attributes
00042     istream* _istr;
00044     bool _own_istr;
00046     const Epetra_Comm& _comm;
00047 };
00048 
00049 #endif

Generated on Fri Oct 26 13:35:12 2007 for FEMAXX (Finite Element Maxwell Eigensolver) by  doxygen 1.4.7