| 1 |
// @HEADER |
| 2 |
// ***************************************************************************** |
| 3 |
// Anasazi: Block Eigensolvers Package |
| 4 |
// |
| 5 |
// Copyright 2004 NTESS and the Anasazi contributors. |
| 6 |
// SPDX-License-Identifier: BSD-3-Clause |
| 7 |
// ***************************************************************************** |
| 8 |
// @HEADER |
| 9 |
|
| 10 |
#ifndef RBGEN_FILEIO_FACTORY_HPP |
| 11 |
#define RBGEN_FILEIO_FACTORY_HPP |
| 12 |
|
| 13 |
#include "Teuchos_RCP.hpp" |
| 14 |
|
| 15 |
// Forward declarations for Teuchos. |
| 16 |
namespace Teuchos { |
| 17 |
class ParameterList; |
| 18 |
} |
| 19 |
|
| 20 |
namespace RBGen { |
| 21 |
|
| 22 |
// Forward declarations for FileIOHandler. |
| 23 |
template< class DataSetType > |
| 24 |
class FileIOHandler; |
| 25 |
|
| 26 |
//! Abstract factory for instantiating FileIOHandler concrete classes. |
| 27 |
/*! |
| 28 |
*/ |
| 29 |
template< class DataSetType > |
| 30 |
class FileIOFactory { |
| 31 |
|
| 32 |
public: |
| 33 |
//! @name Constructor/Destructor. |
| 34 |
//@{ |
| 35 |
|
| 36 |
//! Default constructor. |
| 37 |
FileIOFactory() {}; |
| 38 |
|
| 39 |
//! Destructor. |
| 40 |
virtual ~FileIOFactory() {}; |
| 41 |
//@} |
| 42 |
|
| 43 |
//! @name Factory methods |
| 44 |
//@{ |
| 45 |
|
| 46 |
virtual Teuchos::RCP< FileIOHandler< DataSetType > > create( const Teuchos::ParameterList& params ) = 0; |
| 47 |
|
| 48 |
//@} |
| 49 |
|
| 50 |
}; |
| 51 |
|
| 52 |
} // end of RBGen namespace |
| 53 |
|
| 54 |
#endif // RBGEN_FILEIO_FACTORY_HPP |