RBGen  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
RBGen_EpetraCrsMatrixFileIOHandler.h
1 #ifndef EPETRA_CRSMATRIX_FILE_IO_HANDLER_H
2 #define EPETRA_CRSMATRIX_FILE_IO_HANDLER_H
3 
4 
5 #include "RBGen_FileIOHandler.hpp"
6 
7 // Forward declaration of Epetra_MultiVector class
8 class Epetra_Operator;
9 
10 namespace RBGen {
11 
13  class EpetraCrsMatrixFileIOHandler : public virtual FileIOHandler< Epetra_Operator > {
14 
15  public:
17 
18 
21 
24 
26 
28 
29 
31 
32  void Reset() { isInit = false; };
33 
35 
37 
38 
40  Teuchos::RCP<Epetra_Operator> Read( const std::vector<std::string>& filenames );
41 
43 
45 
46 
48  void Write( const Teuchos::RCP<const Epetra_Operator>& MTX, const std::string& filename );
49 
51 
53 
55  bool isInitialized() const { return isInit; };
56 
58 
59  private:
60 
61  // Whether or not we know the file format.
62  bool isInit;
63 
64  // File input / output paths
65  std::string in_path, out_path;
66 
67  // ParameterList that this file handler was initialized with.
69 
70  };
71 
72 } // namespace RBGen
73 
74 #endif // EPETRA_CRSMATRIX_FILE_IO_HANDLER_H
75 
void Initialize(const Teuchos::RCP< Teuchos::ParameterList > &params)
Initialize file reader using.
FileIOHandler for reading EpetraCrsMatrix data from a file using EpetraExt.
void Write(const Teuchos::RCP< const Epetra_Operator > &MTX, const std::string &filename)
Method for writing one Epetra_CrsMatrix into a file using the same type as was.
bool isInitialized() const
Return initialized status of the handler.
Abstract base class for reading datasets from files.
Teuchos::RCP< Epetra_Operator > Read(const std::vector< std::string > &filenames)
Method for reading a file and constructing an Epetra_CrsMatrix.