Statistics
| Branch: | Tag: | Revision:

dvbd / src / stringrep.cpp @ 904d298f

History | View | Annotate | Download (1007 Bytes)

1
/*
2
  Copyright 2003 John Knottenbelt
3
  
4
  This program is free software; you can redistribute it and/or modify
5
  it under the terms of the GNU General Public License as published by
6
  the Free Software Foundation; either version 2 of the License, or
7
  (at your option) any later version.
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.
13
 
14
  You should have received a copy of the GNU General Public License
15
  along with this program; if not, write to the Free Software
16
  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
17
*/
18

    
19
#include "stringrep.h"
20
#include <sstream>
21

    
22
StringRep::~StringRep()
23
{
24
}
25

    
26
std::ostream& operator << (std::ostream &o, const StringRep &s)
27
{
28
  return s.printOn(o);
29
}
30

    
31
std::string StringRep::toString() const
32
{
33
  std::ostringstream s;
34
  s << *this;
35
  return s.str();
36
}
37