TECA
The Toolkit for Extreme Climate Analysis
teca_cartesian_mesh_reader_factory.h
Go to the documentation of this file.
1
#ifndef teca_cartesian_mesh_reader_factory_h
2
#define teca_cartesian_mesh_reader_factory_h
3
4
/// @file
5
6
#include "teca_algorithm.h"
7
8
/// A factory for Cartesian mesh readers
9
struct
teca_cartesian_mesh_reader_factory
10
{
11
/** creates and initialized a reader from a given file name or regular
12
* expression. the file extension is examined, to determine the type of
13
* reader to create. the supported extentsions and the associated readers
14
* are as follows:
15
*
16
* bin -- teca_cartesian_mesh_reader
17
* nc -- teca_cf_reader
18
* mcf -- teca_multi_cf_reader
19
*
20
* returns a new instance of the reader with the file or regex set or a
21
* nullptr if an error is encountered
22
*/
23
static
p_teca_algorithm
New
(
const
std::string &file);
24
};
25
26
#endif
teca_cartesian_mesh_reader_factory::New
static p_teca_algorithm New(const std::string &file)
teca_cartesian_mesh_reader_factory
A factory for Cartesian mesh readers.
Definition:
teca_cartesian_mesh_reader_factory.h:9
rtd_doxygen
io
teca_cartesian_mesh_reader_factory.h
Generated on Thu Oct 14 2021 20:46:27 for TECA by
1.8.17