Robot Devastation
MockImageEventListener.hpp
1 // Authors: see AUTHORS.md at project root.
2 // CopyPolicy: released under the terms of the LGPLv2.1, see LICENSE at project root.
3 // URL: https://github.com/asrob-uc3m/robotDevastation
4 
5 #ifndef __RD_MOCK_IMAGE_EVENT_LISTENER_HPP__
6 #define __RD_MOCK_IMAGE_EVENT_LISTENER_HPP__
7 
8 #include "ImageManager.hpp"
9 #include "ImageEventListener.hpp"
10 
11 namespace rd{
12 
24 {
25  public:
27 
28  virtual bool onImageArrived( ImageManager * manager );
29 
30  int getImagesArrived() const;
31  void resetImagesArrived();
32 
33  Image getStoredImage();
34 
35 
36  private:
37  int images_arrived;
38  Image stored_image;
39 };
40 }
41 
42 #endif // __RD_MOCK_IMAGE_EVENT_LISTENER_HPP__
rd::ImageEventListener
Interface for objects that can be notified of events related to images.
Definition: ImageEventListener.hpp:21
rd
The main, catch-all namespace for Robot Devastation.
Definition: groups.dox:4
rd::MockImageEventListener
Dummy ImageEventListener used for testing.
Definition: MockImageEventListener.hpp:23
rd::MockImageEventListener::onImageArrived
virtual bool onImageArrived(ImageManager *manager)
This function will be called whenever a image arrives to the ImageManager.
Definition: MockImageEventListener.cpp:12
rd::ImageManager
Generic image input manager.
Definition: ImageManager.hpp:39