Last change
on this file since 057b77 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:
488 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * StreamStringView.hpp
|
---|
3 | *
|
---|
4 | * Created on: Dec 14, 2009
|
---|
5 | * Author: crueger
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef STREAMSTRINGVIEW_HPP_
|
---|
9 | #define STREAMSTRINGVIEW_HPP_
|
---|
10 |
|
---|
11 | #include <boost/function.hpp>
|
---|
12 |
|
---|
13 | #include "Views/StringView.hpp"
|
---|
14 |
|
---|
15 | class StreamStringView : public StringView
|
---|
16 | {
|
---|
17 | public:
|
---|
18 | StreamStringView(boost::function<void(ofstream *)>);
|
---|
19 | virtual ~StreamStringView();
|
---|
20 |
|
---|
21 | virtual const string toString();
|
---|
22 |
|
---|
23 | private:
|
---|
24 | boost::function<void(ofstream *)> displayMethod;
|
---|
25 | };
|
---|
26 |
|
---|
27 | #endif /* STREAMSTRINGVIEW_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.