Changeset 12784 for trunk/FACT++
- Timestamp:
- 01/30/12 16:57:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventImp.h
r11517 r12784 29 29 30 30 // Function handling 31 EventImp &AssignFunction(const boost::function<int(const EventImp &)> &func) { fFunction = func; return *this; }31 EventImp &AssignFunction(const std::function<int(const EventImp &)> &func) { fFunction = func; return *this; } 32 32 bool HasFunc() const { return (bool)fFunction; } 33 33 int ExecFunc() const { return fFunction ? fFunction(*this) : -1; } 34 34 35 35 // Configuration helper 36 EventImp &operator()(const boost::function<int(const EventImp &)> &func) { return AssignFunction(func); }36 EventImp &operator()(const std::function<int(const EventImp &)> &func) { return AssignFunction(func); } 37 37 EventImp &operator()(const std::string str) { SetDescription(str); return *this; } 38 38 EventImp &operator()(const char *str) { SetDescription(str); return *this; }
Note:
See TracChangeset
for help on using the changeset viewer.