Flow123d  release_2.2.0-21-g2806cf6
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ReaderInstances Class Reference

#include <reader_instances.hh>

Collaboration diagram for ReaderInstances:
Collaboration graph
[legend]

Public Types

typedef std::map< string, std::shared_ptr< BaseMeshReader > > ReaderTable
 

Public Member Functions

std::shared_ptr< BaseMeshReaderget_reader (const FilePath &file_name)
 

Static Public Member Functions

static ReaderInstancesinstance ()
 Returns singleton instance. More...
 

Private Member Functions

 ReaderInstances ()
 Constructor. More...
 

Private Attributes

ReaderTable reader_table_
 Table of readers. More...
 

Detailed Description

Auxiliary class to map filepaths to instances of readers.

Definition at line 29 of file reader_instances.hh.

Member Typedef Documentation

typedef std::map< string, std::shared_ptr<BaseMeshReader> > ReaderInstances::ReaderTable

Definition at line 31 of file reader_instances.hh.

Constructor & Destructor Documentation

ReaderInstances::ReaderInstances ( )
inlineprivate

Constructor.

Definition at line 43 of file reader_instances.hh.

Here is the caller graph for this function:

Member Function Documentation

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.

Here is the caller graph for this function:

ReaderInstances * ReaderInstances::instance ( )
static

Returns singleton instance.

Definition at line 22 of file reader_instances.cc.

Here is the caller graph for this function:

Member Data Documentation

ReaderTable ReaderInstances::reader_table_
private

Table of readers.

Definition at line 43 of file reader_instances.hh.


The documentation for this class was generated from the following files: