LLDB mainline
Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | Private Member Functions | List of all members
lldb_private::IOObject Class Referenceabstract

#include <IOObject.h>

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

Public Types

enum  FDType { eFDTypeFile , eFDTypeSocket }
 
typedef int WaitableHandle
 

Public Member Functions

 IOObject (FDType type)
 
virtual ~IOObject ()
 
virtual Status Read (void *buf, size_t &num_bytes)=0
 
virtual Status Write (const void *buf, size_t &num_bytes)=0
 
virtual bool IsValid () const =0
 
virtual Status Close ()=0
 
FDType GetFdType () const
 
virtual WaitableHandle GetWaitableHandle ()=0
 

Static Public Attributes

static const WaitableHandle kInvalidHandleValue = -1
 

Protected Attributes

FDType m_fd_type
 

Private Member Functions

 IOObject (const IOObject &)=delete
 
const IOObjectoperator= (const IOObject &)=delete
 

Detailed Description

Definition at line 20 of file IOObject.h.

Member Typedef Documentation

◆ WaitableHandle

Definition at line 29 of file IOObject.h.

Member Enumeration Documentation

◆ FDType

Enumerator
eFDTypeFile 
eFDTypeSocket 

Definition at line 22 of file IOObject.h.

Constructor & Destructor Documentation

◆ IOObject() [1/2]

lldb_private::IOObject::IOObject ( FDType  type)
inline

Definition at line 32 of file IOObject.h.

◆ ~IOObject()

IOObject::~IOObject ( )
virtualdefault

◆ IOObject() [2/2]

lldb_private::IOObject::IOObject ( const IOObject )
privatedelete

Member Function Documentation

◆ Close()

virtual Status lldb_private::IOObject::Close ( )
pure virtual

◆ GetFdType()

FDType lldb_private::IOObject::GetFdType ( ) const
inline

Definition at line 40 of file IOObject.h.

References m_fd_type.

◆ GetWaitableHandle()

virtual WaitableHandle lldb_private::IOObject::GetWaitableHandle ( )
pure virtual

◆ IsValid()

virtual bool lldb_private::IOObject::IsValid ( ) const
pure virtual

◆ operator=()

const IOObject & lldb_private::IOObject::operator= ( const IOObject )
privatedelete

◆ Read()

virtual Status lldb_private::IOObject::Read ( void *  buf,
size_t &  num_bytes 
)
pure virtual

◆ Write()

virtual Status lldb_private::IOObject::Write ( const void *  buf,
size_t &  num_bytes 
)
pure virtual

Member Data Documentation

◆ kInvalidHandleValue

const IOObject::WaitableHandle IOObject::kInvalidHandleValue = -1
static

◆ m_fd_type

FDType lldb_private::IOObject::m_fd_type
protected

Definition at line 45 of file IOObject.h.

Referenced by GetFdType().


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