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

Last change on this file since e65cc0 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
RevLine 
[df55a0]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
[da09909]15/**
16 * Wrapper to produce a StringView from any method that returns a String.
17 */
[df55a0]18class MethodStringView : public StringView
19{
20public:
[98a2987]21 MethodStringView(boost::function<std::string()>);
[df55a0]22 virtual ~MethodStringView();
23
[98a2987]24 virtual const std::string toString();
[df55a0]25
26private:
[98a2987]27 boost::function<std::string()> displayMethod;
[df55a0]28};
29
30#endif /* METHODSTRINGVIEW_HPP_ */
Note: See TracBrowser for help on using the repository browser.