27 void decomposePath(
const std::string& path, std::vector< std::string >& v) {
30 size_t idx_1 = path.find(
".");
33 if (idx_2 == std::string::npos) {
37 while (idx != std::string::npos) {
39 v.push_back(path.substr(prev, length));
41 idx = path.find(
".", prev);
46 while (idx_1 != std::string::npos) {
48 length = idx_1 - prev;
49 v.push_back(path.substr(prev, length));
51 idx_1 = path.find(
".", prev);
52 }
else if (idx_2 < idx_1) {
54 idx_1 = path.find(
".", tmp);
60 v.push_back(path.substr(prev, std::string::npos));
gum is the global namespace for all aGrUM entities
NodeId nextNodeId()
Returns the next value of an unique counter for PRM's node id.
static std::string LEFT_CAST()
Enumeration of the different types of objects handled by a PRM.
void decomposePath(const std::string &path, std::vector< std::string > &v)
Decompose a string in a vector of strings using "." as separators.
static std::string RIGHT_CAST()
Enumeration of the different types of objects handled by a PRM.
Size NodeId
Type for node ids.