PLaSK library
|
Helper which call stores mesh reader when constructed. More...
#include <plask/mesh/mesh.hpp>
Public Types | |
typedef std::function< shared_ptr< Mesh >(XMLReader &)> | ReadingFunction |
Public Member Functions | |
RegisterMeshReader (const std::string &tag_name, ReadingFunction fun) | |
Static Public Member Functions | |
static std::map< std::string, ReadingFunction > & | getReaders () |
static ReadingFunction | getReader (const std::string &name) |
Helper which call stores mesh reader when constructed.
Each mesh can create one global instance of this class to its reader.
typedef std::function<shared_ptr<Mesh>(XMLReader&)> plask::RegisterMeshReader::ReadingFunction |
plask::RegisterMeshReader::RegisterMeshReader | ( | const std::string & | tag_name, |
ReadingFunction | fun | ||
) |
|
static |
|
static |