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

#include <SBCommandReturnObject.h>

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

Public Member Functions

 SBCommandReturnObject ()
 
 SBCommandReturnObject (lldb_private::CommandReturnObject &ref)
 
 SBCommandReturnObject (const lldb::SBCommandReturnObject &rhs)
 
 ~SBCommandReturnObject ()
 
lldb::SBCommandReturnObjectoperator= (const lldb::SBCommandReturnObject &rhs)
 
 operator bool () const
 
bool IsValid () const
 
const char * GetOutput ()
 
const char * GetError ()
 
size_t PutOutput (FILE *fh)
 
size_t PutOutput (SBFile file)
 
size_t PutOutput (FileSP file)
 
size_t GetOutputSize ()
 
size_t GetErrorSize ()
 
size_t PutError (FILE *fh)
 
size_t PutError (SBFile file)
 
size_t PutError (FileSP file)
 
void Clear ()
 
lldb::ReturnStatus GetStatus ()
 
void SetStatus (lldb::ReturnStatus status)
 
bool Succeeded ()
 
bool HasResult ()
 
void AppendMessage (const char *message)
 
void AppendWarning (const char *message)
 
bool GetDescription (lldb::SBStream &description)
 
void SetImmediateOutputFile (FILE *fh)
 
void SetImmediateErrorFile (FILE *fh)
 
void SetImmediateOutputFile (FILE *fh, bool transfer_ownership)
 
void SetImmediateErrorFile (FILE *fh, bool transfer_ownership)
 
void SetImmediateOutputFile (SBFile file)
 
void SetImmediateErrorFile (SBFile file)
 
void SetImmediateOutputFile (FileSP file)
 
void SetImmediateErrorFile (FileSP file)
 
void PutCString (const char *string, int len=-1)
 
