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++
Raw Normal View History

2023-11-29 10:53:20 +00:00
#include "stomp.h"
Stomp::Stomp() {
}
2023-11-29 10:55:52 +00:00
bool Stomp::subscribe(interface::iStompObserver* obs) {
2023-11-29 10:53:20 +00:00
for(int i = 0; i < MAX_OBSERVER; i++) {
2023-11-29 10:55:52 +00:00
if (observer_[i] == nullptr) {
observer_[i] = obs;
return true;
2023-11-29 10:53:20 +00:00
}
2023-11-29 10:55:52 +00:00
}
return false;
}
2023-11-29 10:53:20 +00:00