37 #include <visp3/core/vpConfig.h>
38 #include <visp3/core/vpDebug.h>
39 #include <visp3/core/vpException.h>
40 #include <visp3/core/vpImageException.h>
137 void addParameter(
const char *params);
138 void addParameter(
const std::string ¶ms);
139 void addParameter(
const std::vector<std::string> &listOfparams);
140 template <
typename T>
void addParameterObject(T *params,
const int &sizeOfObject =
sizeof(T));
152 void clear() { listOfParams.clear(); }
166 inline std::string &
operator[](
const unsigned int &i) {
return listOfParams[i]; }
173 inline const std::string &
operator[](
const unsigned int &i)
const {
return listOfParams[i]; }
182 std::string
getId()
const {
return request_id; }
191 void setId(
const char *
id) { request_id = id; }
198 unsigned int size()
const {
return (
unsigned int)listOfParams.size(); }
219 if (sizeOfObject != 0) {
220 char *tempS =
new char[sizeOfObject];
221 memcpy((
void *)tempS, (
void *)params, sizeOfObject);
222 std::string returnVal(tempS, (
size_t)sizeOfObject);
This the request that will transit on the network.
void setId(const char *id)
std::vector< std::string > listOfParams
const std::string & operator[](const unsigned int &i) const
std::string & operator[](const unsigned int &i)
std::string getId() const
void addParameterObject(T *params, const int &sizeOfObject=sizeof(T))
unsigned int size() const