Changeset 257 for trunk/gsdl/src/recpt/OIDtools.h
- Timestamp:
- 1999-05-10T15:40:44+12:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/OIDtools.h
r248 r257 17 17 #include "recptproto.h" 18 18 19 // get first four characters of whatever string is passed in20 // OID. This returns the CLSU, HASH etc.21 void get_head (const text_t &OID, text_t &head);22 23 19 // returns (in top) the top level of OID (i.e. everything 24 20 // up until the first dot) … … 27 23 // checks if OID is top level (i.e. contains no dots) 28 24 bool is_top (const text_t &OID); 29 30 // is_classification checks OID to see if it's a classification31 // or a document. I'm not sure how to do this - for now I'll just assume32 // all documents start with HASH and classifications start with something33 // else.34 bool is_classification (const text_t &OID);35 25 36 26 // get_parents_array loads the parents array with all the parents of the … … 46 36 FilterResponse_t &response, ostream &logout); 47 37 38 // has_children returns true if OID has children 39 bool has_children (const text_t &OID, const text_t &collection, 40 recptproto *collectproto, ostream &logout); 41 48 42 // get_children does a protocol call and returns (in response) the OIDs and 49 43 // metadata of all the children of OID. The metadata array should be loaded … … 52 46 const text_tarray &metadata, recptproto *collectproto, 53 47 FilterResponse_t &response, ostream &logout); 54 55 // get_first_child does a protocol call and returns (in child) the OID56 // of the first child of OID if it exists57 bool get_first_child (const text_t &OID, text_t &child, const text_t &collection,58 recptproto *collectproto, ostream logout);59 48 60 49 // get_parent returns the parent of the document or classification … … 73 62 bool needs_translating (const text_t &OID); 74 63 64 // get_contents returns OIDs and metadata of all contents 65 // below (and including) OID. 66 // at present the only metadata being returned for each is 67 // Title and haschildren 68 void get_contents (const text_t &topOID, const text_t &classifytype, int &totalcols, 69 const text_t &collection, recptproto *collectproto, 70 FilterResponse_t &response, ostream &logout); 71 75 72 #endif
Note:
See TracChangeset
for help on using the changeset viewer.