Apply GPLv3 to all sources
[Yara.git] / lib / Yara / Renderer.h
blob8fa4a414d7a6434970d0264d0f4512382d57cf95
1 /*
2 * Yara: Yet Another RSS Aggregator
3 * Copyright (C) 2007 Ronald Landheer-Cieslak
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #ifndef _yara_renderer_h
18 #define _yara_renderer_h
20 #include "Details/prologue.h"
21 #include <ostream>
23 namespace Yara
25 class Parser;
26 class Template;
27 namespace Details
29 struct ChannelInfo;
30 struct ItemInfo;
32 class Yara_API Renderer
34 public :
35 Renderer(const Template & _template);
36 ~Renderer();
38 void render(std::ostream & target, const Parser & parser);
40 private :
41 struct Data;
43 // Neither CopyConstructible nor Assignable
44 Renderer(const Renderer &);
45 Renderer & operator=(const Renderer &);
47 Data * data_;
51 #endif