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

Public Member Functions

 RemoveBlockCommand (std::shared_ptr< BlockStorage > block_storage)
 
virtual void execute (std::ostream &out, const ArgumentList &args) override
 
- Public Member Functions inherited from Command
 Command (std::string name, std::string description)
 
virtual ~Command ()=default
 
std::string_view getName () const
 
std::string_view getDescription () const
 

Private Attributes

std::shared_ptr< BlockStorageblock_storage
 

Additional Inherited Members

- Protected Member Functions inherited from Command
void assertArgumentCount (const ArgumentList &args, int min, int max)
 
template<typename... Ts>
void throwError (const char *fmt, Ts &&...ts) const
 
template<typename T >
unwrapResult (std::string_view context, outcome::result< T > &&res) const
 

Detailed Description

Definition at line 217 of file storage_explorer.cpp.

Constructor & Destructor Documentation

RemoveBlockCommand::RemoveBlockCommand ( std::shared_ptr< BlockStorage block_storage)
inlineexplicit

Definition at line 219 of file storage_explorer.cpp.

Member Function Documentation

virtual void RemoveBlockCommand::execute ( std::ostream &  out,
const ArgumentList args 
)
inlineoverridevirtual

Implements Command.

Definition at line 224 of file storage_explorer.cpp.

Member Data Documentation

std::shared_ptr<BlockStorage> RemoveBlockCommand::block_storage
private

Definition at line 245 of file storage_explorer.cpp.


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