hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::interface::Command Class Referenceabstract

#include "command.hpp"

Inheritance diagram for shared_model::interface::Command:
Inheritance graph
Collaboration diagram for shared_model::interface::Command:
Collaboration graph

Public Types

using CommandVariantType = wrap< AddAssetQuantity, AddPeer, AddSignatory, AppendRole, CreateAccount, CreateAsset, CreateDomain, CreateRole, DetachRole, GrantPermission, RemoveSignatory, RevokePermission, SetAccountDetail, SetQuorum, SubtractAssetQuantity, TransferAsset >
 Type of variant, that handle concrete command. More...
 
- Public Types inherited from shared_model::interface::NonCopyableModelPrimitive< Command >
using ModelType = Command
 

Public Member Functions

virtual const CommandVariantTypeget () const =0
 
std::string toString () const override
 
bool operator== (const ModelType &rhs) const override
 
- Public Member Functions inherited from shared_model::interface::NonCopyableModelPrimitive< Command >
 NonCopyableModelPrimitive ()=default
 
 NonCopyableModelPrimitive (const NonCopyableModelPrimitive &)=delete
 
 NonCopyableModelPrimitive (NonCopyableModelPrimitive &&) noexcept=default
 
NonCopyableModelPrimitiveoperator= (const NonCopyableModelPrimitive &)=delete
 
virtual bool operator!= (const ModelType &rhs) const
 
virtual ~NonCopyableModelPrimitive ()=default
 

Detailed Description

Class provides commands container for all commands in system. General note: this class is container for commands, not a base class.

Member Typedef Documentation

Member Function Documentation

virtual const CommandVariantType& shared_model::interface::Command::get ( ) const
pure virtual
Returns
reference to const variant with concrete command

Implemented in shared_model::proto::Command.

Here is the caller graph for this function:

bool shared_model::interface::Command::operator== ( const ModelType rhs) const
overridevirtual

Implements shared_model::interface::NonCopyableModelPrimitive< Command >.

Here is the call graph for this function:

std::string shared_model::interface::Command::toString ( ) const
overridevirtual

Make string representation of object for development

Returns
string with internal state of object

Reimplemented from shared_model::interface::NonCopyableModelPrimitive< Command >.


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