Ignore:
Timestamp:
1999-03-25T15:13:42+12:00 (25 years ago)
Author:
sjboddie
Message:

More library functions for dealing with OIDs. Many of them just
return dummy data at present

File:
1 edited

Legend:

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

    r189 r211  
    1717
    1818// 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.
     20void get_head (const text_t &OID, text_t &head);
    2221
    23 // returns (in top) the top level of targetdoc (i.e. everything
     22// returns (in top) the top level of OID (i.e. everything
    2423// up until the first dot)
    25 void get_top (const text_t &targetdoc, text_t &top);
     24void get_top (const text_t &OID, text_t &top);
    2625
    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)
     27bool is_top (const text_t &OID);
    2928
     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.
     33bool is_classification (const text_t &OID);
     34
     35// don't know how to do this yet either ...
     36bool 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
     41void 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
     45void 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
     49text_t get_parent (text_t OID);
     50 
     51// get_first_child loads child with the first
     52// child of OID
     53void get_first_child(const text_t &OID, text_t &child);
    3054
    3155
Note: See TracChangeset for help on using the changeset viewer.