IODA
|
Factory class to instantiate objects of IodaIO subclasses. More...
#include <IodaIOfactory.h>
Public Member Functions | |
IodaIOfactory () | |
~IodaIOfactory () | |
Static Public Member Functions | |
static ioda::IodaIO * | Create (const std::string &FileName, const std::string &FileMode, const std::size_t MaxFrameSize) |
Instantiate a IodaIO object. More... | |
Factory class to instantiate objects of IodaIO subclasses.
This class provides a Create method to open a file in a particular mode.
Currently, the subclass from which to instantiate an object from is chosen based on the suffix in the file name. ".nc4" and ".nc" are recognized as netcdf files, and .odb is recognized as an ODB2 file. This isn't necessarily the best way to identify the file format, so this should be revisited in the future.
Definition at line 36 of file IodaIOfactory.h.
|
inline |
Definition at line 38 of file IodaIOfactory.h.
|
inline |
Definition at line 39 of file IodaIOfactory.h.
|
static |
Instantiate a IodaIO object.
[in] | FileName | Path to the obs file |
[in] | FileMode | Mode in which to open the obs file, "r" for read, "w" for overwrite and existing file and "W" for create and write to a new file |
[in] | MaxFrameSize | Maximum number of "rows" in a frame |
Definition at line 29 of file IodaIOfactory.cc.