Changeset 11481 for trunk/FACT++/src/EventImp.h
- Timestamp:
- 07/20/11 08:03:38 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventImp.h
r11246 r11481 5 5 #include <vector> 6 6 7 #include <boost/function.hpp> 8 //#include <boost/bind/arg.hpp> 7 #include <functional> 9 8 10 9 #include "Time.h" … … 16 15 17 16 /// http://www.boost.org/doc/libs/1_45_0/libs/bind/bind.html 18 boost::function<int(const EventImp &)> fFunction;17 std::function<int(const EventImp &)> fFunction; 19 18 20 19 public: … … 31 30 // Function handling 32 31 EventImp &AssignFunction(const boost::function<int(const EventImp &)> &func) { fFunction = func; return *this; } 33 bool HasFunc() const { return !fFunction.empty(); }34 int ExecFunc() const { return HasFunc()? fFunction(*this) : -1; }32 bool HasFunc() const { return fFunction; } 33 int ExecFunc() const { return fFunction ? fFunction(*this) : -1; } 35 34 36 35 // Configuration helper
Note:
See TracChangeset
for help on using the changeset viewer.