Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::ProcessExecArgs Class Reference
Collaboration diagram for Arcane::ProcessExecArgs:

Public Types

enum class  ExecStatus { OK , CanNotFork , CanNotCreatePipe , AbnormalExit }

Public Member Functions

String command () const
 Command to execute. Must correspond to an executable.
void setCommand (const String &v)
ConstArrayView< Stringarguments () const
 List of arguments.
void addArguments (const String &v)
void setArguments (const Array< String > &v)
ConstArrayView< ByteinputBytes () const
 String to send to the process's standard input (STDIN).
void setInputBytes (ConstArrayView< Byte > s)
ConstArrayView< ByteoutputBytes () const
 Contains the result of the process's standard output (STDOUT).
int exitCode () const
 Return code of the executed process.

Private Attributes

String m_command
UniqueArray< Stringm_arguments
UniqueArray< Bytem_input_bytes
UniqueArray< Bytem_output_bytes
int m_exit_code = 0

Friends

class Process

Detailed Description

Definition at line 30 of file Process.h.

Member Enumeration Documentation

◆ ExecStatus

Enumerator
CanNotFork 

fork() failed

CanNotCreatePipe 

The call to pipe2() failed.

Definition at line 36 of file Process.h.

Member Function Documentation

◆ addArguments()

void Arcane::ProcessExecArgs::addArguments ( const String & v)
inline

Definition at line 56 of file Process.h.

◆ arguments()

ConstArrayView< String > Arcane::ProcessExecArgs::arguments ( ) const
inline

List of arguments.

Definition at line 55 of file Process.h.

Referenced by Arcane::Process::execute().

Here is the caller graph for this function:

◆ command()

String Arcane::ProcessExecArgs::command ( ) const
inline

Command to execute. Must correspond to an executable.

Definition at line 51 of file Process.h.

Referenced by Arcane::Process::execute().

Here is the caller graph for this function:

◆ exitCode()

int Arcane::ProcessExecArgs::exitCode ( ) const
inline

Return code of the executed process.

Definition at line 66 of file Process.h.

◆ inputBytes()

ConstArrayView< Byte > Arcane::ProcessExecArgs::inputBytes ( ) const
inline

String to send to the process's standard input (STDIN).

Definition at line 60 of file Process.h.

Referenced by Arcane::Process::execute().

Here is the caller graph for this function:

◆ outputBytes()

ConstArrayView< Byte > Arcane::ProcessExecArgs::outputBytes ( ) const
inline

Contains the result of the process's standard output (STDOUT).

Definition at line 64 of file Process.h.

Referenced by Arcane::LLVMSymbolizerService::stackTrace().

Here is the caller graph for this function:

◆ setArguments()

void Arcane::ProcessExecArgs::setArguments ( const Array< String > & v)
inline

Definition at line 57 of file Process.h.

◆ setCommand()

void Arcane::ProcessExecArgs::setCommand ( const String & v)
inline

Definition at line 52 of file Process.h.

◆ setInputBytes()

void Arcane::ProcessExecArgs::setInputBytes ( ConstArrayView< Byte > s)
inline

Definition at line 61 of file Process.h.

◆ Process

friend class Process
friend

Definition at line 32 of file Process.h.

Member Data Documentation

◆ m_arguments

UniqueArray<String> Arcane::ProcessExecArgs::m_arguments
private

Definition at line 71 of file Process.h.

◆ m_command

String Arcane::ProcessExecArgs::m_command
private

Definition at line 70 of file Process.h.

◆ m_exit_code

int Arcane::ProcessExecArgs::m_exit_code = 0
private

Definition at line 74 of file Process.h.

◆ m_input_bytes

UniqueArray<Byte> Arcane::ProcessExecArgs::m_input_bytes
private

Definition at line 72 of file Process.h.

◆ m_output_bytes

UniqueArray<Byte> Arcane::ProcessExecArgs::m_output_bytes
private

Definition at line 73 of file Process.h.


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