source: trunk/lib/HtmlStream.cc @ 1199

Last change on this file since 1199 was 978, checked in by Peter Johansson, 12 years ago

refs #429. Convert copyright statements to UTF-8

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