YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
IFrameGrabberControlsMock Class Reference

Mocking class created to replace the grabber object. More...

#include </home/runner/work/yarp-documentation/yarp-documentation/yarp/opt-modules/yarp-device-ultrapython/src/devices/ultrapython/unittest/CliMock.h>

+ Inheritance diagram for IFrameGrabberControlsMock:

Public Member Functions

 MOCK_METHOD (bool, setFeature,(int, double),(override))
 
 MOCK_METHOD (bool, getFeature,(int, double *),(override))
 
bool getCameraDescription (CameraDescriptor *camera) override
 
bool hasFeature (int feature, bool *hasFeature) override
 
bool setFeature (int feature, double value1, double value2) override
 
bool getFeature (int feature, double *value1, double *value2) override
 
bool hasOnOff (int feature, bool *HasOnOff) override
 
bool setActive (int feature, bool onoff) override
 
bool getActive (int feature, bool *isActive) override
 
bool hasAuto (int feature, bool *hasAuto) override
 
bool hasManual (int feature, bool *hasManual) override
 
bool hasOnePush (int feature, bool *hasOnePush) override
 
bool setMode (int feature, FeatureMode mode) override
 
bool getMode (int feature, FeatureMode *mode) override
 
bool setOnePush (int feature) override
 
- Public Member Functions inherited from yarp::dev::IFrameGrabberControls
virtual ~IFrameGrabberControls ()
 Destructor.
 
std::string busType2String (BusType type)
 
FeatureMode toFeatureMode (bool _auto)
 
virtual yarp::dev::ReturnValue getCameraDescription (CameraDescriptor &camera)=0
 Get a basic description of the camera hw.
 
virtual yarp::dev::ReturnValue hasFeature (cameraFeature_id_t, bool &hasFeature)=0
 Check if camera has the requested feature (saturation, brightness ... )
 
virtual yarp::dev::ReturnValue setFeature (cameraFeature_id_t feature, double value)=0
 Set the requested feature to a value (saturation, brightness ... )
 
virtual yarp::dev::ReturnValue getFeature (cameraFeature_id_t feature, double &value)=0
 Get the current value for the requested feature.
 
virtual yarp::dev::ReturnValue setFeature (cameraFeature_id_t feature, double value1, double value2)=0
 Set the requested feature to a value using 2 params (like white balance)
 
virtual yarp::dev::ReturnValue getFeature (cameraFeature_id_t feature, double &value1, double &value2)=0
 Get the current value for the requested feature.
 
virtual yarp::dev::ReturnValue hasOnOff (cameraFeature_id_t feature, bool &HasOnOff)=0
 Check if the camera has the ability to turn on/off the requested feature.
 
virtual yarp::dev::ReturnValue setActive (cameraFeature_id_t feature, bool onoff)=0
 Set the requested feature on or off.
 
virtual yarp::dev::ReturnValue getActive (cameraFeature_id_t feature, bool &isActive)=0
 Get the current status of the feature, on or off.
 
virtual yarp::dev::ReturnValue hasAuto (cameraFeature_id_t feature, bool &hasAuto)=0
 Check if the requested feature has the 'auto' mode.
 
virtual yarp::dev::ReturnValue hasManual (cameraFeature_id_t feature, bool &hasManual)=0
 Check if the requested feature has the 'manual' mode.
 
virtual yarp::dev::ReturnValue hasOnePush (cameraFeature_id_t feature, bool &hasOnePush)=0
 Check if the requested feature has the 'onePush' mode.
 
virtual yarp::dev::ReturnValue setMode (cameraFeature_id_t feature, FeatureMode mode)=0
 Set the requested mode for the feature.
 
virtual yarp::dev::ReturnValue getMode (cameraFeature_id_t feature, FeatureMode &mode)=0
 Get the current mode for the feature.
 
virtual yarp::dev::ReturnValue setOnePush (cameraFeature_id_t feature)=0
 Set the requested feature to a value (saturation, brightness ... )
 

Detailed Description

Mocking class created to replace the grabber object.

Definition at line 28 of file CliMock.h.

Member Function Documentation

◆ getActive()

bool IFrameGrabberControlsMock::getActive ( int  feature,
bool *  isActive 
)
inlineoverride

Definition at line 43 of file CliMock.h.

◆ getCameraDescription()

bool IFrameGrabberControlsMock::getCameraDescription ( CameraDescriptor *  camera)
inlineoverride

Definition at line 33 of file CliMock.h.

◆ getFeature()

bool IFrameGrabberControlsMock::getFeature ( int  feature,
double *  value1,
double *  value2 
)
inlineoverride

Definition at line 38 of file CliMock.h.

◆ getMode()

bool IFrameGrabberControlsMock::getMode ( int  feature,
FeatureMode *  mode 
)
inlineoverride

Definition at line 48 of file CliMock.h.

◆ hasAuto()

bool IFrameGrabberControlsMock::hasAuto ( int  feature,
bool *  hasAuto 
)
inlineoverride

Definition at line 44 of file CliMock.h.

◆ hasFeature()

bool IFrameGrabberControlsMock::hasFeature ( int  feature,
bool *  hasFeature 
)
inlineoverride

Definition at line 34 of file CliMock.h.

◆ hasManual()

bool IFrameGrabberControlsMock::hasManual ( int  feature,
bool *  hasManual 
)
inlineoverride

Definition at line 45 of file CliMock.h.

◆ hasOnePush()

bool IFrameGrabberControlsMock::hasOnePush ( int  feature,
bool *  hasOnePush 
)
inlineoverride

Definition at line 46 of file CliMock.h.

◆ hasOnOff()

bool IFrameGrabberControlsMock::hasOnOff ( int  feature,
bool *  HasOnOff 
)
inlineoverride

Definition at line 41 of file CliMock.h.

◆ MOCK_METHOD() [1/2]

IFrameGrabberControlsMock::MOCK_METHOD ( bool  ,
getFeature  ,
(int, double *)  ,
(override)   
)

◆ MOCK_METHOD() [2/2]

IFrameGrabberControlsMock::MOCK_METHOD ( bool  ,
setFeature  ,
(int, double)  ,
(override)   
)

◆ setActive()

bool IFrameGrabberControlsMock::setActive ( int  feature,
bool  onoff 
)
inlineoverride

Definition at line 42 of file CliMock.h.

◆ setFeature()

bool IFrameGrabberControlsMock::setFeature ( int  feature,
double  value1,
double  value2 
)
inlineoverride

Definition at line 35 of file CliMock.h.

◆ setMode()

bool IFrameGrabberControlsMock::setMode ( int  feature,
FeatureMode  mode 
)
inlineoverride

Definition at line 47 of file CliMock.h.

◆ setOnePush()

bool IFrameGrabberControlsMock::setOnePush ( int  feature)
inlineoverride

Definition at line 49 of file CliMock.h.


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