|
|
| 288 |
Resolver::DoResolve (std::string path, Ptr<Object> root) |
288 |
Resolver::DoResolve (std::string path, Ptr<Object> root) |
| 289 |
{ |
289 |
{ |
| 290 |
NS_LOG_FUNCTION (path << root); |
290 |
NS_LOG_FUNCTION (path << root); |
| 291 |
std::string::size_type tmp; |
291 |
NS_ASSERT ((path.find ("/")) == 0); |
| 292 |
tmp = path.find ("/"); |
|
|
| 293 |
NS_ASSERT (tmp == 0); |
| 294 |
std::string::size_type next = path.find ("/", 1); |
292 |
std::string::size_type next = path.find ("/", 1); |
| 295 |
|
293 |
|
| 296 |
if (next == std::string::npos) |
294 |
if (next == std::string::npos) |
|
|
| 424 |
Resolver::DoArrayResolve (std::string path, const ObjectVectorValue &vector) |
422 |
Resolver::DoArrayResolve (std::string path, const ObjectVectorValue &vector) |
| 425 |
{ |
423 |
{ |
| 426 |
NS_ASSERT (path != ""); |
424 |
NS_ASSERT (path != ""); |
| 427 |
std::string::size_type tmp; |
425 |
NS_ASSERT ((path.find ("/")) == 0); |
| 428 |
tmp = path.find ("/"); |
|
|
| 429 |
NS_ASSERT (tmp == 0); |
| 430 |
std::string::size_type next = path.find ("/", 1); |
426 |
std::string::size_type next = path.find ("/", 1); |
| 431 |
if (next == std::string::npos) |
427 |
if (next == std::string::npos) |
| 432 |
{ |
428 |
{ |