TDBReadonlyDiskIndex.h

Go to the documentation of this file.
00001 #ifndef TAGCOLL_TDB_READONLY_DISK_INDEX_H
00002 #define TAGCOLL_TDB_READONLY_DISK_INDEX_H
00003 
00008 /*
00009  * Copyright (C) 2005  Enrico Zini <enrico@debian.org>
00010  *
00011  * This program is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00024  */
00025 
00026 #include <tagcoll/TDBDiskIndex.h>
00027 #include <tagcoll/PatchCollection.h>
00028 
00029 namespace Tagcoll
00030 {
00031 
00036 template<class ITEM, class TAG>
00037 class TDBReadonlyDiskIndex : public PatchCollection<ITEM, TAG>
00038 {
00039 protected:
00040     TDBDiskIndex<ITEM, TAG> diskColl;
00041 
00042 public:
00055     TDBReadonlyDiskIndex(
00056             const std::string& pkgidx,
00057             const std::string& tagidx,
00058             Converter<ITEM, std::string>& fromitem,
00059             Converter<TAG, std::string>& fromtag,
00060             Converter<std::string, ITEM>& toitem,
00061             Converter<std::string, TAG>& totag) :
00062         PatchCollection<ITEM, TAG>(diskColl),
00063         diskColl(pkgidx, tagidx, fromitem, fromtag, toitem, totag, false) {}
00064     virtual ~TDBReadonlyDiskIndex() {}
00065 };
00066 
00067 };
00068 
00069 // vim:set ts=4 sw=4:
00070 #endif

Generated on Sat Jan 17 04:23:33 2009 for libtagcoll by  doxygen 1.5.1