iCub-main
Classes | Public Types | Public Member Functions | List of all members
eth::EthBoards Class Reference

#include <ethBoards.h>

Public Types

enum  { maxEthBoards = 32 }
 

Public Member Functions

 EthBoards ()
 
 ~EthBoards ()
 
size_t number_of_resources (void)
 
bool add (eth::AbstractEthResource *res)
 
eth::AbstractEthResourceget_resource (eOipv4addr_t ipv4)
 
bool rem (eth::AbstractEthResource *res)
 
size_t number_of_interfaces (eth::AbstractEthResource *res)
 
bool add (eth::AbstractEthResource *res, eth::IethResource *interface)
 
eth::IethResourceget_interface (eOipv4addr_t ipv4, eOprotID32_t id32)
 
eth::IethResourceget_interface (eOipv4addr_t ipv4, iethresType_t type)
 
bool rem (eth::AbstractEthResource *res, iethresType_t type)
 
const string & name (eOipv4addr_t ipv4)
 
bool execute (void(*action)(eth::AbstractEthResource *res, void *p), void *par)
 
bool execute (eOipv4addr_t ipv4, void(*action)(eth::AbstractEthResource *res, void *p), void *par)
 

Detailed Description

Definition at line 46 of file ethBoards.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
maxEthBoards 

Definition at line 51 of file ethBoards.h.

Constructor & Destructor Documentation

◆ EthBoards()

eth::EthBoards::EthBoards ( )

Definition at line 55 of file ethBoards.cpp.

◆ ~EthBoards()

eth::EthBoards::~EthBoards ( )

LUT has already been cleaned by the call to eth::EthBoards::rem(eth::AbstractEthResource* res, iethresType_t type) and eth::EthBoards::rem(eth::AbstractEthResource* res) so there's nothing to do here since LUT is already destroyed correctly but we can keep the clear for syntax reasons

Definition at line 69 of file ethBoards.cpp.

Member Function Documentation

◆ add() [1/2]

bool eth::EthBoards::add ( eth::AbstractEthResource res)

Definition at line 118 of file ethBoards.cpp.

◆ add() [2/2]

bool eth::EthBoards::add ( eth::AbstractEthResource res,
eth::IethResource interface 
)

Definition at line 157 of file ethBoards.cpp.

◆ execute() [1/2]

bool eth::EthBoards::execute ( eOipv4addr_t  ipv4,
void(*)(eth::AbstractEthResource *res, void *p action,
void *  par 
)

Definition at line 438 of file ethBoards.cpp.

◆ execute() [2/2]

bool eth::EthBoards::execute ( void(*)(eth::AbstractEthResource *res, void *p action,
void *  par 
)

Definition at line 417 of file ethBoards.cpp.

◆ get_interface() [1/2]

eth::IethResource * eth::EthBoards::get_interface ( eOipv4addr_t  ipv4,
eOprotID32_t  id32 
)

Definition at line 320 of file ethBoards.cpp.

◆ get_interface() [2/2]

eth::IethResource * eth::EthBoards::get_interface ( eOipv4addr_t  ipv4,
iethresType_t  type 
)

Definition at line 298 of file ethBoards.cpp.

◆ get_resource()

eth::AbstractEthResource * eth::EthBoards::get_resource ( eOipv4addr_t  ipv4)

Definition at line 265 of file ethBoards.cpp.

◆ name()

const string & eth::EthBoards::name ( eOipv4addr_t  ipv4)

Definition at line 396 of file ethBoards.cpp.

◆ number_of_interfaces()

size_t eth::EthBoards::number_of_interfaces ( eth::AbstractEthResource res)

Definition at line 91 of file ethBoards.cpp.

◆ number_of_resources()

size_t eth::EthBoards::number_of_resources ( void  )

Definition at line 86 of file ethBoards.cpp.

◆ rem() [1/2]

bool eth::EthBoards::rem ( eth::AbstractEthResource res)

Definition at line 200 of file ethBoards.cpp.

◆ rem() [2/2]

bool eth::EthBoards::rem ( eth::AbstractEthResource res,
iethresType_t  type 
)

Definition at line 233 of file ethBoards.cpp.


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