PLaSK library
Loading...
Searching...
No Matches
plask::RegisterMeshReader Struct Reference

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)
 

Detailed Description

Helper which call stores mesh reader when constructed.

Each mesh can create one global instance of this class to its reader.

Definition at line 441 of file mesh.hpp.

Member Typedef Documentation

◆ ReadingFunction

Definition at line 442 of file mesh.hpp.

Constructor & Destructor Documentation

◆ RegisterMeshReader()

plask::RegisterMeshReader::RegisterMeshReader ( const std::string &  tag_name,
ReadingFunction  fun 
)

Definition at line 29 of file mesh.cpp.

Member Function Documentation

◆ getReader()

RegisterMeshReader::ReadingFunction plask::RegisterMeshReader::getReader ( const std::string &  name)
static

Definition at line 33 of file mesh.cpp.

◆ getReaders()

std::map< std::string, RegisterMeshReader::ReadingFunction > & plask::RegisterMeshReader::getReaders ( )
static

Definition at line 24 of file mesh.cpp.


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