Changeset 211 for trunk/gsdl/src/recpt/OIDtools.h
- Timestamp:
- 1999-03-25T15:13:42+12:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/OIDtools.h
r189 r211 17 17 18 18 // get first four characters of whatever string is passed in 19 // targetdoc. targetdoc will normally be either a document 20 // or classification OID so this returns the CLSU, HASH etc. 21 void get_head (const text_t &targetdoc, text_t &head); 19 // OID. This returns the CLSU, HASH etc. 20 void get_head (const text_t &OID, text_t &head); 22 21 23 // returns (in top) the top level of targetdoc(i.e. everything22 // returns (in top) the top level of OID (i.e. everything 24 23 // up until the first dot) 25 void get_top (const text_t & targetdoc, text_t &top);24 void get_top (const text_t &OID, text_t &top); 26 25 27 // checks if targetdoc is top level of a document(i.e. contains no dots)28 bool is_top (const text_t & targetdoc);26 // checks if OID is top level (i.e. contains no dots) 27 bool is_top (const text_t &OID); 29 28 29 // is_classification checks OID to see if it's a classification 30 // or a document. I'm not sure how to do this - for now I'll just assume 31 // all documents start with HASH and classifications start with something 32 // else. 33 bool is_classification (const text_t &OID); 34 35 // don't know how to do this yet either ... 36 bool contains_text (const text_t &OID); 37 38 // get_parents_array loads the parents array with all the parents of the 39 // document or classification specified by OID 40 // note that this function doesn't clear the parents array 41 void get_parents_array (const text_t &OID, text_tarray &parents); 42 43 // get_children loads the children array with all the children of the 44 // document or classification specified by targetdoc 45 void get_children_array (const text_t &OID, text_tarray &children); 46 47 // get_parent returns the parent of the document or classification 48 // specified by OID 49 text_t get_parent (text_t OID); 50 51 // get_first_child loads child with the first 52 // child of OID 53 void get_first_child(const text_t &OID, text_t &child); 30 54 31 55
Note:
See TracChangeset
for help on using the changeset viewer.