Last change
on this file since 768 was
768,
checked in by Peter Johansson, 14 years ago
|
Merged patch release 0.6.7 to trunk. Delta 0.6.7 - 0.6.6
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
File size:
1.2 KB
|
Line | |
---|
1 | // $Id: HtmlStream.cc 768 2009-01-31 21:30:37Z peter $ |
---|
2 | |
---|
3 | /* |
---|
4 | Copyright (C) 2007 Jari Häkkinen, Peter Johansson |
---|
5 | Copyright (C) 2008 Peter Johansson |
---|
6 | |
---|
7 | This file is part of svndigest, http://dev.thep.lu.se/svndigest |
---|
8 | |
---|
9 | svndigest is free software; you can redistribute it and/or modify it |
---|
10 | under the terms of the GNU General Public License as published by |
---|
11 | the Free Software Foundation; either version 3 of the License, or |
---|
12 | (at your option) any later version. |
---|
13 | |
---|
14 | svndigest is distributed in the hope that it will be useful, but |
---|
15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
17 | General Public License for more details. |
---|
18 | |
---|
19 | You should have received a copy of the GNU General Public License |
---|
20 | along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
---|
21 | */ |
---|
22 | |
---|
23 | #include "HtmlStream.h" |
---|
24 | #include "HtmlBuf.h" |
---|
25 | |
---|
26 | #include <string> |
---|
27 | |
---|
28 | namespace theplu{ |
---|
29 | namespace svndigest{ |
---|
30 | |
---|
31 | HtmlStream::HtmlStream(std::ostream& os) |
---|
32 | : std::ostream(), hbuf_(*os.rdbuf()), os_(os) |
---|
33 | { |
---|
34 | // setting member variable in base class |
---|
35 | rdbuf(&hbuf_); |
---|
36 | } |
---|
37 | |
---|
38 | |
---|
39 | HtmlStream::~HtmlStream(void) |
---|
40 | { |
---|
41 | } |
---|
42 | |
---|
43 | |
---|
44 | std::ostream& HtmlStream::stream(void) |
---|
45 | { |
---|
46 | return os_; |
---|
47 | } |
---|
48 | |
---|
49 | }} // end of namespace svndigest and namespace theplu |
---|
Note: See
TracBrowser
for help on using the repository browser.