hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
create_domain.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_CREATE_DOMAIN_HPP
7 #define IROHA_SHARED_MODEL_CREATE_DOMAIN_HPP
8 
10 
12 
13 namespace shared_model {
14  namespace interface {
18  class CreateDomain : public ModelPrimitive<CreateDomain> {
19  public:
23  virtual const types::DomainIdType &domainId() const = 0;
27  virtual const types::RoleIdType &userDefaultRole() const = 0;
28 
29  std::string toString() const override;
30 
31  bool operator==(const ModelType &rhs) const override;
32  };
33  } // namespace interface
34 } // namespace shared_model
35 
36 #endif // IROHA_SHARED_MODEL_CREATE_DOMAIN_HPP
std::string toString() const override
Definition: create_domain.cpp:11
std::string DomainIdType
Iroha domain id type.
Definition: types.hpp:53
CreateDomain ModelType
Definition: model_primitive.hpp:27
Definition: create_domain.hpp:18
virtual const types::RoleIdType & userDefaultRole() const =0
bool operator==(const ModelType &rhs) const override
Definition: create_domain.cpp:19
Definition: model_primitive.hpp:22
Definition: command_executor.hpp:12
virtual const types::DomainIdType & domainId() const =0
std::string RoleIdType
Type of role (i.e admin, user)
Definition: types.hpp:51