Flow123d
release_2.2.0-914-gf1a3a4f
|
#include <reader_cache.hh>
Classes | |
struct | ReaderData |
Public Types | |
typedef std::map< string, ReaderData > | ReaderTable |
Static Public Member Functions | |
static std::shared_ptr< BaseMeshReader > | get_reader (const FilePath &file_path) |
static std::shared_ptr< Mesh > | get_mesh (const FilePath &file_path) |
Private Member Functions | |
ReaderCache () | |
Constructor. More... | |
Static Private Member Functions | |
static ReaderCache * | instance () |
Returns singleton instance. More... | |
static ReaderTable::iterator | get_reader_data (const FilePath &file_path) |
Returns instance of given FilePath. If reader doesn't exist, creates new ReaderData object. More... | |
Private Attributes | |
ReaderTable | reader_table_ |
Table of readers. More... | |
Auxiliary class to map filepaths to instances of readers.
Definition at line 33 of file reader_cache.hh.
typedef std::map< string, ReaderData > ReaderCache::ReaderTable |
Definition at line 40 of file reader_cache.hh.
|
inlineprivate |
Constructor.
Definition at line 57 of file reader_cache.hh.
Returns mesh of given FilePath.
Definition at line 38 of file reader_cache.cc.
|
static |
Returns reader of given FilePath.
Definition at line 34 of file reader_cache.cc.
|
staticprivate |
Returns instance of given FilePath. If reader doesn't exist, creates new ReaderData object.
Definition at line 50 of file reader_cache.cc.
|
staticprivate |
Returns singleton instance.
Definition at line 29 of file reader_cache.cc.
|
private |
Table of readers.
Definition at line 63 of file reader_cache.hh.