Arkanjo 0.2
A tool for find code duplicated functions in codebases
Loading...
Searching...
No Matches
commands_registry.hpp File Reference
#include <unordered_map>
#include <functional>
#include <memory>
#include <arkanjo/commands/command.hpp>
+ Include dependency graph for commands_registry.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  CommandsRegistry
 

Typedefs

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

Functions

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