LLDB  mainline
Public Member Functions | Private Attributes | Friends | List of all members
lldb::SBFile Class Reference

#include <SBFile.h>

Collaboration diagram for lldb::SBFile:
Collaboration graph
[legend]

Public Member Functions

 SBFile ()
 
 SBFile (FileSP file_sp)
 
 SBFile (const SBFile &rhs)
 
 SBFile (FILE *file, bool transfer_ownership)
 
 SBFile (int fd, const char *mode, bool transfer_ownership)
 
 ~SBFile ()
 
SBFileoperator= (const SBFile &rhs)
 
SBError Read (uint8_t *buf, size_t num_bytes, size_t *bytes_read)
 
SBError Write (const uint8_t *buf, size_t num_bytes, size_t *bytes_written)
 
SBError Flush ()
 
bool IsValid () const
 
SBError Close ()
 
 operator bool () const
 
bool operator! () const
 
FileSP GetFile () const
 

Private Attributes

FileSP m_opaque_sp
 

Friends

class SBInstruction
 
class SBInstructionList
 
class SBDebugger
 
class SBCommandReturnObject
 
class SBProcess
 

Detailed Description

Definition at line 16 of file SBFile.h.

Constructor & Destructor Documentation

◆ SBFile() [1/5]

SBFile::SBFile ( )

Definition at line 38 of file SBFile.cpp.

References LLDB_RECORD_CONSTRUCTOR_NO_ARGS.

◆ SBFile() [2/5]

SBFile::SBFile ( FileSP  file_sp)

Definition at line 19 of file SBFile.cpp.

References LLDB_RECORD_CONSTRUCTOR.

◆ SBFile() [3/5]

SBFile::SBFile ( const SBFile rhs)

Definition at line 25 of file SBFile.cpp.

References LLDB_RECORD_CONSTRUCTOR.

◆ SBFile() [4/5]

SBFile::SBFile ( FILE *  file,
bool  transfer_ownership 
)

Definition at line 40 of file SBFile.cpp.

References LLDB_RECORD_CONSTRUCTOR, and m_opaque_sp.

◆ SBFile() [5/5]

SBFile::SBFile ( int  fd,
const char *  mode,
bool  transfer_ownership 
)

Definition at line 46 of file SBFile.cpp.

References LLDB_RECORD_CONSTRUCTOR, and m_opaque_sp.

◆ ~SBFile()

SBFile::~SBFile ( )
default

Member Function Documentation

◆ Close()

SBError SBFile::Close ( )

◆ Flush()

SBError SBFile::Flush ( )

◆ GetFile()

FileSP SBFile::GetFile ( ) const

◆ IsValid()

bool SBFile::IsValid ( ) const

◆ operator bool()

SBFile::operator bool ( ) const

Definition at line 121 of file SBFile.cpp.

References IsValid(), and LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator!()

bool SBFile::operator! ( ) const

Definition at line 126 of file SBFile.cpp.

References IsValid(), and LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator=()

SBFile & SBFile::operator= ( const SBFile rhs)

Definition at line 29 of file SBFile.cpp.

References LLDB_RECORD_METHOD, LLDB_RECORD_RESULT, and m_opaque_sp.

◆ Read()

SBError SBFile::Read ( uint8_t *  buf,
size_t  num_bytes,
size_t *  bytes_read 
)

◆ Write()

SBError SBFile::Write ( const uint8_t *  buf,
size_t  num_bytes,
size_t *  bytes_written 
)

Friends And Related Function Documentation

◆ SBCommandReturnObject

friend class SBCommandReturnObject
friend

Definition at line 20 of file SBFile.h.

◆ SBDebugger

friend class SBDebugger
friend

Definition at line 19 of file SBFile.h.

◆ SBInstruction

friend class SBInstruction
friend

Definition at line 17 of file SBFile.h.

◆ SBInstructionList

friend class SBInstructionList
friend

Definition at line 18 of file SBFile.h.

◆ SBProcess

friend class SBProcess
friend

Definition at line 21 of file SBFile.h.

Member Data Documentation

◆ m_opaque_sp

FileSP lldb::SBFile::m_opaque_sp
private

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