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, RemovePeer, CompareAndSetAccountDetail, SetSettingValue >
 Type of variant, that handle concrete command. More...
- Public Types inherited from shared_model::interface::ModelPrimitive< 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::ModelPrimitive< Command >
virtual bool operator== (const ModelType &rhs) const=0
virtual bool operator!= (const ModelType &rhs) const
virtual ~ModelPrimitive ()=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

◆ CommandVariantType

Member Function Documentation

◆ get()

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

Implemented in shared_model::proto::Command.

Here is the caller graph for this function:

◆ operator==()

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

◆ toString()

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

Make string developer representation of object

string with internal state of object

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

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