ValueAwaiter.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include <swarmio/data/Variant.pb.h>
5 
7 {
12  class SWARMIO_API ValueAwaiter final : public Awaiter<data::Variant>
13  {
14  private:
15 
20  std::string _key;
21 
22  protected:
23 
30  virtual data::Variant ExtractResponse(const Node* node, const data::Message* message) override;
31 
32  public:
33 
41  ValueAwaiter(Endpoint* endpoint, uint64_t requestIdentifier, const std::string& key)
42  : Awaiter(endpoint, requestIdentifier)
43  {
44  _key = key;
45  FinishConstruction();
46  }
47  };
48 }
A special mailbox that handles responses to a message.
Definition: Awaiter.h:19
ValueAwaiter(Endpoint *endpoint, uint64_t requestIdentifier, const std::string &key)
Construct a new ValueAwaiter object.
Definition: ValueAwaiter.h:41
Abstract base class for Endpoint implementations.
Definition: Endpoint.h:25
An Awaiter that returns the requested value.
Definition: ValueAwaiter.h:12
std::string _key
The expected key in the telemetry response.
Definition: ValueAwaiter.h:20
Represents a Node the Endpoint knows about and can send messages to.


swarmros
Author(s):
autogenerated on Fri Apr 3 2020 03:42:48