LLDB mainline
Public Member Functions | List of all members
lldb_private::PipeBase Class Referenceabstract

#include <PipeBase.h>

Inheritance diagram for lldb_private::PipeBase:
Inheritance graph
[legend]

Public Member Functions

virtual ~PipeBase ()
 
virtual Status CreateNew (bool child_process_inherit)=0
 
virtual Status CreateNew (llvm::StringRef name, bool child_process_inherit)=0
 
virtual Status CreateWithUniqueName (llvm::StringRef prefix, bool child_process_inherit, llvm::SmallVectorImpl< char > &name)=0
 
virtual Status OpenAsReader (llvm::StringRef name, bool child_process_inherit)=0
 
Status OpenAsWriter (llvm::StringRef name, bool child_process_inherit)
 
virtual Status OpenAsWriterWithTimeout (llvm::StringRef name, bool child_process_inherit, const std::chrono::microseconds &timeout)=0
 
virtual bool CanRead () const =0
 
virtual bool CanWrite () const =0
 
virtual lldb::pipe_t GetReadPipe () const =0
 
virtual lldb::pipe_t GetWritePipe () const =0
 
virtual int GetReadFileDescriptor () const =0
 
virtual int GetWriteFileDescriptor () const =0
 
virtual int ReleaseReadFileDescriptor ()=0
 
virtual int ReleaseWriteFileDescriptor ()=0
 
virtual void CloseReadFileDescriptor ()=0
 
virtual void CloseWriteFileDescriptor ()=0
 
virtual void Close ()=0
 
virtual Status Delete (llvm::StringRef name)=0
 
virtual Status WriteWithTimeout (const void *buf, size_t size, const std::chrono::microseconds &timeout, size_t &bytes_written)=0
 
Status Write (const void *buf, size_t size, size_t &bytes_written)
 
virtual Status ReadWithTimeout (void *buf, size_t size, const std::chrono::microseconds &timeout, size_t &bytes_read)=0
 
Status Read (void *buf, size_t size, size_t &bytes_read)
 

Detailed Description

Definition at line 21 of file PipeBase.h.

Constructor & Destructor Documentation

◆ ~PipeBase()

PipeBase::~PipeBase ( )
virtualdefault

Member Function Documentation

◆ CanRead()

virtual bool lldb_private::PipeBase::CanRead ( ) const
pure virtual

◆ CanWrite()

virtual bool lldb_private::PipeBase::CanWrite ( ) const
pure virtual

◆ Close()

virtual void lldb_private::PipeBase::Close ( )
pure virtual

◆ CloseReadFileDescriptor()

virtual void lldb_private::PipeBase::CloseReadFileDescriptor ( )
pure virtual

◆ CloseWriteFileDescriptor()

virtual void lldb_private::PipeBase::CloseWriteFileDescriptor ( )
pure virtual

◆ CreateNew() [1/2]

virtual Status lldb_private::PipeBase::CreateNew ( bool  child_process_inherit)
pure virtual

◆ CreateNew() [2/2]

virtual Status lldb_private::PipeBase::CreateNew ( llvm::StringRef  name,
bool  child_process_inherit 
)
pure virtual

◆ CreateWithUniqueName()

virtual Status lldb_private::PipeBase::CreateWithUniqueName ( llvm::StringRef  prefix,
bool  child_process_inherit,
llvm::SmallVectorImpl< char > &  name 
)
pure virtual

◆ Delete()

virtual Status lldb_private::PipeBase::Delete ( llvm::StringRef  name)
pure virtual

◆ GetReadFileDescriptor()

virtual int lldb_private::PipeBase::GetReadFileDescriptor ( ) const
pure virtual

◆ GetReadPipe()

virtual lldb::pipe_t lldb_private::PipeBase::GetReadPipe ( ) const
pure virtual

◆ GetWriteFileDescriptor()

virtual int lldb_private::PipeBase::GetWriteFileDescriptor ( ) const
pure virtual

◆ GetWritePipe()

virtual lldb::pipe_t lldb_private::PipeBase::GetWritePipe ( ) const
pure virtual

◆ OpenAsReader()

virtual Status lldb_private::PipeBase::OpenAsReader ( llvm::StringRef  name,
bool  child_process_inherit 
)
pure virtual

◆ OpenAsWriter()

Status PipeBase::OpenAsWriter ( llvm::StringRef  name,
bool  child_process_inherit 
)

Definition at line 15 of file PipeBase.cpp.

References OpenAsWriterWithTimeout().

◆ OpenAsWriterWithTimeout()

virtual Status lldb_private::PipeBase::OpenAsWriterWithTimeout ( llvm::StringRef  name,
bool  child_process_inherit,
const std::chrono::microseconds &  timeout 
)
pure virtual

◆ Read()

Status PipeBase::Read ( void *  buf,
size_t  size,
size_t &  bytes_read 
)

Definition at line 26 of file PipeBase.cpp.

References ReadWithTimeout().

◆ ReadWithTimeout()

virtual Status lldb_private::PipeBase::ReadWithTimeout ( void *  buf,
size_t  size,
const std::chrono::microseconds &  timeout,
size_t &  bytes_read 
)
pure virtual

Implemented in lldb_private::PipePosix, and lldb_private::PipeWindows.

Referenced by Read().

◆ ReleaseReadFileDescriptor()

virtual int lldb_private::PipeBase::ReleaseReadFileDescriptor ( )
pure virtual

◆ ReleaseWriteFileDescriptor()

virtual int lldb_private::PipeBase::ReleaseWriteFileDescriptor ( )
pure virtual

◆ Write()

Status PipeBase::Write ( const void *  buf,
size_t  size,
size_t &  bytes_written 
)

◆ WriteWithTimeout()

virtual Status lldb_private::PipeBase::WriteWithTimeout ( const void *  buf,
size_t  size,
const std::chrono::microseconds &  timeout,
size_t &  bytes_written 
)
pure virtual

Implemented in lldb_private::PipePosix, and lldb_private::PipeWindows.

Referenced by Write().


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