// vi:set ft=cpp: -*- Mode: C++ -*- /* * (c) 2010 Alexander Warg * economic rights: Technische Universität Dresden (Germany) * * This file is part of TUD:OS and distributed under the terms of the * GNU General Public License 2. * Please see the COPYING-GPL-2 file for details. */ #pragma once #include namespace cxx { class Observer : public H_list_item { public: virtual void notify() = 0; }; class Notifier : public H_list { public: void notify() { for (Iterator i = begin(); i != end(); ++i) i->notify(); } }; }