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 #include "commands.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15 
16  class CreateDomain final : public CopyableProto<interface::CreateDomain,
17  iroha::protocol::Command,
18  CreateDomain> {
19  public:
20  template <typename CommandType>
21  explicit CreateDomain(CommandType &&command);
22 
23  CreateDomain(const CreateDomain &o);
24 
25  CreateDomain(CreateDomain &&o) noexcept;
26 
27  const interface::types::DomainIdType &domainId() const override;
28 
29  const interface::types::RoleIdType &userDefaultRole() const override;
30 
31  private:
32  const iroha::protocol::CreateDomain &create_domain_;
33  };
34 
35  } // namespace proto
36 } // namespace shared_model
37 
38 #endif // IROHA_PROTO_CREATE_DOMAIN_HPP
CreateDomain(CommandType &&command)
Definition: proto_create_domain.cpp:12
Definition: proto_create_domain.hpp:16
std::string DomainIdType
Iroha domain id type.
Definition: types.hpp:51
const interface::types::RoleIdType & userDefaultRole() const override
Definition: proto_create_domain.cpp:30
const interface::types::DomainIdType & domainId() const override
Definition: proto_create_domain.cpp:26
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45
std::string RoleIdType
Type of role (i.e admin, user)
Definition: types.hpp:49