PureMVC PureMVC
|
00001 // IObserver.hpp 00002 // PureMVC_C++ 00003 // 00004 // PureMVC Port to C++ by Tang Khai Phuong <phuong.tang@puremvc.org> 00005 // PureMVC - Copyright(c) 2006-2011 Futurescale, Inc., Some rights reserved. 00006 // Your reuse is governed by the Creative Commons Attribution 3.0 License 00007 // 00008 00009 #if !defined(__PUREMVC_INTERFACES_IOBSERVER_HPP__) 00010 #define __PUREMVC_INTERFACES_IOBSERVER_HPP__ 00011 00012 // STL include 00013 #include <string> 00014 // PureMVC include 00015 #if !defined(__PUREMVC_HPP__) 00016 #define __PUREMVC_INCLUDE__ 00017 #include "../PureMVC.hpp" 00018 #endif /* __PUREMVC_HPP__ */ 00019 00020 #include "INotification.hpp" 00021 00022 namespace PureMVC 00023 { 00024 namespace Interfaces 00025 { 00065 struct PUREMVC_API IObserver 00066 { 00072 virtual void notifyObserver(INotification const& notification) = 0; 00073 00080 virtual bool compareNotifyContext(void const* object) const = 0; 00081 00085 virtual ~IObserver(void); 00086 }; 00087 } 00088 } 00089 00090 #endif /* __PUREMVC_INTERFACES_IOBSERVER_HPP__ */