This repository has been archived on 2024-10-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
SDi-STOMP/stomp.cpp
T
2023-11-29 11:55:52 +01:00

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;
}