00001 #ifndef TAGCOLL_TDB_READONLY_DISK_INDEX_H
00002 #define TAGCOLL_TDB_READONLY_DISK_INDEX_H
00003
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
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
00070 #endif