17 lines
296 B
C++
17 lines
296 B
C++
|
#include "stomp.h"
|
||
|
|
||
|
Stomp::Stomp() {
|
||
|
|
||
|
}
|
||
|
|
||
|
bool Stomp::subscribe(interface::iStompObserver obs) {
|
||
|
for(int i = 0; i < MAX_OBSERVER; i++) {
|
||
|
if (observer_[i] == nullptr) {
|
||
|
observer_[i] = obs;
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
return false;
|
||
|
|
||
|
|