Ignore:
Timestamp:
1999-05-10T15:40:44+12:00 (25 years ago)
Author:
sjboddie
Message:

lots of changes - slowly getting document action sorted out

File:
1 edited

Legend:

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

    r248 r257  
    1717#include "recptproto.h"
    1818
    19 // get first four characters of whatever string is passed in
    20 // OID. This returns the CLSU, HASH etc.
    21 void get_head (const text_t &OID, text_t &head);
    22 
    2319// returns (in top) the top level of OID (i.e. everything
    2420// up until the first dot)
     
    2723// checks if OID is top level (i.e. contains no dots)
    2824bool is_top (const text_t &OID);
    29 
    30 // is_classification checks OID to see if it's a classification
    31 // or a document. I'm not sure how to do this - for now I'll just assume
    32 // all documents start with HASH and classifications start with something
    33 // else.
    34 bool is_classification (const text_t &OID);
    3525
    3626// get_parents_array loads the parents array with all the parents of the
     
    4636           FilterResponse_t &response, ostream &logout);
    4737
     38// has_children returns true if OID has children
     39bool has_children (const text_t &OID, const text_t &collection,
     40           recptproto *collectproto, ostream &logout);
     41
    4842// get_children does a protocol call and returns (in response) the OIDs and
    4943// metadata of all the children of OID. The metadata array should be loaded
     
    5246           const text_tarray &metadata, recptproto *collectproto,
    5347           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);
    5948
    6049// get_parent returns the parent of the document or classification
     
    7362bool needs_translating (const text_t &OID);
    7463
     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
     68void 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
    7572#endif
Note: See TracChangeset for help on using the changeset viewer.