YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
Run.cpp File Reference
+ Include dependency graph for Run.cpp:

Go to the source code of this file.

Macros

#define C_MAXARGS   128
 
#define READ_FROM_PIPE   0
 
#define WRITE_TO_PIPE   1
 
#define REDIRECT_TO(from, to)   yarp::run::impl::dup2(to, from)
 

Functions

void sigstdio_handler (int sig)
 
static yarp::os::Bottle parsePaths (const std::string &txt)
 
static bool fileExists (const char *fname)
 
static std::string getProcLabel (const yarp::os::Bottle &msg)
 
void sigint_handler (int sig)
 
static void sigchld_handler (int sig)
 
void splitLine (char *pLine, char **pArgs)
 Split a line into separate words.
 
void parseArguments (char *io_pLine, int *o_pArgc, char **o_pArgv)
 Breaks up a line into multiple arguments.
 

Variables

static RunTerminatorpTerminator = nullptr
 
constexpr fs::value_type slash = fs::preferred_separator
 
constexpr auto sep = yarp::conf::environment::path_separator
 

Macro Definition Documentation

◆ C_MAXARGS

#define C_MAXARGS   128

Definition at line 43 of file Run.cpp.

◆ READ_FROM_PIPE

#define READ_FROM_PIPE   0

Definition at line 59 of file Run.cpp.

◆ REDIRECT_TO

#define REDIRECT_TO (   from,
  to 
)    yarp::run::impl::dup2(to, from)

Definition at line 61 of file Run.cpp.

◆ WRITE_TO_PIPE

#define WRITE_TO_PIPE   1

Definition at line 60 of file Run.cpp.

Function Documentation

◆ fileExists()

static bool fileExists ( const char *  fname)
static

Definition at line 124 of file Run.cpp.

◆ getProcLabel()

static std::string getProcLabel ( const yarp::os::Bottle msg)
static

Definition at line 136 of file Run.cpp.

◆ parseArguments()

void parseArguments ( char *  io_pLine,
int *  o_pArgc,
char **  o_pArgv 
)

Breaks up a line into multiple arguments.

Definition at line 2422 of file Run.cpp.

◆ parsePaths()

static yarp::os::Bottle parsePaths ( const std::string &  txt)
static

Definition at line 101 of file Run.cpp.

◆ sigchld_handler()

static void sigchld_handler ( int  sig)
static

Definition at line 839 of file Run.cpp.

◆ sigint_handler()

void sigint_handler ( int  sig)

Definition at line 474 of file Run.cpp.

◆ sigstdio_handler()

void sigstdio_handler ( int  sig)

Definition at line 84 of file Run.cpp.

◆ splitLine()

void splitLine ( char *  pLine,
char **  pArgs 
)

Split a line into separate words.

Definition at line 2402 of file Run.cpp.

Variable Documentation

◆ pTerminator

RunTerminator* pTerminator = nullptr
static

Definition at line 82 of file Run.cpp.

◆ sep

constexpr auto sep = yarp::conf::environment::path_separator
constexpr

Definition at line 99 of file Run.cpp.

◆ slash

constexpr fs::value_type slash = fs::preferred_separator
constexpr

Definition at line 98 of file Run.cpp.