Flow123d
last_with_con_2.0.0-663-gd0e2296
|
#include <reader_instances.hh>
Public Types | |
typedef std::map< string, std::shared_ptr< GmshMeshReader > > | ReaderTable |
Public Member Functions | |
std::shared_ptr< GmshMeshReader > | get_reader (const FilePath &file_path) |
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<GmshMeshReader> > 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< GmshMeshReader > ReaderInstances::get_reader | ( | const FilePath & | file_path | ) |
Returns mesh reader of get filepath. If reader doesn't exist, creates its.
Definition at line 25 of file reader_instances.cc.
|
static |
Returns singleton instance.
Definition at line 20 of file reader_instances.cc.
|
private |
Table of readers.
Definition at line 43 of file reader_instances.hh.