source: trunk/lib/HtmlStream.cc

Last change on this file was 1571, checked in by Peter Johansson, 6 years ago

merge patch release 0.10.1 into trunk

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