ForceAnnealing_oldresults
IndependentFragmentGrids_IntegrationTest
|
Last change
on this file since ef8667 was 56f73b, checked in by Frederik Heber <heber@…>, 15 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
|
| 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 config.h
|
|---|
| 12 | #ifdef HAVE_CONFIG_H
|
|---|
| 13 | #include <config.h>
|
|---|
| 14 | #endif
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 | #include <boost/function.hpp>
|
|---|
| 18 |
|
|---|
| 19 | #include "Views/StringView.hpp"
|
|---|
| 20 |
|
|---|
| 21 | /**
|
|---|
| 22 | * Wrapper to produce a StringView from any method that returns a String.
|
|---|
| 23 | */
|
|---|
| 24 | class MethodStringView : public StringView
|
|---|
| 25 | {
|
|---|
| 26 | public:
|
|---|
| 27 | MethodStringView(boost::function<std::string()>);
|
|---|
| 28 | virtual ~MethodStringView();
|
|---|
| 29 |
|
|---|
| 30 | virtual const std::string toString();
|
|---|
| 31 |
|
|---|
| 32 | private:
|
|---|
| 33 | boost::function<std::string()> displayMethod;
|
|---|
| 34 | };
|
|---|
| 35 |
|
|---|
| 36 | #endif /* METHODSTRINGVIEW_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.