diff options
Diffstat (limited to 'ept/debtags/maint/sourcedir.tcc')
-rw-r--r-- | ept/debtags/maint/sourcedir.tcc | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/ept/debtags/maint/sourcedir.tcc b/ept/debtags/maint/sourcedir.tcc deleted file mode 100644 index ab31e9b..0000000 --- a/ept/debtags/maint/sourcedir.tcc +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef EPT_DEBTAGS_SOURCEDIR_TCC -#define EPT_DEBTAGS_SOURCEDIR_TCC - -/** @file - * @author Enrico Zini <enrico@enricozini.org> - * Debtags data source directory access - */ -#include <ept/debtags/maint/sourcedir.h> - -#include <tagcoll/input/zlib.h> -#include <tagcoll/input/stdio.h> -#include <wibble/sys/fs.h> - -using namespace wibble; - -namespace ept { -namespace debtags { - -template<typename OUT> -void SourceDir::readTags(OUT out) -{ - if (!exists()) return; - - for (const_iterator d = begin(); d != end(); ++d) - { - string name = *d; - FileType type = fileType(name); - if (type == TAG) - { - // Read uncompressed data - tagcoll::input::Stdio in(m_path + "/" + name); - - // Read the collection - tagcoll::textformat::parse(in, out); - } - else if (type == TAGGZ) - { - // Read compressed data - tagcoll::input::Zlib in(m_path + "/" + name); - - // Read the collection - tagcoll::textformat::parse(in, out); - } - } -} - -} -} - -#include <tagcoll/TextFormat.tcc> - -#endif - -// -*- C++ -*- -// vim:set ts=4 sw=4: |