C++ interface to psiRpc_t functionality.
More...
#include <PsiInterface.hpp>
C++ interface to psiRpc_t functionality.
The PsiRpc class is a basic wrapper around the C psiRpc_t structure and associated functions from the PsiInterface.h header. It provides the user with C++ style access to basic RPC messaging via IPC queues.
◆ PsiRpc()
PsiRpc::PsiRpc |
( |
const char * |
outName, |
|
|
char * |
outFormat, |
|
|
const char * |
inName, |
|
|
char * |
inFormat |
|
) |
| |
|
inline |
Constructor for PsiRpc.
- Parameters
-
[in] | outName | constant character pointer name of the output queue. |
[in] | outFormat | character pointer to format that should be used for formatting output. |
[in] | inName | constant character pointer to name of the input queue. |
[in] | inFormat | character pointer to format that should be used for parsing input. |
◆ pi()
◆ recv()
int PsiRpc::recv |
( |
int |
nargs, |
|
|
|
... |
|
) |
| |
|
inline |
Receive and parse a message from an RPC input queue. See rpcRecv from PsiInterface.h for details.
- Parameters
-
[in] | nargs | int Number of arguments being passed. |
[out] | ... | mixed arguments that should be assigned parameters extracted using the format string. Since these will be assigned, they should be pointers to memory that has already been allocated. |
- Returns
- integer specifying if the receive was succesful. Values >= 0 indicate success.
◆ send()
int PsiRpc::send |
( |
int |
nargs, |
|
|
|
... |
|
) |
| |
|
inline |
Format and send a message to an RPC output queue. See rpcSend from PsiInterface.h for details.
- Parameters
-
[in] | nargs | int Number of arguments being passed. |
[in] | ... | arguments for formatting. |
- Returns
- integer specifying if the send was succesful. Values >= 0 indicate success.
The documentation for this class was generated from the following file: