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

17 lines
296 B
C++
Raw Normal View History

2023-11-29 10:53:20 +00:00
#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;