source: molecuilder/src/Views/StreamStringView.cpp@ 401b97

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
13using namespace std;
14
15StreamStringView::StreamStringView(boost::function<void(ostream *)> _displayMethod) :
16StringView(),
17displayMethod(_displayMethod)
18{}
19
20StreamStringView::~StreamStringView()
21{}
22
23const 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.