Changeset 15759

Show
Ignore:
Timestamp:
28.05.2008 15:11:49 (11 years ago)
Author:
mdewsnip
Message:

(Adding dynamic classifiers) Now creates a sqlbrowsefilter if sqlite is being used.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/src/colservr/collectset.cpp

    r15745 r15759  
    3030#include "gsdlsitecfg.h" 
    3131#include "gdbmclass.h" 
     32#include "fileutil.h" 
    3233#include "filter.h" 
    3334#include "browsefilter.h" 
     35#include "sqlbrowsefilter.h" 
    3436#include "queryfilter.h" 
    3537#include "mgqueryfilter.h" 
     
    3941#include "lucenesource.h" 
    4042 
    41 #include "fileutil.h" 
    4243#include <assert.h> 
    4344 
     
    231232  if (infodbtype == "sqlite") 
    232233  { 
    233     db_ptr = new sqlitedbclass(); 
     234    sqlitedbclass *sql_db_ptr = new sqlitedbclass(); 
     235    db_ptr = sql_db_ptr; 
     236 
     237    // add a sql browse filter 
     238    sqlbrowsefilterclass *sqlbrowsefilter = new sqlbrowsefilterclass(); 
     239    sqlbrowsefilter->set_sql_db_ptr(sql_db_ptr); 
     240    cserver->add_filter (sqlbrowsefilter);   
    234241  } 
    235242#endif