Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
Process Class Reference

#include <process.hpp>

Public Member Functions

 Process (const std::string &command)
 
 ~Process ()
 
 Process (const Process &)=delete
 
Processoperator= (const Process &)=delete
 
 Process (Process &&)=default
 
Processoperator= (Process &&)=default
 
void write_line (const std::string &line) const
 Ends line with a newline character, sends to the process.
 
std::string read_line () const
 Reads a line from the process.
 

Private Attributes

pid_t pid
 
int stdin_fd = 0
 
int stdout_fd = 0
 

Detailed Description

Definition at line 8 of file process.hpp.

Constructor & Destructor Documentation

◆ Process() [1/3]

Process::Process ( const std::string &  command)

Definition at line 4 of file process.cpp.

◆ ~Process()

Process::~Process ( )

Definition at line 42 of file process.cpp.

◆ Process() [2/3]

Process::Process ( const Process )
delete

◆ Process() [3/3]

Process::Process ( Process &&  )
default

Member Function Documentation

◆ operator=() [1/2]

Process & Process::operator= ( const Process )
delete

◆ operator=() [2/2]

Process & Process::operator= ( Process &&  )
default

◆ read_line()

std::string Process::read_line ( ) const

Reads a line from the process.

Definition at line 56 of file process.cpp.

◆ write_line()

void Process::write_line ( const std::string &  line) const

Ends line with a newline character, sends to the process.

Definition at line 49 of file process.cpp.

Member Data Documentation

◆ pid

pid_t Process::pid
private

Definition at line 10 of file process.hpp.

◆ stdin_fd

int Process::stdin_fd = 0
private

Definition at line 11 of file process.hpp.

◆ stdout_fd

int Process::stdout_fd = 0
private

Definition at line 12 of file process.hpp.


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