LLDB mainline
Public Member Functions | Private Attributes | Friends | List of all members
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.

◆ SBFile() [2/5]

SBFile::SBFile ( FileSP  file_sp)

Definition at line 19 of file SBFile.cpp.

References LLDB_INSTRUMENT_VA.

◆ SBFile() [3/5]

SBFile::SBFile ( const SBFile rhs)

Definition at line 25 of file SBFile.cpp.

References LLDB_INSTRUMENT_VA.

◆ 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 106 of file SBFile.cpp.

References error(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ Flush()

SBError SBFile::Flush ( )

Definition at line 88 of file SBFile.cpp.

References error(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ GetFile()

FileSP SBFile::GetFile ( ) const

Definition at line 126 of file SBFile.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

Referenced by lldb::SBStream::RedirectToFile().

◆ IsValid()

bool SBFile::IsValid ( ) const

Definition at line 101 of file SBFile.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

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

◆ operator bool()

SBFile::operator bool ( ) const

Definition at line 116 of file SBFile.cpp.

References LLDB_INSTRUMENT_VA.

◆ operator!()

bool SBFile::operator! ( ) const

Definition at line 121 of file SBFile.cpp.

References IsValid(), and LLDB_INSTRUMENT_VA.

◆ operator=()

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

Definition at line 29 of file SBFile.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ 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_INSTRUMENT_VA, and m_opaque_sp.

◆ Write()

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

Definition at line 72 of file SBFile.cpp.

References error(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

Friends And Related Function Documentation

◆ SBCommandReturnObject

friend class SBCommandReturnObject
friend

Definition at line 22 of file SBFile.h.

◆ SBDebugger

friend class SBDebugger
friend

Definition at line 21 of file SBFile.h.

◆ SBInstruction

friend class SBInstruction
friend

Definition at line 19 of file SBFile.h.

◆ SBInstructionList

friend class SBInstructionList
friend

Definition at line 20 of file SBFile.h.

◆ SBProcess

friend class SBProcess
friend

Definition at line 23 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: