knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
AnswerMerger.h
Go to the documentation of this file.
1 /*
2  * This file is part of KnowRob, please consult
3  * https://github.com/knowrob/knowrob for license details.
4  */
5 
6 #ifndef KNOWROB_ANSWER_MERGER_H
7 #define KNOWROB_ANSWER_MERGER_H
8 
9 #include "AnswerTransformer.h"
10 #include "AnswerYes.h"
11 
12 namespace knowrob {
16  class AnswerMerger : public AnswerTransformer {
17  public:
18  explicit AnswerMerger(AnswerPtr partialResult);
19 
20  // override AnswerTransformer
21  TokenPtr transform(const TokenPtr &tok) override;
22 
23  protected:
25  };
26 
27 } // knowrob
28 
29 #endif //KNOWROB_ANSWER_MERGER_Hs
TokenPtr transform(const TokenPtr &tok) override
AnswerMerger(AnswerPtr partialResult)
const AnswerPtr partialResult_
Definition: AnswerMerger.h:24
std::shared_ptr< const Token > TokenPtr
Definition: Token.h:74
std::shared_ptr< const Answer > AnswerPtr
Definition: Answer.h:129