icub-client
functions.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 WYSIWYD Consortium, European Commission FP7 Project ICT-612139
3  * Authors: Ugo Pattacini, Stéphane Lallée
4  * email: ugo.pattacini@iit.it stephane.lallee@gmail.com
5  * website: https://github.com/robotology/icub-client/
6  * Permission is granted to copy, distribute, and/or modify this program
7  * under the terms of the GNU General Public License, version 2 or any
8  * later version published by the Free Software Foundation.
9  *
10  * A copy of the license can be found at
11  * icub-client/license/gpl.txt
12  *
13  * This program is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
16  * Public License for more details
17  */
18 
19 #ifndef _FUNCTIONS_H
20 #define _FUNCTIONS_H
21 
22 #include <yarp/os/Bottle.h>
23 #include <string>
24 #include <vector>
25 
37 namespace icubclient{
49 yarp::os::Bottle opcGetIdsFromAsk(const yarp::os::Bottle &reply);
50 
60 void replace_all(std::string & in, const std::string & plain, const std::string & tok);
61 
70 std::string grammarToString(const std::string& sPath);
71 }
72 
73 #endif
void replace_all(std::string &in, const std::string &plain, const std::string &tok)
Simple search and replace function for strings;.
Definition: functions.cpp:42
std::string grammarToString(const std::string &sPath)
Get the context path of a .grxml grammar, and return it as a string.
Definition: functions.cpp:58
yarp::os::Bottle opcGetIdsFromAsk(const yarp::os::Bottle &reply)
Allow retrieving the list of unique identifiers of those items verifying the set of conditions querie...
Definition: functions.cpp:29