source: trunk/lib/HtmlStream.cc @ 687

Last change on this file since 687 was 687, checked in by Peter Johansson, 13 years ago

Merged patch release 0.6.6 to trunk. Delta 0.6.6 - 0.6.5

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
RevLine 
[234]1// $Id: HtmlStream.cc 687 2008-08-04 19:37:10Z peter $
2
3/*
[380]4  Copyright (C) 2007 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
10  the Free Software Foundation; either version 2 of the License, or
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
19  along with this program; if not, write to the Free Software
20  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21  02111-1307, USA.
22*/
23
24#include "HtmlStream.h"
[606]25#include "HtmlBuf.h"
[234]26
27#include <string>
28
29namespace theplu{
30namespace svndigest{
31
32  HtmlStream::HtmlStream(std::ostream& os)
[606]33    : std::ostream(), 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.