| 603 | } |
| 604 | |
| 605 | void removeDevice(Freenect2ReplayDevice *device) |
| 606 | { |
| 607 | DeviceVector::iterator it = std::find(devices_.begin(), devices_.end(), device); |
| 608 | |
| 609 | if(it != devices_.end()) |
| 610 | { |
| 611 | devices_.erase(it); |
| 612 | } |
| 613 | else |
| 614 | { |
| 615 | LOG_WARNING << "tried to remove a REPLAY device, which is not in the internal device list!"; |
| 616 | } |
| 617 | } |
| 618 | |
| 619 | void clearDevices() |
| 620 | { |