Kagome
Polkadot Runtime Engine in C++17
CommandParser Class Reference
Collaboration diagram for CommandParser:

Public Types

using CommandFunctor = std::function< void(int, char **)>
 

Public Member Functions

void addCommand (std::unique_ptr< Command > cmd)
 
void invoke (const ArgumentList &args) const noexcept
 
void printCommands (std::ostream &out) const
 

Private Attributes

std::unordered_map< std::string, std::unique_ptr< Command > > commands_
 

Detailed Description

Definition at line 95 of file storage_explorer.cpp.

Member Typedef Documentation

using CommandParser::CommandFunctor = std::function<void(int, char **)>

Definition at line 97 of file storage_explorer.cpp.

Member Function Documentation

void CommandParser::addCommand ( std::unique_ptr< Command cmd)
inline

Definition at line 99 of file storage_explorer.cpp.

void CommandParser::invoke ( const ArgumentList args) const
inlinenoexcept

Definition at line 104 of file storage_explorer.cpp.

void CommandParser::printCommands ( std::ostream &  out) const
inline

Definition at line 125 of file storage_explorer.cpp.

Member Data Documentation

std::unordered_map<std::string, std::unique_ptr<Command> > CommandParser::commands_
private

Definition at line 132 of file storage_explorer.cpp.


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