RBGen  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
RBGen_FileIOHandler.hpp
1 #ifndef RBGEN_FILE_IO_HANDLER_HPP
2 #define RBGEN_FILE_IO_HANDLER_HPP
3 
4 #include "RBGen_ConfigDefs.h"
5 
7 #include "Teuchos_RCP.hpp"
8 
9 namespace RBGen {
10 
12 
14  template<class DataSetType>
15  class FileIOHandler {
16  public:
18 
19 
22 
24  virtual ~FileIOHandler() {};
26 
28 
29 
31  virtual void Initialize( const Teuchos::RCP<Teuchos::ParameterList>& params ) = 0;
32 
33  void Reset() {};
35 
37 
38 
40  virtual Teuchos::RCP< DataSetType > Read( const std::vector<std::string>& filenames ) = 0;
41 
43 
45 
46 
48  virtual void Write( const Teuchos::RCP< const DataSetType >& MV, const std::string& filename ) = 0;
49 
51 
53 
54 
56  virtual bool isInitialized() const = 0;
57 
59  };
60 
61 } // end of RBGen namespace
62 
63 #endif // RBGEN_FILE_IO_HANDLER_HPP
virtual void Write(const Teuchos::RCP< const DataSetType > &MV, const std::string &filename)=0
Method for writing one data set into a file.
virtual bool isInitialized() const =0
Return initialized status of the handler.
virtual ~FileIOHandler()
Destructor.
FileIOHandler()
Default constructor.
virtual Teuchos::RCP< DataSetType > Read(const std::vector< std::string > &filenames)=0
Method for reading multiple files and putting them into an data set.
virtual void Initialize(const Teuchos::RCP< Teuchos::ParameterList > &params)=0
Initialize file reader using.