Robot Devastation
Public Member Functions | Private Attributes | List of all members
rd::MockImageEventListener Class Reference

Dummy ImageEventListener used for testing. More...

#include <MockImageEventListener.hpp>

Inheritance diagram for rd::MockImageEventListener:
rd::ImageEventListener

Public Member Functions

virtual bool onImageArrived (ImageManager *manager)
 This function will be called whenever a image arrives to the ImageManager. More...
 
int getImagesArrived () const
 
void resetImagesArrived ()
 
Image getStoredImage ()
 

Private Attributes

int images_arrived
 
Image stored_image
 

Detailed Description

The required pure virtual members are left with their function body empty.

This mock object allows to access the received image and has a counter of the incoming images received.

Member Function Documentation

◆ onImageArrived()

bool rd::MockImageEventListener::onImageArrived ( ImageManager manager)
virtual
Parameters
managerA reference to the ImageManager that triggered the event

Implements rd::ImageEventListener.


The documentation for this class was generated from the following files: