Changeset 248 for trunk/gsdl/src/recpt/OIDtools.h
- Timestamp:
- 1999-04-30T13:59:44+12:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/OIDtools.h
r211 r248 15 15 16 16 #include "text_t.h" 17 #include "recptproto.h" 17 18 18 19 // get first four characters of whatever string is passed in … … 33 34 bool is_classification (const text_t &OID); 34 35 35 // don't know how to do this yet either ...36 bool contains_text (const text_t &OID);37 38 36 // get_parents_array loads the parents array with all the parents of the 39 37 // document or classification specified by OID … … 41 39 void get_parents_array (const text_t &OID, text_tarray &parents); 42 40 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); 41 // get_info does a protocol call and returns (in response) the info 42 // associated with OID. The metadata array should be loaded with whatever 43 // metadata fields are to be requested 44 bool get_info (const text_t &OID, const text_t &collection, 45 const text_tarray &metadata, recptproto *collectproto, 46 FilterResponse_t &response, ostream &logout); 47 48 // get_children does a protocol call and returns (in response) the OIDs and 49 // metadata of all the children of OID. The metadata array should be loaded 50 // with whatever metadata fields are to be requested. 51 bool get_children (const text_t &OID, const text_t &collection, 52 const text_tarray &metadata, recptproto *collectproto, 53 FilterResponse_t &response, ostream &logout); 54 55 // get_first_child does a protocol call and returns (in child) the OID 56 // of the first child of OID if it exists 57 bool get_first_child (const text_t &OID, text_t &child, const text_t &collection, 58 recptproto *collectproto, ostream logout); 46 59 47 60 // get_parent returns the parent of the document or classification 48 61 // specified by OID 49 62 text_t get_parent (text_t OID); 50 51 // get_first_child loads child with the first52 // child of OID53 void get_first_child(const text_t &OID, text_t &child);54 63 64 // takes an OID like ".2.3 and replaces the " with parent 65 void translate_parent (text_t &OID, const text_t &parent); 66 67 // shrink_parent does the opposite to translate_parent 68 void shrink_parent (text_t &OID); 69 70 // checks if OID uses ".fc", ".lc", ".pr", ".ns", 71 // or ".ps" syntax (first child, last child, parent, 72 // next sibling, previous sibling) 73 bool needs_translating (const text_t &OID); 55 74 56 75 #endif
Note:
See TracChangeset
for help on using the changeset viewer.