size_t Printf (const char *format,...) __attribute__((format(printf
 
size_t const char * GetOutput (bool only_if_no_immediate)
 
const char * GetError (bool only_if_no_immediate)
 
void SetError (lldb::SBError &error, const char *fallback_error_cstr=nullptr)
 
void SetError (const char *error_cstr)
 

Protected Member Functions

lldb_private::CommandReturnObjectoperator-> () const
 
lldb_private::CommandReturnObjectget () const
 
lldb_private::CommandReturnObjectoperator* () const
 

Private Member Functions

lldb_private::CommandReturnObjectref () const
 

Private Attributes

std::unique_ptr< lldb_private::SBCommandReturnObjectImplm_opaque_up
 

Friends

class SBCommandInterpreter
 
class SBOptions
 

Detailed Description

Definition at line 24 of file SBCommandReturnObject.h.

Constructor & Destructor Documentation

◆ SBCommandReturnObject() [1/3]

SBCommandReturnObject::SBCommandReturnObject ( )

Definition at line 47 of file SBCommandReturnObject.cpp.

References LLDB_RECORD_CONSTRUCTOR_NO_ARGS.

◆ SBCommandReturnObject() [2/3]

SBCommandReturnObject::SBCommandReturnObject ( lldb_private::CommandReturnObject ref)

Definition at line 52 of file SBCommandReturnObject.cpp.

References LLDB_RECORD_CONSTRUCTOR, and ref().

◆ SBCommandReturnObject() [3/3]

SBCommandReturnObject::SBCommandReturnObject ( const lldb::SBCommandReturnObject rhs)

◆ ~SBCommandReturnObject()

SBCommandReturnObject::~SBCommandReturnObject ( )
default

Member Function Documentation

◆ AppendMessage()

void SBCommandReturnObject::AppendMessage ( const char *  message)

◆ AppendWarning()

void SBCommandReturnObject::AppendWarning ( const char *  message)

◆ Clear()

void SBCommandReturnObject::Clear ( )

◆ get()

CommandReturnObject * SBCommandReturnObject::get ( ) const
protected

Definition at line 217 of file SBCommandReturnObject.cpp.

References m_opaque_up.

Referenced by GetError(), and GetOutput().

◆ GetDescription()

bool SBCommandReturnObject::GetDescription ( lldb::SBStream description)

◆ GetError() [1/2]

const char * SBCommandReturnObject::GetError ( )

◆ GetError() [2/2]

const char * SBCommandReturnObject::GetError ( bool  only_if_no_immediate)

Definition at line 332 of file SBCommandReturnObject.cpp.

References get(), GetError(), LLDB_RECORD_METHOD, and ref().

◆ GetErrorSize()

size_t SBCommandReturnObject::GetErrorSize ( )

◆ GetOutput() [1/2]

const char * SBCommandReturnObject::GetOutput ( )

◆ GetOutput() [2/2]

const char * SBCommandReturnObject::GetOutput ( bool  only_if_no_immediate)

Definition at line 322 of file SBCommandReturnObject.cpp.

References get(), GetOutput(), LLDB_RECORD_METHOD, and ref().

◆ GetOutputSize()

size_t SBCommandReturnObject::GetOutputSize ( )

◆ GetStatus()

lldb::ReturnStatus SBCommandReturnObject::GetStatus ( )

◆ HasResult()

bool SBCommandReturnObject::HasResult ( )

◆ IsValid()

bool SBCommandReturnObject::IsValid ( ) const

Definition at line 80 of file SBCommandReturnObject.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator bool()

SBCommandReturnObject::operator bool ( ) const
explicit

Definition at line 84 of file SBCommandReturnObject.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator*()

CommandReturnObject & SBCommandReturnObject::operator* ( ) const
protected

Definition at line 221 of file SBCommandReturnObject.cpp.

References m_opaque_up.

◆ operator->()

CommandReturnObject * SBCommandReturnObject::operator-> ( ) const
protected

Definition at line 213 of file SBCommandReturnObject.cpp.

References m_opaque_up.

◆ operator=()

SBCommandReturnObject & SBCommandReturnObject::operator= ( const lldb::SBCommandReturnObject rhs)

◆ Printf()

size_t SBCommandReturnObject::Printf ( const char *  format,
  ... 
)

◆ PutCString()

void SBCommandReturnObject::PutCString ( const char *  string,
int  len = -1 
)

◆ PutError() [1/3]

size_t SBCommandReturnObject::PutError ( FILE *  fh)

◆ PutError() [2/3]

size_t SBCommandReturnObject::PutError ( FileSP  file)

Definition at line 152 of file SBCommandReturnObject.cpp.

References GetError(), LLDB_RECORD_METHOD, and PutError().

◆ PutError() [3/3]

size_t SBCommandReturnObject::PutError ( SBFile  file)

◆ PutOutput() [1/3]

size_t SBCommandReturnObject::PutOutput ( FILE *  fh)

◆ PutOutput() [2/3]

size_t SBCommandReturnObject::PutOutput ( FileSP  file)

Definition at line 127 of file SBCommandReturnObject.cpp.

References GetOutput(), LLDB_RECORD_METHOD, and PutOutput().

◆ PutOutput() [3/3]

size_t SBCommandReturnObject::PutOutput ( SBFile  file)

◆ ref()

CommandReturnObject & SBCommandReturnObject::ref ( ) const
private

◆ SetError() [1/2]

void SBCommandReturnObject::SetError ( const char *  error_cstr)

◆ SetError() [2/2]

void SBCommandReturnObject::SetError ( lldb::SBError error,
const char *  fallback_error_cstr = nullptr 
)

◆ SetImmediateErrorFile() [1/4]

void SBCommandReturnObject::SetImmediateErrorFile ( FILE *  fh)

Definition at line 262 of file SBCommandReturnObject.cpp.

References LLDB_RECORD_DUMMY.

Referenced by SetImmediateErrorFile().

◆ SetImmediateErrorFile() [2/4]

void SBCommandReturnObject::SetImmediateErrorFile ( FILE *  fh,
bool  transfer_ownership 
)

◆ SetImmediateErrorFile() [3/4]

void SBCommandReturnObject::SetImmediateErrorFile ( FileSP  file)

◆ SetImmediateErrorFile() [4/4]

void SBCommandReturnObject::SetImmediateErrorFile ( SBFile  file)

◆ SetImmediateOutputFile() [1/4]

void SBCommandReturnObject::SetImmediateOutputFile ( FILE *  fh)

Definition at line 255 of file SBCommandReturnObject.cpp.

References LLDB_RECORD_DUMMY.

Referenced by SetImmediateOutputFile().

◆ SetImmediateOutputFile() [2/4]

void SBCommandReturnObject::SetImmediateOutputFile ( FILE *  fh,
bool  transfer_ownership 
)

◆ SetImmediateOutputFile() [3/4]

void SBCommandReturnObject::SetImmediateOutputFile ( FileSP  file)

◆ SetImmediateOutputFile() [4/4]

void SBCommandReturnObject::SetImmediateOutputFile ( SBFile  file)

◆ SetStatus()

void SBCommandReturnObject::SetStatus ( lldb::ReturnStatus  status)

◆ Succeeded()

bool SBCommandReturnObject::Succeeded ( )

Friends And Related Function Documentation

◆ SBCommandInterpreter

friend class SBCommandInterpreter
friend

Definition at line 109 of file SBCommandReturnObject.h.

◆ SBOptions

friend class SBOptions
friend

Definition at line 110 of file SBCommandReturnObject.h.

Member Data Documentation

◆ m_opaque_up

std::unique_ptr<lldb_private::SBCommandReturnObjectImpl> lldb::SBCommandReturnObject::m_opaque_up
private

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