vsdk 7.3.2
 
Loading...
Searching...
No Matches
Vsdk::Nlu::Engineabstract

Responsible for creation of Parser instances. More...

#include <Engine.hpp>

Inheritance diagram for Vsdk::Nlu::Engine:

Public Member Functions

auto parser (std::string const &name) -> std::shared_ptr< Parser >
 Gets or constructs a shared Parser instance that's been previously configured.
 

Static Public Member Functions

template<class T , typename... Args>
static auto make (Args &&... args) -> std::shared_ptr< Engine >
 Gets or constructs a shared Nlu::Engine instance of type T with args.
 

Protected Member Functions

virtual auto makeParser (std::string name) -> Parser *=0
 

Detailed Description

Responsible for creation of Parser instances.

Member Function Documentation

◆ make()

template<class T , typename... Args>
static auto Vsdk::Nlu::Engine::make ( Args &&...  args) -> std::shared_ptr<Engine>
static

Gets or constructs a shared Nlu::Engine instance of type T with args.

Note
If an engine of this type exists, a shared instance will be returned instead.

◆ parser()

auto Engine::parser ( std::string const &  name) -> std::shared_ptr<Parser>

Gets or constructs a shared Parser instance that's been previously configured.

Parameters
nameFound in the configuration of this engine, name of the Parser you want

◆ makeParser()

virtual auto Vsdk::Nlu::Engine::makeParser ( std::string  name) -> Parser *
protectedpure virtual