Changeset 13116
- Timestamp:
- 2006-10-16T10:59:46+13:00 (17 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/OIDtools.cpp
r11259 r13116 276 276 } 277 277 278 // checks if OID uses ".fc", ".lc", ".pr", " .ns",279 // or ".ps" syntax (first child, last child, parent, 278 // checks if OID uses ".fc", ".lc", ".pr", "rt", ".ns", 279 // or ".ps" syntax (first child, last child, parent, root, 280 280 // next sibling, previous sibling) 281 281 bool needs_translating (const text_t &OID) { … … 285 285 text_t tail = substr (OID.end()-3, OID.end()); 286 286 if (tail == ".fc" || tail == ".lc" || tail == ".pr" || 287 tail == ". ns" || tail == ".ps") return true;287 tail == ".rt" || tail == ".ns" || tail == ".ps") return true; 288 288 289 289 return false; … … 296 296 text_t tail = substr (OID.end()-3, OID.end()); 297 297 while (tail == ".fc" || tail == ".lc" || tail == ".pr" || 298 tail == ". ns" || tail == ".ps") {298 tail == ".rt" || tail == ".ns" || tail == ".ps") { 299 299 OID.erase (OID.end()-3, OID.end()); 300 300 tail = substr (OID.end()-3, OID.end()); -
trunk/gsdl/src/recpt/infodbclass.cpp
r11259 r13116 365 365 366 366 367 // replaces the .fc, .lc, .pr, . ns and .ps syntax (first child,368 // last child, parent, next sibling, previous sibling)367 // replaces the .fc, .lc, .pr, .rt, .ns and .ps syntax (first child, 368 // last child, parent, root, next sibling, previous sibling) 369 369 // it expects child, parent, etc. to exist if syntax has been used 370 370 // so you should test before using … … 377 377 text_tarray tailarray; 378 378 text_t tail = substr (OID.end()-3, OID.end()); 379 if (tail == ".rt") { 380 get_top (inOID, OID); 381 return OID; 382 } 379 383 while (tail == ".fc" || tail == ".lc" || tail == ".pr" || 380 384 tail == ".ns" || tail == ".ps") { … … 382 386 OID.erase (OID.end()-3, OID.end()); 383 387 tail = substr (OID.end()-3, OID.end()); 388 if (tail == ".rt") { 389 get_top (inOID, OID); 390 return OID; 391 } 384 392 } 385 393
Note:
See TracChangeset
for help on using the changeset viewer.