Last change
on this file since 401b97 was 98a2987, checked in by Tillmann Crueger <crueger@…>, 16 years ago |
Added -Wall flag and fixed several small hickups
|
-
Property mode
set to
100644
|
File size:
487 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * StreamStringView.cpp
|
---|
3 | *
|
---|
4 | * Created on: Dec 14, 2009
|
---|
5 | * Author: crueger
|
---|
6 | */
|
---|
7 |
|
---|
8 | #include <sstream>
|
---|
9 | #include <iostream>
|
---|
10 |
|
---|
11 | #include "StreamStringView.hpp"
|
---|
12 |
|
---|
13 | using namespace std;
|
---|
14 |
|
---|
15 | StreamStringView::StreamStringView(boost::function<void(ostream *)> _displayMethod) :
|
---|
16 | StringView(),
|
---|
17 | displayMethod(_displayMethod)
|
---|
18 | {}
|
---|
19 |
|
---|
20 | StreamStringView::~StreamStringView()
|
---|
21 | {}
|
---|
22 |
|
---|
23 | const string StreamStringView::toString() {
|
---|
24 | stringstream s;
|
---|
25 | displayMethod(dynamic_cast<ostream *>(&s));
|
---|
26 | return s.str();
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.