hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
peer_query_factory.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PEER_QUERY_FACTORY_HPP
7 #define IROHA_PEER_QUERY_FACTORY_HPP
8 
9 #include <boost/optional.hpp>
10 
11 #include "ametsuchi/peer_query.hpp"
12 
13 namespace iroha {
14  namespace ametsuchi {
16  public:
21  virtual boost::optional<std::shared_ptr<PeerQuery>> createPeerQuery()
22  const = 0;
23 
24  virtual ~PeerQueryFactory() = default;
25  };
26  } // namespace ametsuchi
27 } // namespace iroha
28 #endif // IROHA_PEER_QUERY_FACTORY_HPP
Definition: block_query.hpp:16
virtual boost::optional< std::shared_ptr< PeerQuery > > createPeerQuery() const =0
Definition: peer_query_factory.hpp:15