|
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
|
| 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 | */
|
|---|
| 18 | class MethodStringView : public StringView
|
|---|
| 19 | {
|
|---|
| 20 | public:
|
|---|
| 21 | MethodStringView(boost::function<std::string()>);
|
|---|
| 22 | virtual ~MethodStringView();
|
|---|
| 23 |
|
|---|
| 24 | virtual const std::string toString();
|
|---|
| 25 |
|
|---|
| 26 | private:
|
|---|
| 27 | boost::function<std::string()> displayMethod;
|
|---|
| 28 | };
|
|---|
| 29 |
|
|---|
| 30 | #endif /* METHODSTRINGVIEW_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.