IODA Bundle
Ingester::ParserFactory Class Reference

Factory that is used to create Parsers. More...

#include <ParserFactory.h>

Static Public Member Functions

static std::shared_ptr< Parsercreate (const eckit::Configuration &conf)
 Create a Parser. More...
 
template<class T >
static void registerParser (const std::string &name)
 Register a new Parser type we want to be able to create. More...
 

Static Private Member Functions

static std::map< std::string, std::shared_ptr< ParserMakerBase > > & getMakers ()
 Internal method that returns a map of Parser Makers that were registered with registerParser. More...
 

Detailed Description

Factory that is used to create Parsers.

Definition at line 53 of file ParserFactory.h.

Member Function Documentation

◆ create()

static std::shared_ptr<Parser> Ingester::ParserFactory::create ( const eckit::Configuration &  conf)
inlinestatic

Create a Parser.

Parameters
confProvides the name of the parser we want to create

Definition at line 58 of file ParserFactory.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMakers()

static std::map<std::string, std::shared_ptr<ParserMakerBase> >& Ingester::ParserFactory::getMakers ( )
inlinestaticprivate

Internal method that returns a map of Parser Makers that were registered with registerParser.

Definition at line 97 of file ParserFactory.h.

Here is the caller graph for this function:

◆ registerParser()

template<class T >
static void Ingester::ParserFactory::registerParser ( const std::string &  name)
inlinestatic

Register a new Parser type we want to be able to create.

Template Parameters
TThe Parser class
Parameters
nameThe name to associate with the parser class.

Definition at line 79 of file ParserFactory.h.

Here is the call graph for this function:

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