source: molecuilder/src/Views/StreamStringView.cpp@ 5dba7a

Last change on this file since 5dba7a 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
RevLine 
[df55a0]1/*
2 * StreamStringView.cpp
3 *
4 * Created on: Dec 14, 2009
5 * Author: crueger
6 */
7
8#include <sstream>
[98a2987]9#include <iostream>
[df55a0]10
11#include "StreamStringView.hpp"
12
[98a2987]13using namespace std;
14
15StreamStringView::StreamStringView(boost::function<void(ostream *)> _displayMethod) :
[df55a0]16StringView(),
17displayMethod(_displayMethod)
[98a2987]18{}
[df55a0]19
20StreamStringView::~StreamStringView()
[98a2987]21{}
[df55a0]22
23const string StreamStringView::toString() {
24 stringstream s;
[98a2987]25 displayMethod(dynamic_cast<ostream *>(&s));
[df55a0]26 return s.str();
27}
Note: See TracBrowser for help on using the repository browser.