Ignore:
Timestamp:
1999-04-30T13:59:44+12:00 (25 years ago)
Author:
sjboddie
Message:

lots of stuff - getting documentaction working (documentaction replaces
old browseaction)

File:
1 edited

Legend:

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

    r211 r248  
    1515
    1616#include "text_t.h"
     17#include "recptproto.h"
    1718
    1819// get first four characters of whatever string is passed in
     
    3334bool is_classification (const text_t &OID);
    3435
    35 // don't know how to do this yet either ...
    36 bool contains_text (const text_t &OID);
    37 
    3836// get_parents_array loads the parents array with all the parents of the
    3937// document or classification specified by OID
     
    4139void get_parents_array (const text_t &OID, text_tarray &parents);
    4240
    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
     44bool 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.
     51bool 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
     57bool get_first_child (const text_t &OID, text_t &child, const text_t &collection,
     58              recptproto *collectproto, ostream logout);
    4659
    4760// get_parent returns the parent of the document or classification
    4861// specified by OID
    4962text_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);
    5463
     64// takes an OID like ".2.3 and replaces the " with parent
     65void translate_parent (text_t &OID, const text_t &parent);
     66
     67// shrink_parent does the opposite to translate_parent
     68void 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)
     73bool needs_translating (const text_t &OID);
    5574
    5675#endif
Note: See TracChangeset for help on using the changeset viewer.