Changeset 40f2e6 for src/Patterns/Observer/Observable.cpp
- Timestamp:
- Dec 13, 2011, 9:46:12 AM (14 years ago)
- Children:
- 2c11c1
- Parents:
- 75d156
- git-author:
- Frederik Heber <heber@…> (12/02/11 10:05:36)
- git-committer:
- Frederik Heber <heber@…> (12/13/11 09:46:12)
- File:
-
- 1 edited
-
src/Patterns/Observer/Observable.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Patterns/Observer/Observable.cpp
r75d156 r40f2e6 273 273 } 274 274 275 void Observable::signOn(Observer *target, Notification_ptr notification) const 276 { 275 void Observable::signOn(Observer *target, size_t channelno) const 276 { 277 Notification_ptr notification = getChannel(channelno); 277 278 notification->addObserver(target); 278 279 } 279 280 280 void Observable::signOff(Observer *target, Notification_ptr notification) const 281 { 281 void Observable::signOff(Observer *target, size_t channelno) const 282 { 283 Notification_ptr notification = getChannel(channelno); 282 284 notification->removeObserver(target); 283 285 }
Note:
See TracChangeset
for help on using the changeset viewer.
