source: molecuilder/src/Views/MethodStringView.hpp@ da09909

Last change on this file since da09909 was da09909, checked in by Tillmann Crueger <crueger@…>, 16 years ago

Improved documentation for menu framework.

  • Property mode set to 100644
File size: 554 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<string()>);
22 virtual ~MethodStringView();
23
24 virtual const string toString();
25
26private:
27 boost::function<string()> displayMethod;
28};
29
30#endif /* METHODSTRINGVIEW_HPP_ */
Note: See TracBrowser for help on using the repository browser.