LLDB  mainline
Public Member Functions | Protected Attributes | List of all members
lldb_private::StructuredData::String Class Reference

#include <StructuredData.h>

Inheritance diagram for lldb_private::StructuredData::String:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::StructuredData::String:
Collaboration graph
[legend]

Public Member Functions

 String ()
 
 String (llvm::StringRef S)
 
void SetValue (llvm::StringRef S)
 
llvm::StringRef GetValue ()
 
void Serialize (llvm::json::OStream &s) const override
 
void GetDescription (lldb_private::Stream &s) const override
 
- Public Member Functions inherited from lldb_private::StructuredData::Object
 Object (lldb::StructuredDataType t=lldb::eStructuredDataTypeInvalid)
 
virtual ~Object ()=default
 
virtual bool IsValid () const
 
virtual void Clear ()
 
lldb::StructuredDataType GetType () const
 
void SetType (lldb::StructuredDataType t)
 
ArrayGetAsArray ()
 
DictionaryGetAsDictionary ()
 
IntegerGetAsInteger ()
 
uint64_t GetIntegerValue (uint64_t fail_value=0)
 
FloatGetAsFloat ()
 
double GetFloatValue (double fail_value=0.0)
 
BooleanGetAsBoolean ()
 
bool GetBooleanValue (bool fail_value=false)
 
StringGetAsString ()
 
llvm::StringRef GetStringValue (const char *fail_value=nullptr)
 
GenericGetAsGeneric ()
 
ObjectSP GetObjectForDotSeparatedPath (llvm::StringRef path)
 
void DumpToStdout (bool pretty_print=true) const
 
void Dump (lldb_private::Stream &s, bool pretty_print=true) const
 

Protected Attributes

std::string m_value
 

Detailed Description

Definition at line 350 of file StructuredData.h.

Constructor & Destructor Documentation

◆ String() [1/2]

lldb_private::StructuredData::String::String ( )
inline

Definition at line 352 of file StructuredData.h.

◆ String() [2/2]

lldb_private::StructuredData::String::String ( llvm::StringRef  S)
inlineexplicit

Definition at line 353 of file StructuredData.h.

Member Function Documentation

◆ GetDescription()

void StructuredData::String::GetDescription ( lldb_private::Stream s) const
overridevirtual

Reimplemented from lldb_private::StructuredData::Object.

Definition at line 196 of file StructuredData.cpp.

References lldb_private::Stream::Printf().

◆ GetValue()

llvm::StringRef lldb_private::StructuredData::String::GetValue ( )
inline

Definition at line 358 of file StructuredData.h.

References m_value.

Referenced by lldb_private::StructuredData::Object::GetStringValue().

◆ Serialize()

void StructuredData::String::Serialize ( llvm::json::OStream &  s) const
overridevirtual

Implements lldb_private::StructuredData::Object.

Definition at line 162 of file StructuredData.cpp.

◆ SetValue()

void lldb_private::StructuredData::String::SetValue ( llvm::StringRef  S)
inline

Definition at line 356 of file StructuredData.h.

References m_value, and string().

Member Data Documentation

◆ m_value

std::string lldb_private::StructuredData::String::m_value
protected

Definition at line 365 of file StructuredData.h.

Referenced by GetValue(), and SetValue().


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