|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
10 #ifndef YARP_RUN_RUN_H
11 #define YARP_RUN_RUN_H
99 static int start(
const std::string &node,
yarp::os::Property &command, std::string &keyv);
106 static int sigterm(
const std::string &node,
const std::string &keyv);
112 static int sigterm(
const std::string &node);
120 static int kill(
const std::string &node,
const std::string &keyv,
int s);
136 static bool isRunning(
const std::string &node, std::string &keyv);
153 #ifndef DOXYGEN_SHOULD_SKIP_THIS
155 static int main(
int argc,
char *argv[]);
158 static bool mStresstest;
163 static std::string mLoggerPort;
172 static void CleanZombie(
int pid);
178 static void Help(
const char* msg=
"");
185 static inline bool IS_PARENT_OF(
int pid){
return pid>0; }
186 static inline bool IS_NEW_PROCESS(
int pid){
return !pid; }
187 static inline bool IS_INVALID(
int pid){
return pid<0; }
190 static std::string mPortName;
194 static void cleanBeforeExec();
195 static void writeToPipe(
int fd, std::string str);
196 static int readFromPipe(
int fd,
char* &data,
int& buffsize);
199 static void cmdcpy(
char* &dst,
const char* src)
201 dst=
new char[(strlen(src)/8+2)*16];
205 static void cmdclean(
char **cmd)
220 #endif // YARP_RUN_RUN_H
#define YARP_WARNING_PUSH
Starts a temporary alteration of the enabled warnings.
A simple collection of objects that can be described and transmitted in a portable way.
#define YARP_DISABLE_DLL_INTERFACE_WARNING
Disable MSVC C4251 warnings in the following code.
int main(int argc, char *argv[])
#define YARP_SUPPRESS_DLL_INTERFACE_WARNING
Suppress MSVC C4251 warning for the next line.
A port that is specialized as an RPC server.
#define YARP_WARNING_POP
Ends a temporary alteration of the enabled warnings.
The main, catch-all namespace for YARP.
A class for storing options and configuration information.