RBGen  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
RBGen_FileIOFactory.hpp
1 #ifndef RBGEN_FILEIO_FACTORY_HPP
2 #define RBGEN_FILEIO_FACTORY_HPP
3 
4 #include "Teuchos_RCP.hpp"
5 
6 // Forward declarations for Teuchos.
7 namespace Teuchos {
8  class ParameterList;
9 }
10 
11 namespace RBGen {
12 
13  // Forward declarations for FileIOHandler.
14  template< class DataSetType >
16 
18 
20  template< class DataSetType >
21  class FileIOFactory {
22 
23  public:
25 
26 
29 
31  virtual ~FileIOFactory() {};
33 
35 
36 
37  virtual Teuchos::RCP< FileIOHandler< DataSetType > > create( const Teuchos::ParameterList& params ) = 0;
38 
40 
41  };
42 
43 } // end of RBGen namespace
44 
45 #endif // RBGEN_FILEIO_FACTORY_HPP
virtual ~FileIOFactory()
Destructor.
Abstract factory for instantiating FileIOHandler concrete classes.
FileIOFactory()
Default constructor.
Abstract base class for reading datasets from files.