iCub-main
Public Member Functions | List of all members
eth::FakeEthResource Class Reference

#include <fakeEthResource.h>

+ Inheritance diagram for eth::FakeEthResource:

Public Member Functions

 FakeEthResource ()
 
 ~FakeEthResource ()
 
bool open2 (eOipv4addr_t remIP, yarp::os::Searchable &cfgtotal) override
 
bool close ()
 
const PropertiesgetProperties ()
 
const void * getUDPtransmit (eOipv4addressing_t &destination, size_t &sizeofpacket, uint16_t &numofrops)
 
bool processRXpacket (const void *data, const size_t size)
 
bool getRemoteValue (const eOprotID32_t id32, void *value, const double timeout=0.100, const unsigned int retries=0)
 
bool getRemoteValues (const std::vector< eOprotID32_t > &id32s, const std::vector< void * > &values, const double timeout=0.500)
 
bool setRemoteValue (const eOprotID32_t id32, void *value)
 
bool setcheckRemoteValue (const eOprotID32_t id32, void *value, const unsigned int retries=10, const double waitbeforecheck=0.001, const double timeout=0.050)
 
bool getLocalValue (const eOprotID32_t id32, void *value)
 
bool setLocalValue (const eOprotID32_t id32, const void *value, bool overrideROprotection=false)
 
bool verifyEPprotocol (eOprot_endpoint_t ep)
 
bool CANPrintHandler (eOmn_info_basic_t *infobasic)
 
bool serviceVerifyActivate (eOmn_serv_category_t category, const eOmn_serv_parameter_t *param, double timeout=0.500)
 
bool serviceSetRegulars (eOmn_serv_category_t category, vector< eOprotID32_t > &id32vector, double timeout=0.500)
 
bool serviceStart (eOmn_serv_category_t category, double timeout=0.500)
 
bool serviceStop (eOmn_serv_category_t category, double timeout=0.500)
 
bool Tick ()
 
bool Check ()
 
bool isFake ()
 
HostTransceivergetTransceiver ()
 

Detailed Description

Definition at line 36 of file fakeEthResource.h.

Constructor & Destructor Documentation

◆ FakeEthResource()

FakeEthResource::FakeEthResource ( )

Definition at line 39 of file fakeEthResource.cpp.

◆ ~FakeEthResource()

FakeEthResource::~FakeEthResource ( )

Definition at line 64 of file fakeEthResource.cpp.

Member Function Documentation

◆ CANPrintHandler()

bool FakeEthResource::CANPrintHandler ( eOmn_info_basic_t *  infobasic)
virtual

Implements eth::AbstractEthResource.

Definition at line 254 of file fakeEthResource.cpp.

◆ Check()

bool FakeEthResource::Check ( )
virtual

Implements eth::AbstractEthResource.

Definition at line 170 of file fakeEthResource.cpp.

◆ close()

bool FakeEthResource::close ( void  )
virtual

Implements eth::AbstractEthResource.

Definition at line 151 of file fakeEthResource.cpp.

◆ getLocalValue()

bool FakeEthResource::getLocalValue ( const eOprotID32_t  id32,
void *  value 
)
virtual

Implements eth::AbstractEthResource.

Definition at line 284 of file fakeEthResource.cpp.

◆ getProperties()

const AbstractEthResource::Properties & FakeEthResource::getProperties ( )
virtual

Implements eth::AbstractEthResource.

Definition at line 185 of file fakeEthResource.cpp.

◆ getRemoteValue()

bool FakeEthResource::getRemoteValue ( const eOprotID32_t  id32,
void *  value,
const double  timeout = 0.100,
const unsigned int  retries = 0 
)
virtual

Implements eth::AbstractEthResource.

Definition at line 230 of file fakeEthResource.cpp.

◆ getRemoteValues()

bool FakeEthResource::getRemoteValues ( const std::vector< eOprotID32_t > &  id32s,
const std::vector< void * > &  values,
const double  timeout = 0.500 
)
virtual

Implements eth::AbstractEthResource.

Definition at line 235 of file fakeEthResource.cpp.

◆ getTransceiver()

HostTransceiver * FakeEthResource::getTransceiver ( )
virtual

Implements eth::AbstractEthResource.

Definition at line 343 of file fakeEthResource.cpp.

◆ getUDPtransmit()

const void * FakeEthResource::getUDPtransmit ( eOipv4addressing_t &  destination,
size_t &  sizeofpacket,
uint16_t &  numofrops 
)
virtual

Implements eth::AbstractEthResource.

Definition at line 158 of file fakeEthResource.cpp.

◆ isFake()

bool FakeEthResource::isFake ( )
virtual

Implements eth::AbstractEthResource.

Definition at line 338 of file fakeEthResource.cpp.

◆ open2()

bool FakeEthResource::open2 ( eOipv4addr_t  remIP,
yarp::os::Searchable &  cfgtotal 
)
overridevirtual

Implements eth::AbstractEthResource.

Definition at line 80 of file fakeEthResource.cpp.

◆ processRXpacket()

bool FakeEthResource::processRXpacket ( const void *  data,
const size_t  size 
)
virtual

Implements eth::AbstractEthResource.

Definition at line 178 of file fakeEthResource.cpp.

◆ serviceSetRegulars()

bool FakeEthResource::serviceSetRegulars ( eOmn_serv_category_t  category,
vector< eOprotID32_t > &  id32vector,
double  timeout = 0.500 
)
virtual

Implements eth::AbstractEthResource.

Definition at line 267 of file fakeEthResource.cpp.

◆ serviceStart()

bool FakeEthResource::serviceStart ( eOmn_serv_category_t  category,
double  timeout = 0.500 
)
virtual

Implements eth::AbstractEthResource.

Definition at line 272 of file fakeEthResource.cpp.

◆ serviceStop()

bool FakeEthResource::serviceStop ( eOmn_serv_category_t  category,
double  timeout = 0.500 
)
virtual

Implements eth::AbstractEthResource.

Definition at line 279 of file fakeEthResource.cpp.

◆ serviceVerifyActivate()

bool FakeEthResource::serviceVerifyActivate ( eOmn_serv_category_t  category,
const eOmn_serv_parameter_t *  param,
double  timeout = 0.500 
)
virtual

Implements eth::AbstractEthResource.

Definition at line 261 of file fakeEthResource.cpp.

◆ setcheckRemoteValue()

bool FakeEthResource::setcheckRemoteValue ( const eOprotID32_t  id32,
void *  value,
const unsigned int  retries = 10,
const double  waitbeforecheck = 0.001,
const double  timeout = 0.050 
)
virtual

Implements eth::AbstractEthResource.

Definition at line 247 of file fakeEthResource.cpp.

◆ setLocalValue()

bool FakeEthResource::setLocalValue ( const eOprotID32_t  id32,
const void *  value,
bool  overrideROprotection = false 
)
virtual

Implements eth::AbstractEthResource.

Definition at line 301 of file fakeEthResource.cpp.

◆ setRemoteValue()

bool FakeEthResource::setRemoteValue ( const eOprotID32_t  id32,
void *  value 
)
virtual

Implements eth::AbstractEthResource.

Definition at line 242 of file fakeEthResource.cpp.

◆ Tick()

bool FakeEthResource::Tick ( )
virtual

Implements eth::AbstractEthResource.

Definition at line 164 of file fakeEthResource.cpp.

◆ verifyEPprotocol()

bool FakeEthResource::verifyEPprotocol ( eOprot_endpoint_t  ep)
virtual

Implements eth::AbstractEthResource.

Definition at line 198 of file fakeEthResource.cpp.


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