Changeset 1892

Show
Ignore:
Timestamp:
01.02.2001 15:33:14 (19 years ago)
Author:
sjboddie
Message:

Fixed another couple of things that got lost when the corba branch
was integrated.

Location:
trunk/gsdl/src/recpt
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/nullproto.cpp

    r1860 r1892  
    3737#include "fileutil.h" 
    3838 
     39nullproto::nullproto() { 
     40  cset = NULL; 
     41} 
    3942 
    4043nullproto::~nullproto() { 
    4144} 
    4245 
    43 // add_collection sets up the collectionserver and calls 
    44 // add_collectserver 
    45 /* 
     46// add collection to collectset (this should not be called until after the 
     47// collectset has been added to the protocol with set_collectset() 
    4648void nullproto::add_collection (const text_t &collection, void *recpt,  
    4749                const text_t &gsdlhome, const text_t &gdbmhome) {       
    48                 } 
    49 */ 
     50   
     51  if (cset != NULL) { 
     52    this->cset->add_collection (collection, recpt, gsdlhome, gdbmhome); 
     53  } 
     54} 
     55 
    5056 
    5157// remove_collection deletes the collection server of collection. 
  • trunk/gsdl/src/recpt/nullproto.h

    r1860 r1892  
    3838  collectset           *cset; 
    3939public: 
     40  nullproto(); 
    4041  virtual ~nullproto(); 
    4142 
    4243  // add_collection sets up the collectionserver and calls 
    4344  // add_collectserver 
    44   // virtual void add_collection (const text_t &collection, void *recpt,  
    45   //                         const text_t &gsdlhome, const text_t &gdbmhome); 
     45  virtual void add_collection (const text_t &collection, void *recpt,  
     46                   const text_t &gsdlhome, const text_t &gdbmhome); 
    4647 
    47   // add_collectserver should be called for each collection server 
    48   // before any configuration is done 
    4948  void set_collectset(collectset *set) { this->cset = set; } 
    5049