ArKanjo 0.5.1
A tool for find code duplicated functions in codebases
CommandsRegistry Namespace Reference

Typedefs

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

Functions

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

Typedef Documentation

◆ CommandFactory

using CommandsRegistry::CommandFactory = typedef 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.