source: molecuilder/src/Views/MethodStringView.hpp@ 98a2987

Last change on this file since 98a2987 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: 569 bytes
Line 
1/*
2 * MethodStringView.hpp
3 *
4 * Created on: Dec 14, 2009
5 * Author: crueger
6 */
7
8#ifndef METHODSTRINGVIEW_HPP_
9#define METHODSTRINGVIEW_HPP_
10
11#include <boost/function.hpp>
12
13#include "Views/StringView.hpp"
14
15/**
16 * Wrapper to produce a StringView from any method that returns a String.
17 */
18class MethodStringView : public StringView
19{
20public:
21 MethodStringView(boost::function<std::string()>);
22 virtual ~MethodStringView();
23
24 virtual const std::string toString();
25
26private:
27 boost::function<std::string()> displayMethod;
28};
29
30#endif /* METHODSTRINGVIEW_HPP_ */
Note: See TracBrowser for help on using the repository browser.