2
* debtags - Implement package tags support for Debian
4
* Copyright (C) 2003--2006 Enrico Zini <enrico@debian.org>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
#include <tagcoll/input/stdio.h>
24
#include <tagcoll/TextFormat.h>
27
template<typename OUT>
28
void Ept::readCollection(const string& file, const OUT& out)
32
input::Stdio input(stdin, "<stdin>");
33
textformat::parse(input, ept::t::cache::debtags::stringToEpt<ept::configuration::Apt>(agg, this->vocabulary(), out));
37
input::Stdio input(file);
38
textformat::parse(input, ept::t::cache::debtags::stringToEpt<ept::configuration::Apt>(agg, this->vocabulary(), out));
42
template<typename OUT>
43
void Ept::readCollectionRaw(const string& file, const OUT& out)
47
input::Stdio input(stdin, "<stdin>");
48
textformat::parse(input, out);
52
input::Stdio input(file);
53
textformat::parse(input, out);