26 #ifndef EPT_DEBTAGS_DEBTAGS_H
27 #define EPT_DEBTAGS_DEBTAGS_H
29 #include <tagcoll/coll/base.h>
30 #include <tagcoll/coll/fast.h>
54 class Debtags :
public tagcoll::coll::Fast<std::string, std::string>
64 typedef tagcoll::coll::Fast<std::string, std::string>
coll_type;
65 typedef std::pair< std::string, std::set<std::string> >
value_type;
86 tagcoll::PatchList<std::string, std::string>
changes()
const;
92 const Patches&
changes()
const {
return m_changes; }
97 void resetChanges() { m_changes.clear(); }
102 void setChanges(
const Patches&
changes);
107 void addChanges(
const Patches&
changes);
111 ItemSet getTaggedItems()
const;
131 void savePatch(
const tagcoll::PatchList<std::string, std::string>& patch);
142 void sendPatch(
const tagcoll::PatchList<std::string, std::string>& patch);
149 template<
typename OUT>
157 template<
typename OUT>
158 void outputSystem(
const std::string& filename,
const OUT& out);
166 template<
typename OUT>
175 template<
typename OUT>
176 void outputPatched(
const std::string& filename,
const OUT& out);