YARP
Yet Another Robot Platform
YarpRunCmdWithStdioInfo Class Reference

#include <yarp/run/impl/RunProcManager.h>

+ Inheritance diagram for YarpRunCmdWithStdioInfo:

Public Member Functions

 YarpRunCmdWithStdioInfo (std::string &alias, std::string &on, std::string &stdio, PID pidCmd, PID pidStdout, FDESC readFromPipeCmdToStdout, FDESC writeToPipeCmdToStdout, HANDLE handleCmd, bool hold)
 
 YarpRunCmdWithStdioInfo (std::string &alias, std::string &on, std::string &stdio, PID pidCmd, std::string &stdioUUID, YarpRunInfoVector *stdioVector, PID pidStdin, PID pidStdout, FDESC readFromPipeStdinToCmd, FDESC writeToPipeStdinToCmd, FDESC readFromPipeCmdToStdout, FDESC writeToPipeCmdToStdout, HANDLE handleCmd, bool hold)
 
virtual ~YarpRunCmdWithStdioInfo ()
 
bool Clean () override
 
void finalize () override
 
void TerminateStdio ()
 
bool Clean (PID pid, YarpRunProcInfo *&pRef) override
 
- Public Member Functions inherited from YarpRunProcInfo
 YarpRunProcInfo (std::string &alias, std::string &on, PID pidCmd, HANDLE handleCmd, bool hold)
 
virtual ~YarpRunProcInfo ()
 
bool Match (std::string &alias)
 
virtual bool Signal (int signum)
 
virtual bool IsActive ()
 
void setCmd (const std::string &cmd)
 
void setEnv (const std::string &env)
 

Protected Attributes

PID mPidStdin
 
PID mPidStdout
 
bool mCleanStdin
 
bool mCleanStdout
 
bool mKillingCmd
 
bool mKillingStdio
 
bool mKillingStdin
 
bool mKillingStdout
 
std::string mStdio
 
std::string mStdioUUID
 
FDESC mWriteToPipeStdinToCmd
 
FDESC mReadFromPipeStdinToCmd
 
FDESC mWriteToPipeCmdToStdout
 
FDESC mReadFromPipeCmdToStdout
 
YarpRunInfoVectormStdioVector
 
- Protected Attributes inherited from YarpRunProcInfo
std::string mAlias
 
std::string mOn
 
PID mPidCmd
 
bool mCleanCmd
 
HANDLE mHandleCmd
 
bool mHold
 
std::string mCmd
 
std::string mEnv
 

Detailed Description

Definition at line 197 of file RunProcManager.h.

Constructor & Destructor Documentation

◆ YarpRunCmdWithStdioInfo() [1/2]

YarpRunCmdWithStdioInfo::YarpRunCmdWithStdioInfo ( std::string &  alias,
std::string &  on,
std::string &  stdio,
PID  pidCmd,
PID  pidStdout,
FDESC  readFromPipeCmdToStdout,
FDESC  writeToPipeCmdToStdout,
HANDLE  handleCmd,
bool  hold 
)

Definition at line 437 of file RunProcManager.cpp.

◆ YarpRunCmdWithStdioInfo() [2/2]

YarpRunCmdWithStdioInfo::YarpRunCmdWithStdioInfo ( std::string &  alias,
std::string &  on,
std::string &  stdio,
PID  pidCmd,
std::string &  stdioUUID,
YarpRunInfoVector stdioVector,
PID  pidStdin,
PID  pidStdout,
FDESC  readFromPipeStdinToCmd,
FDESC  writeToPipeStdinToCmd,
FDESC  readFromPipeCmdToStdout,
FDESC  writeToPipeCmdToStdout,
HANDLE  handleCmd,
bool  hold 
)

Definition at line 469 of file RunProcManager.cpp.

◆ ~YarpRunCmdWithStdioInfo()

virtual YarpRunCmdWithStdioInfo::~YarpRunCmdWithStdioInfo ( )
inlinevirtual

Definition at line 225 of file RunProcManager.h.

Member Function Documentation

◆ Clean() [1/2]

bool YarpRunCmdWithStdioInfo::Clean ( )
overridevirtual

Reimplemented from YarpRunProcInfo.

Definition at line 507 of file RunProcManager.cpp.

◆ Clean() [2/2]

bool YarpRunCmdWithStdioInfo::Clean ( PID  pid,
YarpRunProcInfo *&  pRef 
)
inlineoverridevirtual

Reimplemented from YarpRunProcInfo.

Definition at line 237 of file RunProcManager.h.

◆ finalize()

void YarpRunCmdWithStdioInfo::finalize ( )
inlineoverridevirtual

Reimplemented from YarpRunProcInfo.

Definition at line 229 of file RunProcManager.h.

◆ TerminateStdio()

void YarpRunCmdWithStdioInfo::TerminateStdio ( )

Definition at line 600 of file RunProcManager.cpp.

Member Data Documentation

◆ mCleanStdin

bool YarpRunCmdWithStdioInfo::mCleanStdin
protected

Definition at line 293 of file RunProcManager.h.

◆ mCleanStdout

bool YarpRunCmdWithStdioInfo::mCleanStdout
protected

Definition at line 294 of file RunProcManager.h.

◆ mKillingCmd

bool YarpRunCmdWithStdioInfo::mKillingCmd
protected

Definition at line 296 of file RunProcManager.h.

◆ mKillingStdin

bool YarpRunCmdWithStdioInfo::mKillingStdin
protected

Definition at line 298 of file RunProcManager.h.

◆ mKillingStdio

bool YarpRunCmdWithStdioInfo::mKillingStdio
protected

Definition at line 297 of file RunProcManager.h.

◆ mKillingStdout

bool YarpRunCmdWithStdioInfo::mKillingStdout
protected

Definition at line 299 of file RunProcManager.h.

◆ mPidStdin

PID YarpRunCmdWithStdioInfo::mPidStdin
protected

Definition at line 291 of file RunProcManager.h.

◆ mPidStdout

PID YarpRunCmdWithStdioInfo::mPidStdout
protected

Definition at line 292 of file RunProcManager.h.

◆ mReadFromPipeCmdToStdout

FDESC YarpRunCmdWithStdioInfo::mReadFromPipeCmdToStdout
protected

Definition at line 307 of file RunProcManager.h.

◆ mReadFromPipeStdinToCmd

FDESC YarpRunCmdWithStdioInfo::mReadFromPipeStdinToCmd
protected

Definition at line 305 of file RunProcManager.h.

◆ mStdio

std::string YarpRunCmdWithStdioInfo::mStdio
protected

Definition at line 301 of file RunProcManager.h.

◆ mStdioUUID

std::string YarpRunCmdWithStdioInfo::mStdioUUID
protected

Definition at line 302 of file RunProcManager.h.

◆ mStdioVector

YarpRunInfoVector* YarpRunCmdWithStdioInfo::mStdioVector
protected

Definition at line 309 of file RunProcManager.h.

◆ mWriteToPipeCmdToStdout

FDESC YarpRunCmdWithStdioInfo::mWriteToPipeCmdToStdout
protected

Definition at line 306 of file RunProcManager.h.

◆ mWriteToPipeStdinToCmd

FDESC YarpRunCmdWithStdioInfo::mWriteToPipeStdinToCmd
protected

Definition at line 304 of file RunProcManager.h.


The documentation for this class was generated from the following files: