hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_create_domain.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_CREATE_DOMAIN_HPP
7 #define IROHA_PROTO_CREATE_DOMAIN_HPP
8 
10 
11 #include "commands.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15 
16  class CreateDomain final : public interface::CreateDomain {
17  public:
18  explicit CreateDomain(iroha::protocol::Command &command);
19 
20  const interface::types::DomainIdType &domainId() const override;
21 
22  const interface::types::RoleIdType &userDefaultRole() const override;
23 
24  private:
25  const iroha::protocol::CreateDomain &create_domain_;
26  };
27 
28  } // namespace proto
29 } // namespace shared_model
30 
31 #endif // IROHA_PROTO_CREATE_DOMAIN_HPP
Definition: proto_create_domain.hpp:16
std::string DomainIdType
Iroha domain id type.
Definition: types.hpp:53
CreateDomain(iroha::protocol::Command &command)
Definition: proto_create_domain.cpp:11
const interface::types::RoleIdType & userDefaultRole() const override
Definition: proto_create_domain.cpp:18
const interface::types::DomainIdType & domainId() const override
Definition: proto_create_domain.cpp:14
Definition: create_domain.hpp:18
Definition: command_executor.hpp:12
std::string RoleIdType
Type of role (i.e admin, user)
Definition: types.hpp:51