6#ifndef FAKE_CHATBOTDEVICE_H
7#define FAKE_CHATBOTDEVICE_H
37 bool close()
override;
40 std::string m_currBot;
41 std::string m_fallback;
42 std::string m_noInput;
44 std::map<std::string, std::map<std::string,std::string>> m_qAndA;
This class is the parameters parser for class FakeChatBotDevice.
fakeChatBotDevice : a fake device which implements the IChatBot interface for testing purposes.
yarp::dev::ReturnValue getStatus(std::string &status) override
Gets the current status of the bot.
bool close() override
Close the DeviceDriver.
yarp::dev::ReturnValue getLanguage(std::string &language) override
Gets the current chatbot language.
yarp::dev::ReturnValue interact(const std::string &messageIn, std::string &messageOut) override
Sends a message to the chatbot.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
yarp::dev::ReturnValue setLanguage(const std::string &language) override
Sets the chat bot language.
yarp::dev::ReturnValue resetBot() override
Resets the chatbot.
Interface implemented by all device drivers.
A base class for nested structures that can be searched.