16#define CONNECTION_TIMEOUT 5.0
29 const char *at = txt.c_str();
79 strCmd =
"\"" + std::string(
guess) +
"\"";
100bool ScriptYarprunBroker::whichFile(
const std::string&
server,
const std::string& filename, std::string&
filenameWithPath)
108 grp.addString(
"which");
109 grp.addString(filename);
144 std::string strParam;
150 strHost = std::string(
"/") + std::string(
szhost);
154 whichFile(strHost.c_str(),
szcmd, strCmd);
static yarp::os::Bottle parsePaths(const std::string &txt)
constexpr fs::value_type slash
static bool fileExists(const char *fname)
bool connected(const std::string &from, const std::string &to, const std::string &carrier) override
A simple collection of objects that can be described and transmitted in a portable way.
Bottle & addList()
Places an empty nested list in the bottle, at the end of the list.
void addString(const char *str)
Places a string in the bottle, at the end of the list.
A mini-server for performing network communication in the background.
BufferedPort()
Constructor.
static bool connect(const std::string &src, const std::string &dest, const std::string &carrier="", bool quiet=true)
Request that an output port connect to an input port.
static bool disconnect(const std::string &src, const std::string &dest, bool quiet)
Request that an output port disconnect from an input port.
A mini-server for network communication.
bool write(const PortWriter &writer, const PortWriter *callback=nullptr) const override
Write an object to the port.
void close() override
Stop port activity.
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
A single value (typically within a Bottle).
#define CONNECTION_TIMEOUT
static constexpr char path_separator
std::string get_string(const std::string &key, bool *found=nullptr)
Read a string from an environment variable.
static constexpr value_type preferred_separator
std::stringstream OSTRINGSTREAM
An interface to the operating system, including Port based communication.
constexpr fs::value_type slash
static Bottle parsePaths(const std::string &txt)
static bool fileExists(const char *fname)