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