This repository has been archived on 2024-10-30. You can view files and clone it, but cannot push or open issues or pull requests.
SDi-STOMP/stomp.cpp

18 lines
275 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;
}