Action_Thermostats
ForceAnnealing_with_BondGraph_continued
ForceAnnealing_with_BondGraph_continued_betteresults
Last change
on this file since 780f25 was 56f73b, checked in by Frederik Heber <heber@…>, 14 years ago |
Added config.h also to all header files, code check test ascertain this in the future.
- as we want to use config.h to pass stuff such as MEMDEBUG, NDEBUG,
LOG_OBSERVER, we have to make sure that it is present in each and every
file.
- split up CodeChecks/testsuite.at: each test has its own .at file.
|
-
Property mode
set to
100644
|
File size:
639 bytes
|
Rev | Line | |
---|
[9d8609] | 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 |
|
---|
[56f73b] | 11 | // include config.h
|
---|
| 12 | #ifdef HAVE_CONFIG_H
|
---|
| 13 | #include <config.h>
|
---|
| 14 | #endif
|
---|
| 15 |
|
---|
| 16 |
|
---|
[9d8609] | 17 | #include <boost/function.hpp>
|
---|
| 18 |
|
---|
| 19 | #include "Views/StringView.hpp"
|
---|
| 20 |
|
---|
[ef81b0] | 21 | /**
|
---|
| 22 | * Wrapper to produce a StringView from any method that returns a String.
|
---|
| 23 | */
|
---|
[9d8609] | 24 | class MethodStringView : public StringView
|
---|
| 25 | {
|
---|
| 26 | public:
|
---|
[24a5e0] | 27 | MethodStringView(boost::function<std::string()>);
|
---|
[9d8609] | 28 | virtual ~MethodStringView();
|
---|
| 29 |
|
---|
[24a5e0] | 30 | virtual const std::string toString();
|
---|
[9d8609] | 31 |
|
---|
| 32 | private:
|
---|
[24a5e0] | 33 | boost::function<std::string()> displayMethod;
|
---|
[9d8609] | 34 | };
|
---|
| 35 |
|
---|
| 36 | #endif /* METHODSTRINGVIEW_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.