Arkanjo 0.2
A tool for find code duplicated functions in codebases
Loading...
Searching...
No Matches
CommandsRegistry Namespace Reference

Typedefs

using CommandFactory = std::function<std::unique_ptr<ICommand>()>
 

Functions

std::unordered_map< std::string, CommandFactorybuild_command_map (const std::vector< std::pair< std::vector< std::string >, CommandFactory > > &commands)
 
std::unique_ptr< ICommandget_command (const std::string &name, const std::vector< std::pair< std::vector< std::string >, CommandFactory > > &commands)
 

Typedef Documentation

◆ CommandFactory

using CommandsRegistry::CommandFactory = std::function<std::unique_ptr<ICommand>()>

Definition at line 9 of file commands_registry.hpp.

Function Documentation

◆ build_command_map()

std::unordered_map< std::string, CommandFactory > CommandsRegistry::build_command_map ( const std::vector< std::pair< std::vector< std::string >, CommandFactory > > & commands)

Definition at line 11 of file commands_registry.hpp.

◆ get_command()

std::unique_ptr< ICommand > CommandsRegistry::get_command ( const std::string & name,
const std::vector< std::pair< std::vector< std::string >, CommandFactory > > & commands )

Definition at line 23 of file commands_registry.hpp.