1 //******************************************************************
3 // Copyright 2014 Intel Corporation All Rights Reserved.
4 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
8 /// @brief This file contains the declaration of classes and its members related to
11 #ifndef __OCOBSERVER_H
12 #define __OCOBSERVER_H
16 #include "OCObserver.h"
20 /* It allows an app to register a method handler to monitor for
21 state changes on a resource. Not all resource attributes are observable.
28 virtual ~OCObserver(void);
31 /* It is likely that these signatures will change somewhat: */
32 template <typename HandlerT, typename ResourceT>
33 void bind_observer(HandlerT handler, ResourceT& resource, const std::string& name)
36 // unbind the specified handler:
37 template <typename HandlerT, typename ResourceT>
38 void unbind_observer(HandlerT handler, ResourceT& resource)
42 template <typename HandlerT, typename ResourceT>
43 void unbind_observer(HandlerT handler, ResourceT& resource, const std::string& name)
48 #endif //__OCOBSERVER_H