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 
11 
12 namespace shared_model {
13  namespace interface {
17  class CreateDomain : public ModelPrimitive<CreateDomain> {
18  public:
22  virtual const types::DomainIdType &domainId() const = 0;
26  virtual const types::RoleIdType &userDefaultRole() const = 0;
27 
28  std::string toString() const override;
29 
30  bool operator==(const ModelType &rhs) const override;
31  };
32  } // namespace interface
33 } // namespace shared_model
34 
35 #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:51
string(REPLACE".""/"CMAKE_SWIG_OUTDIR ${SWIG_JAVA_PKG}) else() set(CMAKE_SWIG_FLAGS"") endif() myswig_add_library(irohajava LANGUAGE java SOURCES bindings.i) unset(CMAKE_SWIG_FLAGS) swig_link_libraries(irohajava $
Definition: CMakeLists.txt:54
Definition: create_domain.hpp:17
virtual const types::RoleIdType & userDefaultRole() const =0
bool operator==(const ModelType &rhs) const override
Definition: create_domain.cpp:19
Definition: model_primitive.hpp:23
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:49