21 #include <tagcoll/diskindex/mmap.h>
22 #include <tagcoll/input/base.h>
27 #ifndef EPT_DEBTAGS_VOCABULARYMERGER_H
28 #define EPT_DEBTAGS_VOCABULARYMERGER_H
44 virtual void encode(
char* buf)
const;
46 class TagIndexer :
public tagcoll::diskindex::MMapIndexer
54 virtual void encode(
char* buf)
const;
56 class TagData :
public std::map<std::string, std::string>
67 class FacetData :
public std::map<std::string, std::string>
71 std::map<std::string, TagData>
tags;
81 std::map<std::string, FacetData>
facets;
101 void read(tagcoll::input::Input& input);
106 void write(
const std::string& fname);
111 void write(FILE* out);
140 bool hasTag(
const std::string& fullname)
const;
145 int tagID(
const std::string& fullname)
const;
150 std::set<std::string>
tagNames()
const;