Changeset 346 for trunk/gsdl/src/recpt/OIDtools.cpp
- Timestamp:
- 1999-07-07T17:47:41+12:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/OIDtools.cpp
r280 r346 12 12 /* 13 13 $Log$ 14 Revision 1.10 1999/07/07 05:47:41 sjboddie 15 changed around the way browsetools works 16 14 17 Revision 1.9 1999/06/16 23:51:53 sjboddie 15 18 added a strip_suffix function … … 302 305 metadata, collectproto, response, logout); 303 306 } 307 308 // is_child_of returns true if OID2 is a child of OID1 309 bool is_child_of(const text_t &OID1, const text_t &OID2) { 310 311 text_t parent = get_parent(OID2); 312 313 while (!parent.empty()) { 314 if (parent == OID1) return true; 315 parent = get_parent(parent); 316 } 317 return false; 318 }
Note:
See TracChangeset
for help on using the changeset viewer.