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