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

#include <SBCommandReturnObject.h>

Public Member Functions

 SBCommandReturnObject ()
 
 SBCommandReturnObject (const lldb::SBCommandReturnObject &rhs)
 
 ~SBCommandReturnObject ()
 
const lldb::SBCommandReturnObjectoperator= (const lldb::SBCommandReturnObject &rhs)
 
 SBCommandReturnObject (lldb_private::CommandReturnObject *ptr)
 
lldb_private::CommandReturnObjectRelease ()
 
 operator bool () const
 
bool IsValid () const
 
const char * GetOutput ()
 
const char * GetError ()
 
size_t PutOutput (FILE *fh)
 
size_t GetOutputSize ()
 
size_t GetErrorSize ()
 
size_t PutError (FILE *fh)
 
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 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
 
lldb_private::CommandReturnObjectref () const
 
void SetLLDBObjectPtr (lldb_private::CommandReturnObject *ptr)
 

Friends

class SBCommandInterpreter
 
class SBOptions
 

Detailed Description

Definition at line 20 of file SBCommandReturnObject.h.

Constructor & Destructor Documentation

◆ SBCommandReturnObject() [1/3]

SBCommandReturnObject::SBCommandReturnObject ( )

Definition at line 21 of file SBCommandReturnObject.cpp.

References LLDB_RECORD_CONSTRUCTOR_NO_ARGS.

◆ SBCommandReturnObject() [2/3]

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

Definition at line 26 of file SBCommandReturnObject.cpp.

References lldb_private::clone(), and LLDB_RECORD_CONSTRUCTOR.

◆ ~SBCommandReturnObject()

SBCommandReturnObject::~SBCommandReturnObject ( )
default

Referenced by SBCommandReturnObject().

◆ SBCommandReturnObject() [3/3]

SBCommandReturnObject::SBCommandReturnObject ( lldb_private::CommandReturnObject ptr)

Definition at line 34 of file SBCommandReturnObject.cpp.

References LLDB_RECORD_CONSTRUCTOR, and ~SBCommandReturnObject().

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 184 of file SBCommandReturnObject.cpp.

◆ 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 291 of file SBCommandReturnObject.cpp.

References GetError(), and LLDB_RECORD_METHOD.

◆ 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 279 of file SBCommandReturnObject.cpp.

References GetOutput(), and LLDB_RECORD_METHOD.

◆ GetOutputSize()

size_t SBCommandReturnObject::GetOutputSize ( )

◆ GetStatus()

lldb::ReturnStatus SBCommandReturnObject::GetStatus ( )

◆ HasResult()

bool SBCommandReturnObject::HasResult ( )

◆ IsValid()

bool SBCommandReturnObject::IsValid ( ) const

◆ operator bool()

SBCommandReturnObject::operator bool ( ) const
explicit

Definition at line 65 of file SBCommandReturnObject.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator*()

CommandReturnObject & SBCommandReturnObject::operator* ( ) const
protected

Definition at line 188 of file SBCommandReturnObject.cpp.

◆ operator->()

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

Definition at line 180 of file SBCommandReturnObject.cpp.

◆ operator=()

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

Definition at line 50 of file SBCommandReturnObject.cpp.

References lldb_private::clone(), LLDB_RECORD_METHOD, and LLDB_RECORD_RESULT.

Referenced by Release().

◆ Printf()

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

Definition at line 303 of file SBCommandReturnObject.cpp.

◆ PutCString()

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

◆ PutError()

size_t SBCommandReturnObject::PutError ( FILE *  fh)

◆ PutOutput()

size_t SBCommandReturnObject::PutOutput ( FILE *  fh)

◆ ref()

CommandReturnObject & SBCommandReturnObject::ref ( ) const
protected

◆ Release()

CommandReturnObject * SBCommandReturnObject::Release ( )

◆ SetError() [1/2]

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

◆ SetError() [2/2]

void SBCommandReturnObject::SetError ( const char *  error_cstr)

Definition at line 328 of file SBCommandReturnObject.cpp.

References LLDB_RECORD_METHOD, and SetError().

◆ SetImmediateErrorFile() [1/2]

void SBCommandReturnObject::SetImmediateErrorFile ( FILE *  fh)

◆ SetImmediateErrorFile() [2/2]

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

Definition at line 255 of file SBCommandReturnObject.cpp.

References LLDB_RECORD_METHOD, and SetImmediateErrorFile().

◆ SetImmediateOutputFile() [1/2]

void SBCommandReturnObject::SetImmediateOutputFile ( FILE *  fh)

◆ SetImmediateOutputFile() [2/2]

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

Definition at line 246 of file SBCommandReturnObject.cpp.

References LLDB_RECORD_METHOD, and SetImmediateOutputFile().

◆ SetLLDBObjectPtr()

void SBCommandReturnObject::SetLLDBObjectPtr ( lldb_private::CommandReturnObject ptr)
protected

Definition at line 198 of file SBCommandReturnObject.cpp.

◆ SetStatus()

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

◆ Succeeded()

bool SBCommandReturnObject::Succeeded ( )

Friends And Related Function Documentation

◆ SBCommandInterpreter

friend class SBCommandInterpreter
friend

Definition at line 90 of file SBCommandReturnObject.h.

◆ SBOptions

friend class SBOptions
friend

Definition at line 91 of file SBCommandReturnObject.h.


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