Flow123d
release_2.1.2-337-g6b7a56b
|
#include <reader_instances.hh>
Public Types | |
typedef std::map< string, std::shared_ptr< BaseMeshReader > > | ReaderTable |
Public Member Functions | |
std::shared_ptr< BaseMeshReader > | get_reader (const FilePath &file_name) |
Static Public Member Functions | |
static ReaderInstances * | instance () |
Returns singleton instance. More... | |
Private Member Functions | |
ReaderInstances () | |
Constructor. More... | |
Private Attributes | |
ReaderTable | reader_table_ |
Table of readers. More... | |
Auxiliary class to map filepaths to instances of readers.
Definition at line 29 of file reader_instances.hh.
typedef std::map< string, std::shared_ptr<BaseMeshReader> > ReaderInstances::ReaderTable |
Definition at line 31 of file reader_instances.hh.
|
inlineprivate |
Constructor.
Definition at line 43 of file reader_instances.hh.
std::shared_ptr< BaseMeshReader > ReaderInstances::get_reader | ( | const FilePath & | file_name | ) |
Returns mesh reader of get filepath. If reader doesn't exist, creates its.
Definition at line 27 of file reader_instances.cc.
|
static |
Returns singleton instance.
Definition at line 22 of file reader_instances.cc.
|
private |
Table of readers.
Definition at line 43 of file reader_instances.hh.