YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ConversationCallback.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6
7#ifndef __CONVERSATION_CALLBACK_H_
8#define __CONVERSATION_CALLBACK_H_
9
10#include <yarp/os/Bottle.h>
12
13#include <QObject>
14
15class ConversationCallback : public QObject, public yarp::os::TypedReaderCallback<yarp::os::Bottle>
16{
17private:
18 Q_OBJECT;
19
20public:
21 ConversationCallback(QObject* parent = nullptr) :
22 QObject(parent)
23 {
24 }
25 void onRead(yarp::os::Bottle&) override;
26
31
32signals:
34};
35
36#endif
ConversationCallback(QObject *parent=nullptr)
void onRead(yarp::os::Bottle &datum, const yarp::os::TypedReader< yarp::os::Bottle > &reader) override
Callback method.
void onRead(yarp::os::Bottle &) override
A simple collection of objects that can be described and transmitted in a portable way.
Definition Bottle.h:64
A mini-server for performing network communication in the background.
A callback for typed data from a port.
virtual void onRead(T &datum)
Callback method.