source: molecuilder/src/Views/StreamStringView.cpp@ 33bc66

Last change on this file since 33bc66 was df55a0, checked in by Frederik Heber <heber@…>, 16 years ago

Added basic View functionality. - Added DisplayMenuItem to show certain types of Views - Added Views to make StringViews from methods producing strings and from methods taking streams Signed-off-by: Tillmann Crueger <crueger@…>

  • Property mode set to 100644
File size: 519 bytes
Line 
1/*
2 * StreamStringView.cpp
3 *
4 * Created on: Dec 14, 2009
5 * Author: crueger
6 */
7
8#include <sstream>
9
10#include "StreamStringView.hpp"
11
12StreamStringView::StreamStringView(boost::function<void(ofstream *)> _displayMethod) :
13StringView(),
14displayMethod(_displayMethod)
15{
16 // TODO Auto-generated constructor stub
17
18}
19
20StreamStringView::~StreamStringView()
21{
22 // TODO Auto-generated destructor stub
23}
24
25const string StreamStringView::toString() {
26 stringstream s;
27 displayMethod((ofstream *)&s);
28 return s.str();
29}
Note: See TracBrowser for help on using the repository browser.