hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_grant_permission.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_GRANT_PERMISSION_HPP
7 #define IROHA_PROTO_GRANT_PERMISSION_HPP
8 
10 #include "commands.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15 
16  class GrantPermission final
17  : public CopyableProto<interface::GrantPermission,
18  iroha::protocol::Command,
19  GrantPermission> {
20  public:
21  template <typename CommandType>
22  explicit GrantPermission(CommandType &&command);
23 
25 
26  GrantPermission(GrantPermission &&o) noexcept;
27 
28  const interface::types::AccountIdType &accountId() const override;
29 
31 
32  std::string toString() const override;
33 
34  private:
35  const iroha::protocol::GrantPermission &grant_permission_;
36  };
37 
38  } // namespace proto
39 } // namespace shared_model
40 
41 #endif // IROHA_PROTO_GRANT_PERMISSION_HPP
Definition: proto_grant_permission.hpp:16
const interface::types::AccountIdType & accountId() const override
Definition: proto_grant_permission.cpp:29
Grantable
Definition: permissions.hpp:66
interface::permissions::Grantable permissionName() const override
Definition: proto_grant_permission.cpp:33
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
std::string AccountIdType
Type of account id.
Definition: types.hpp:37
GrantPermission(CommandType &&command)
Definition: proto_grant_permission.cpp:13
Definition: command_executor.hpp:12
std::string toString() const override
Definition: proto_grant_permission.cpp:37
Definition: trivial_proto.hpp:45