hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
domain.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PLAIN_DOMAIN_HPP
7 #define IROHA_SHARED_MODEL_PLAIN_DOMAIN_HPP
8 
10 
12 
13 namespace shared_model {
14  namespace plain {
15 
16  class Domain final : public interface::Domain {
17  public:
18  Domain(const interface::types::DomainIdType &domain_id,
19  const interface::types::RoleIdType &default_role_id);
20 
21  const interface::types::DomainIdType &domainId() const override;
22 
23  const interface::types::RoleIdType &defaultRole() const override;
24 
25  private:
26  const interface::types::DomainIdType domain_id_;
27  const interface::types::RoleIdType default_role_id_;
28  };
29  } // namespace plain
30 } // namespace shared_model
31 
32 #endif // IROHA_SHARED_MODEL_PLAIN_DOMAIN_HPP
Definition: domain.hpp:16
std::string DomainIdType
Iroha domain id type.
Definition: types.hpp:53
Definition: domain.hpp:19
const interface::types::RoleIdType & defaultRole() const override
Definition: domain.cpp:19
Domain(const interface::types::DomainIdType &domain_id, const interface::types::RoleIdType &default_role_id)
Definition: domain.cpp:8
const interface::types::DomainIdType & domainId() const override
Definition: domain.cpp:14
Definition: command_executor.hpp:12
std::string RoleIdType
Type of role (i.e admin, user)
Definition: types.hpp:51