![]() |
|
IpbusMock
1.0.0
Library which integrates IPbus use in Phoenix
|
Backend to use Mock library with PAbtractSocket. More...
#include <PIpBusBackend.h>
Public Types | |
| typedef UaMessage | Message |
| Define the type of message used by the PAbstractSocketManager. | |
| typedef PIpBusParam | Param |
| Define the type of extra parameters which can be used to create a Socket. | |
| typedef PIpBusSocket | Socket |
| Define the socket of the backend used by the PAbstractSocketManager. | |
Public Member Functions | |
| bool | createClientSocket (Socket &socket, const PSocketParam &socketParam, const Param ¶m) |
| Create parameters for a client socket. | |
| bool | createServerSocket (Socket &socket, const PSocketParam &socketParam, const Param ¶m) |
| Create parameters for a server socket. | |
| PIpBusBackend () | |
| Default constructor of PIpBusBackend. | |
Static Public Member Functions | |
| static Param | client (std::string &connectionFilePath, std::string &connectionId) |
| Create parameters for a client socket. | |
| static void | mockToMsg (Message &msg, DataStreamMsg &mockMsg) |
| Copy mock message data into current backend message. | |
| static void | msgToMock (DataStreamMsg &mockMsg, const Message &msg) |
| Copy current backend message data into mock message. | |
| static Param | server (std::string &connectionFilePath, std::string &connectionId) |
| Create parameters for a server socket. | |
Backend to use Mock library with PAbtractSocket.
Definition at line 58 of file PIpBusBackend.h.
| typedef UaMessage PIpBusBackend::Message |
Define the type of message used by the PAbstractSocketManager.
Definition at line 63 of file PIpBusBackend.h.
| typedef PIpBusParam PIpBusBackend::Param |
Define the type of extra parameters which can be used to create a Socket.
Definition at line 65 of file PIpBusBackend.h.
| typedef PIpBusSocket PIpBusBackend::Socket |
Define the socket of the backend used by the PAbstractSocketManager.
Definition at line 61 of file PIpBusBackend.h.
| PIpBusBackend::PIpBusBackend | ( | ) |
|
static |
Create parameters for a client socket.
| connectionFilePath | Path to the connection file containing IPBUS parameters. |
| connectionId | Device identifier. |
Definition at line 65 of file PIpBusBackend.cpp.
References PIpBusParam::connectionFilePath, and PIpBusParam::connectionId.
Referenced by server().
Here is the caller graph for this function:| bool PIpBusBackend::createClientSocket | ( | PIpBusBackend::Socket & | socket, |
| const PSocketParam & | socketParam, | ||
| const Param & | param ) |
Create parameters for a client socket.
| connectionFilePath | Path to the connection file containing IPBUS parameters. |
| connectionId | Device identifier. |
Definition at line 86 of file PIpBusBackend.cpp.
References PIpBusSocket::createClientSocket().
Here is the call graph for this function:| bool PIpBusBackend::createServerSocket | ( | PIpBusBackend::Socket & | socket, |
| const PSocketParam & | socketParam, | ||
| const Param & | param ) |
Create parameters for a server socket.
| connectionFilePath | Path to the connection file containing IPBUS parameters. |
| connectionId | Device identifier. |
Definition at line 95 of file PIpBusBackend.cpp.
References PIpBusSocket::createServerSocket().
Here is the call graph for this function:
|
static |
Copy mock message data into current backend message.
| [out] | msg | : message of the current backend to be converted |
| mockMsg | : mock message |
Definition at line 126 of file PIpBusBackend.cpp.
|
static |
Copy current backend message data into mock message.
| [out] | mockMsg | : mock message |
| msg | : message of the current backend to be converted |
Definition at line 109 of file PIpBusBackend.cpp.
|
static |
Create parameters for a server socket.
| connectionFilePath | Path to the connection file containing IPBUS parameters. |
| connectionId | Device identifier. |
Definition at line 77 of file PIpBusBackend.cpp.
References client().
Here is the call graph for this function: