Ignore:
Timestamp:
1999-04-07T10:20:35+12:00 (25 years ago)
Author:
rjmcnab
Message:

Got browsefilter working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/colservr/collectserver.h

    r220 r226  
    1717#include "text_t.h"
    1818#include "comtypes.h"
    19 #include "maptools.h"
     19#include "filter.h"
     20#include "source.h"
    2021
    2122#if defined(GSDL_USE_OBJECTSPACE)
     
    4041  text_t collection;
    4142  text_t collectdir;
    42   stringmap indexmap;
    43   stringmap subcollectionmap;
    44   stringmap languagemap;
    4543};
    4644
     
    5048  colservrconf configinfo;
    5149  ColInfoResponse_t collectinfo;
    52   InfoFilterOptionsResponse_t filterinfo;
     50
     51  filtermapclass filters;
     52  sourcelistclass sources;
    5353
    5454public:
    5555  collectserver ();
    5656  virtual ~collectserver ();
     57
     58  // add_filter makes another filter available to the collection server
     59  // the filter remains the property of the calling code and that
     60  // code should destroy the filter after the collection server has been
     61  // destroyed.
     62  void add_filter (filterclass *thefilter) {filters.addfilter(thefilter);}
     63  filtermapclass *get_filtermap_ptr () {return &filters;}
     64
     65  // add_source makes another source available to the collection server
     66  // the source remains the property of the calling code and that
     67  // code should destroy the source after the collection server has been
     68  // destroyed.
     69  void add_source (sourceclass *thesource) {sources.addsource(thesource);}
     70  sourcelistclass *get_sourcelist_ptr () {return &sources;}
    5771
    5872  // configure should be called for each line in the
     
    8397               FilterResponse_t &response,
    8498               comerror_t &err, ostream &logout);
    85 
    86 protected:
    87   void update_enumfiltopt (text_t optionname, const text_tarray &options);
    8899};
    89100
Note: See TracChangeset for help on using the changeset viewer.