LLDB mainline
lldb::SBFile Class Reference

#include <SBFile.h>

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 *OUTPUT)
SBError Write (const uint8_t *buf, size_t num_bytes, size_t *OUTPUT)
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 18 of file SBFile.h.

Constructor & Destructor Documentation

◆ SBFile() [1/5]

SBFile::SBFile ( )

Definition at line 37 of file SBFile.cpp.

References LLDB_INSTRUMENT_VA.

Referenced by operator=(), SBFile(), SBProcess, and ~SBFile().

◆ SBFile() [2/5]

SBFile::SBFile ( FileSP file_sp)

Definition at line 19 of file SBFile.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ SBFile() [3/5]

SBFile::SBFile ( const SBFile & rhs)

Definition at line 25 of file SBFile.cpp.

References LLDB_INSTRUMENT_VA, m_opaque_sp, and SBFile().

◆ SBFile() [4/5]

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

Definition at line 39 of file SBFile.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ SBFile() [5/5]

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

◆ ~SBFile()

SBFile::~SBFile ( )
default

Member Function Documentation

◆ Close()

SBError SBFile::Close ( )

Definition at line 103 of file SBFile.cpp.

References error(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

Referenced by ~SBFile().

◆ Flush()

SBError SBFile::Flush ( )

Definition at line 86 of file SBFile.cpp.

References error(), lldb_private::Status::FromErrorString(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

Referenced by ~SBFile().

◆ GetFile()

FileSP SBFile::GetFile ( ) const

Definition at line 121 of file SBFile.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

Referenced by lldb::SBStream::RedirectToFile(), and ~SBFile().

◆ IsValid()

bool SBFile::IsValid ( ) const

Definition at line 98 of file SBFile.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

Referenced by operator bool(), operator!(), lldb::SBInstructionList::Print(), and ~SBFile().

◆ operator bool()

SBFile::operator bool ( ) const

Definition at line 111 of file SBFile.cpp.

References IsValid(), and LLDB_INSTRUMENT_VA.

◆ operator!()

bool SBFile::operator! ( ) const

Definition at line 116 of file SBFile.cpp.

References IsValid(), and LLDB_INSTRUMENT_VA.

Referenced by ~SBFile().

◆ operator=()

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

Definition at line 29 of file SBFile.cpp.

References LLDB_INSTRUMENT_VA, m_opaque_sp, and SBFile().

Referenced by ~SBFile().

◆ Read()

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

Definition at line 57 of file SBFile.cpp.

References error(), lldb_private::Status::FromErrorString(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

Referenced by ~SBFile().

◆ Write()

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

Definition at line 71 of file SBFile.cpp.

References error(), lldb_private::Status::FromErrorString(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

Referenced by ~SBFile().

◆ SBCommandReturnObject

friend class SBCommandReturnObject
friend

Definition at line 22 of file SBFile.h.

References SBCommandReturnObject.

Referenced by SBCommandReturnObject.

◆ SBDebugger

friend class SBDebugger
friend

Definition at line 21 of file SBFile.h.

References SBDebugger.

Referenced by SBDebugger.

◆ SBInstruction

friend class SBInstruction
friend

Definition at line 19 of file SBFile.h.

References SBInstruction.

Referenced by SBInstruction.

◆ SBInstructionList

friend class SBInstructionList
friend

Definition at line 20 of file SBFile.h.

References SBInstructionList.

Referenced by SBInstructionList.

◆ SBProcess

friend class SBProcess
friend

Definition at line 23 of file SBFile.h.

References SBFile(), and SBProcess.

Referenced by SBProcess.

Member Data Documentation

◆ m_opaque_sp


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