|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_MANAGER_LOCALBROKER
10 #define YARP_MANAGER_LOCALBROKER
50 bool init(
const char* szcmd,
const char* szparam,
51 const char* szhost,
const char* szstdio,
52 const char* szworkdir,
const char* szenv)
override;
54 bool start()
override;
57 bool connect(
const char* from,
const char* to,
58 const char* carrier,
bool persist=
false)
override;
59 bool disconnect(
const char* from,
const char* to,
60 const char *carrier)
override;
62 bool exists(
const char* port)
override;
63 const char*
requestRpc(
const char* szport,
const char* request,
double timeout)
override;
64 bool connected(
const char* from,
const char* to,
65 const char* carrier)
override;
66 const char*
error()
override;
86 std::string strWorkdir;
93 int pipe_to_stdout[2];
97 bool timeout(
double base,
double timeout);
100 bool killCmd(
int pid);
101 bool stopCmd(
int pid);
103 HANDLE read_from_pipe_cmd_to_stdout;
104 HANDLE write_to_pipe_cmd_to_stdout;
105 std::string lastError2String();
107 int waitPipe(
int pipe_fd);
108 int waitPipeSignal(
int pipe_fd);
109 void splitLine(
char *pLine,
char **pArgs);
110 void parseArguments(
char *io_pLine,
int *o_pArgc,
char **o_pArgv);
115 inline bool IS_PARENT_OF(
int pid){
return pid>0; }
116 inline bool IS_NEW_PROCESS(
int pid){
return !pid; }
117 inline bool IS_INVALID(
int pid){
return pid<0; }
124 #endif // __YARP_MANAGER_LOCALBROKER__
bool connected(const char *from, const char *to, const char *carrier) override
void setWindowMode(WindowMode m)
Define if the application will be visible or not.
bool attachStdout() override
bool connect(const char *from, const char *to, const char *carrier, bool persist=false) override
connection broker
An abstraction for a thread of execution.
const char * requestRpc(const char *szport, const char *request, double timeout) override
void detachStdout() override
const char * error() override
void run() override
Main body of the new thread.
bool exists(const char *port) override
bool disconnect(const char *from, const char *to, const char *carrier) override
The main, catch-all namespace for YARP.
void threadRelease() override
Release method.
bool threadInit() override
Initialization method.
bool initialized() override