YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
CommandBottle.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
7
9
10CommandBottle::CommandBottle(const std::string& text) :
11 cmd(text)
12{
13}
14
15CommandBottle::CommandBottle(std::initializer_list<yarp::os::Value> values) :
16 cmd(values)
17{
18}
19
24
bool read(ConnectionReader &reader) override
Set the bottle's value based on input from a network connection.
Definition Bottle.cpp:240
bool write(ConnectionWriter &writer) const override
Output a representation of the bottle to a network connection.
Definition Bottle.cpp:230
A mini-server for performing network communication in the background.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::os::Bottle reply
yarp::os::Bottle cmd
An interface for reading from a network connection.
An interface for writing to a network connection.