11 #include "observerpattern/BaseMessage.hpp" 12 #include "observerpattern/ObserverTable.hpp" 82 std::vector<std::shared_ptr<BaseMessage const>> messages,
90 inline Response::Status
92 return notify(table, std::vector<std::shared_ptr<BaseMessage const>>{message}, printFlag);
106 std::vector<std::shared_ptr<BaseMessage const>> messages,
108 std::string
const &description);
116 std::shared_ptr<BaseMessage const> message,
118 std::string
const &description) {
121 std::vector<std::shared_ptr<BaseMessage const>>{message},
void notifyLoop(ObserverTable const &table, std::vector< std::shared_ptr< BaseMessage const >> messages, bool printFlag, std::string const &description)
Response::Status notify(ObserverTable const &table, std::shared_ptr< BaseMessage const > message, bool printFlag)
virtual void addObserver(Observer *observer)
void notifyLoop(ObserverTable const &table, std::shared_ptr< BaseMessage const > message, bool printFlag, std::string const &description)
Response::Status notify(ObserverTable const &table, std::vector< std::shared_ptr< BaseMessage const >> messages, bool printFlag)