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 
10 
12 
13 namespace shared_model {
14  namespace interface {
18  class RolesResponse : public ModelPrimitive<RolesResponse> {
19  public:
21  using RolesIdType = std::vector<types::RoleIdType>;
22 
26  virtual const RolesIdType &roles() 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 #endif // IROHA_SHARED_MODEL_ROLES_RESPONSE_HPP
RolesResponse ModelType
Definition: model_primitive.hpp:27
std::string toString() const override
Definition: roles_response.cpp:12
std::vector< types::RoleIdType > RolesIdType
type of roles collection
Definition: roles_response.hpp:21
bool operator==(const ModelType &rhs) const override
Definition: roles_response.cpp:19
virtual const RolesIdType & roles() const =0
Definition: roles_response.hpp:18
Definition: model_primitive.hpp:22
Definition: command_executor.hpp:12