PLaSK library
|
Helper which call stores mesh reader when constructed. More...
#include <plask/mesh/mesh.hpp>
Public Types | |
typedef std::function< shared_ptr< MeshGenerator >(XMLReader &, Manager &)> | ReadingFunction |
Public Member Functions | |
RegisterMeshGeneratorReader (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<MeshGenerator>(XMLReader&, Manager&)> plask::RegisterMeshGeneratorReader::ReadingFunction |
plask::RegisterMeshGeneratorReader::RegisterMeshGeneratorReader | ( | const std::string & | tag_name, |
RegisterMeshGeneratorReader::ReadingFunction | fun | ||
) |
|
static |
|
static |