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

#include "query.hpp"

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

Public Types

using QueryVariantType = wrap< GetAccount, GetSignatories, GetAccountTransactions, GetAccountAssetTransactions, GetTransactions, GetAccountAssets, GetAccountDetail, GetRoles, GetRolePermissions, GetAssetInfo, GetPendingTransactions, GetBlock, GetPeers, GetEngineReceipts >
 Type of variant, that handle concrete query. More...
- Public Types inherited from shared_model::interface::ModelPrimitive< Query >
using ModelType = Query

Public Member Functions

virtual const QueryVariantTypeget () const =0
virtual const types::AccountIdTypecreatorAccountId () const =0
virtual types::CounterType queryCounter () const =0
std::string toString () const override
bool operator== (const ModelType &rhs) const override
- Public Member Functions inherited from shared_model::interface::Signable< Query >
virtual types::SignatureRangeType signatures () const=0
virtual bool addSignature (types::SignedHexStringView signed_blob, types::PublicKeyHexStringView public_key)=0
virtual types::TimestampType createdTime () const=0
virtual const types::BlobTypepayload () const=0
virtual const types::BlobTypeblob () const=0
bool operator== (const Query &rhs) const override
bool equalsByValue (const Query &rhs) const
virtual const types::HashTypehash () const=0
std::string toString () const override
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< Query >
virtual bool operator!= (const ModelType &rhs) const
virtual ~ModelPrimitive ()=default

Additional Inherited Members

- Protected Types inherited from shared_model::interface::Signable< Query >
using SignatureSetType = std::unordered_set< T, SignatureSetTypeOps, SignatureSetTypeOps >
- Static Protected Member Functions inherited from shared_model::interface::Signable< Query >
static auto makeHash (const types::BlobType &payload)

Detailed Description

Class Query provides container with one of concrete query available in system. General note: this class is container for queries but not a base class.

Member Typedef Documentation

◆ QueryVariantType

Member Function Documentation

◆ creatorAccountId()

virtual const types::AccountIdType& shared_model::interface::Query::creatorAccountId ( ) const
pure virtual
id of query creator

Implemented in shared_model::proto::Query.

Here is the caller graph for this function:

◆ get()

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

Implemented in shared_model::proto::Query.

Here is the caller graph for this function:

◆ operator==()

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

◆ queryCounter()

virtual types::CounterType shared_model::interface::Query::queryCounter ( ) const
pure virtual

Query counter - incremental variable reflect for number of sent to system queries plus 1. Required for preventing replay attacks.

attached query counter

Implemented in shared_model::proto::Query.

Here is the caller graph for this function:

◆ toString()

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

Make string developer representation of object

string with internal state of object

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

Here is the call graph for this function:

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