source: molecuilder/src/Views/MethodStringView.cpp@ df55a0

Last change on this file since df55a0 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: 449 bytes
Line 
1/*
2 * MethodStringView.cpp
3 *
4 * Created on: Dec 14, 2009
5 * Author: crueger
6 */
7
8#include "MethodStringView.hpp"
9
10MethodStringView::MethodStringView(boost::function<string()> _displayMethod) :
11StringView(),
12displayMethod(_displayMethod)
13{
14 // TODO Auto-generated constructor stub
15
16}
17
18MethodStringView::~MethodStringView()
19{
20 // TODO Auto-generated destructor stub
21}
22
23
24const string MethodStringView::toString() {
25 return displayMethod();
26}
Note: See TracBrowser for help on using the repository browser.