GestureRecognitionToolkit  Version: 0.2.5
The Gesture Recognition Toolkit (GRT) is a cross-platform, open-source, c++ machine learning library for real-time gesture recognition.
Observer.h
Go to the documentation of this file.
1 
7 /*
8  GRT MIT License
9  Copyright (c) <2012> <Nicholas Gillian, Media Lab, MIT>
10 
11  Permission is hereby granted, free of charge, to any person obtaining a copy of this software
12  and associated documentation files (the "Software"), to deal in the Software without restriction,
13  including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
14  and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
15  subject to the following conditions:
16 
17  The above copyright notice and this permission notice shall be included in all copies or substantial
18  portions of the Software.
19 
20  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
21  LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
23  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25  */
26 
27 #ifndef GRT_OBSERVER_HEADER
28 #define GRT_OBSERVER_HEADER
29 
30 #include "GRTTypedefs.h"
31 
32 GRT_BEGIN_NAMESPACE
33 
34 template< class NotifyType >
35 class Observer
36 {
37 public:
38  Observer(){}
39 
40  virtual ~Observer(){}
41 
42  virtual void notify(const NotifyType &data){};
43 };
44 
45 GRT_END_NAMESPACE
46 
47 #endif // GRT_OBSERVER_HEADER