#include <vector>
#include <string>
#include "tinyxml.h"
#include "utils.h"
Go to the source code of this file.
|
#define | XML_LOADER_ADD(Y, X) xml_loader_strings.push_back(robotLibPbD::printToString("<%s>%s</%s>", Y, X.c_str(), Y)); |
|
#define | XML_LOADER_ADD_BOOLEAN(Y, X) xml_loader_strings.push_back(robotLibPbD::printToString("<%s>%s</%s>", Y, X ? "true" : "false", Y)); |
|
#define | XML_LOADER_ADD_DOUBLE(Y, X) xml_loader_strings.push_back(robotLibPbD::printToString("<%s>%g</%s>", Y, X, Y)); |
|
#define | XML_LOADER_ADD_FLOAT(Y, X) xml_loader_strings.push_back(robotLibPbD::printToString("<%s>%g</%s>", Y, X, Y)); |
|
#define | XML_LOADER_ADD_INTEGER(Y, X) xml_loader_strings.push_back(robotLibPbD::printToString("<%s>%d</%s>", Y, X, Y)); |
|
#define | XML_LOADER_ADD_STRING(Y, X) xml_loader_strings.push_back(robotLibPbD::printToString("<%s>%s</%s>", Y, X.c_str(), Y)); |
|
#define | XML_LOADER_GET(Y) |
|
#define | XML_LOADER_INIT std::vector<std::string> xml_loader_strings; |
|
|
void | tokenize (const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters) |
|
#define XML_LOADER_ADD_BOOLEAN |
( |
|
Y, |
|
|
|
X |
|
) |
| xml_loader_strings.push_back(robotLibPbD::printToString("<%s>%s</%s>", Y, X ? "true" : "false", Y)); |
#define XML_LOADER_GET |
( |
|
Y | ) |
|
Value:{ \
for (unsigned int i=0; i<xml_loader_strings.size(); i++) \
{ \
Y += xml_loader_strings[i] + "\n"; \
} \
}
Definition at line 111 of file configuration.h.
#define XML_LOADER_INIT std::vector<std::string> xml_loader_strings; |
void tokenize |
( |
const std::string & |
str, |
|
|
std::vector< std::string > & |
tokens, |
|
|
const std::string & |
delimiters |
|
) |
| |