*/  }
namespace DvbSi {Filter::Filter(Database::Ptr db, bool attach) : database(db), attached(false){   if (attach)      Attach();}Filter::~Filter() {   //detach here so that database knows   Detach();}void Filter::Attach() {   //database checks for attached, no need here   database->Attach(this); }void Filter::Detach() {   //database checks for attached, no need here   database->Detach(this); }DatabasePtr Filter::getDatabase() {   return database;}RequestFilter::RequestFilter(DatabasePtr db, Request *r)  : Filter(db), request(r){}