hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
roles_response.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_ROLES_RESPONSE_HPP
7 #define IROHA_SHARED_MODEL_ROLES_RESPONSE_HPP
8 
11 
12 namespace shared_model {
13  namespace interface {
17  class RolesResponse : public ModelPrimitive<RolesResponse> {
18  public:
20  using RolesIdType = std::vector<types::RoleIdType>;
21 
25  virtual const RolesIdType &roles() const = 0;
26 
27  std::string toString() const override;
28 
29  bool operator==(const ModelType &rhs) const override;
30  };
31  } // namespace interface
32 } // namespace shared_model
33 #endif // IROHA_SHARED_MODEL_ROLES_RESPONSE_HPP
std::string toString() const override
Definition: roles_response.cpp:12
std::vector< types::RoleIdType > RolesIdType
type of roles collection
Definition: roles_response.hpp:20
bool operator==(const ModelType &rhs) const override
Definition: roles_response.cpp:19
virtual const RolesIdType & roles() const =0
Definition: roles_response.hpp:17
Definition: model_primitive.hpp:23
Definition: command_executor.hpp:12