Ignore:
Timestamp:
1999-07-07T17:47:41+12:00 (25 years ago)
Author:
sjboddie
Message:

changed around the way browsetools works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/OIDtools.cpp

    r280 r346  
    1212/*
    1313   $Log$
     14   Revision 1.10  1999/07/07 05:47:41  sjboddie
     15   changed around the way browsetools works
     16
    1417   Revision 1.9  1999/06/16 23:51:53  sjboddie
    1518   added a strip_suffix function
     
    302305            metadata, collectproto, response, logout);
    303306}
     307
     308// is_child_of returns true if OID2 is a child of OID1
     309bool 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.