Ignore:
Timestamp:
2000-07-13T10:21:53+12:00 (24 years ago)
Author:
sjboddie
Message:

merged changes to trunk into New_Config_Format branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/New_Config_Format-branch/gsdl/src/recpt/receptionist.h

    r864 r1279  
    3434#include "cgiargs.h"
    3535#include "display.h"
    36 #include "action.h"
    3736#include "browserclass.h"
    3837#include "recptproto.h"
    3938#include "converter.h"
    4039#include "cfgread.h"
     40#include "action.h"
    4141
    4242// the MACROPRECEDENCE macro is used as a default. override
     
    5151
    5252
     53struct collectioninfo_t {
     54  void clear ();
     55  collectioninfo_t () {clear();}
     56
     57  text_t gsdl_gsdlhome;
     58  text_t gsdl_gdbmhome;
     59
     60  bool info_loaded;
     61  ColInfoResponse_t info;
     62};
     63
     64typedef map<text_t, collectioninfo_t, lttext_t> colinfo_tmap;
     65
     66
    5367struct recptconf {
    5468  text_t gsdlhome;
     
    5872  colinfo_tmap collectinfo;
    5973  text_t httpprefix;
    60   text_t httpimg;
     74  text_t httpimg;    // will equal /images if not set
    6175  text_t gwcgi;
    6276  text_tset macrofiles;
     
    7185  recptconf () {clear();}
    7286};
    73 
    7487
    7588class receptionist {
     
    196209  // list. This can be used to save preferences between sessions.
    197210  text_t get_compressed_arg (cgiargsclass &args, ostream &logout);
     211
     212  // gets collection info from cache if found or
     213  // calls collection server (and updates cache)
     214  // returns NULL if there's an error
     215  ColInfoResponse_t *get_collectinfo_ptr (recptproto *collectproto,
     216                      const text_t &collection,
     217                      ostream &logout);
     218
    198219 
    199220protected:
Note: See TracChangeset for help on using the changeset viewer.