Parsers registry.
More...
#include <parsers.hpp>
|
|
class | anch::conf::Configuration |
|
class | anch::Singleton< Parsers > |
Parsers registry.
Provides singleton class with manage parsers registry by file extension
- Since
- 0.1
- Author
- Vincent Lachenal
◆ Parsers() [1/2]
| anch::conf::Parsers::Parsers |
( |
const Parsers & | parsers | ) |
|
|
delete |
Forbids Parsers copy constructor
- Parameters
-
◆ Parsers() [2/2]
| anch::conf::Parsers::Parsers |
( |
Parsers && | parsers | ) |
|
|
delete |
Forbids Parsers move constructor
- Parameters
-
◆ getParser()
| Parser anch::conf::Parsers::getParser |
( |
const std::string & | extension | ) |
const |
Parser getter
- Parameters
-
- Returns
- the parser
- Exceptions
-
◆ getParsers()
| const std::map< std::string, Parser > & anch::conf::Parsers::getParsers |
( |
| ) |
const |
Parsers getter
- Returns
- the registered parsers
◆ registerParser()
| Parsers & anch::conf::Parsers::registerParser |
( |
Parser | parser, |
|
|
const std::set< std::string > & | extensions ) |
Register parser
- Parameters
-
| parser | the parser to register |
| extensions | the extensions to associate to the parser |
- Exceptions
-
The documentation for this class was generated from the following file: