SBStructuredData#
- class lldb.SBStructuredData(*args)#
A class representing a StructuredData event.
This class wraps the event type generated by StructuredData features.
Attributes Summary
Methods Summary
Clear(SBStructuredData self)GetAsJSON(SBStructuredData self, SBStream stream)GetBooleanValue([fail_value])Return the boolean value if this data structure is a boolean type.
GetDescription(SBStructuredData self, ...)GetFloatValue([fail_value])Return the floating point value if this data structure is a floating type.
Return the generic pointer if this data structure is a generic type.
GetIntegerValue(SBStructuredData self, ...)GetItemAtIndex(idx)Return the value corresponding to an index if this data structure is array.
GetKeys(keys)Fill keys with the keys in this object and return true if this data structure is a dictionary.
GetSignedIntegerValue([fail_value])Return the integer value if this data structure is an integer type.
GetSize()Return the size (i.e. number of elements) in this data structure if it is an array or dictionary type.
GetStringValue(SBStructuredData self, ...)GetType()Return the type of data in this data structure
GetUnsignedIntegerValue([fail_value])Return the integer value if this data structure is an integer type.
GetValueForKey(key)Return the value corresponding to a key if this data structure is a dictionary type.
IsValid(SBStructuredData self)SetBooleanValue(value)Change the type to boolean and overwrite the previous data with the new value.
SetFloatValue(value)Change the type to float and overwrite the previous data with the new value.
SetFromJSON(-> SBError)SetGenericValue(value)Change the type to generic and overwrite the previous data with the new value.
SetSignedIntegerValue(value)Change the type to signed integer and overwrite the previous data with the new value.
SetStringValue(value)Change the type to string and overwrite the previous data with the new value.
SetUnsignedIntegerValue(value)Change the type to unsigned integer and overwrite the previous data with the new value.
SetValueForKey(key, value)Set the value corresponding to a key.
type_name(t)Attributes Documentation
- dynamic#
Methods Documentation
- Clear(SBStructuredData self)#
- GetBooleanValue(fail_value=False)#
Return the boolean value if this data structure is a boolean type.
- GetFloatValue(fail_value=0.0)#
Return the floating point value if this data structure is a floating type.
- GetGenericValue()#
Return the generic pointer if this data structure is a generic type.
- GetIntegerValue(SBStructuredData self, uint64_t fail_value=0) uint64_t#
- GetItemAtIndex(idx)#
Return the value corresponding to an index if this data structure is array.
- GetKeys(keys)#
Fill keys with the keys in this object and return true if this data structure is a dictionary. Returns false otherwise.
- GetSignedIntegerValue(fail_value=0)#
Return the integer value if this data structure is an integer type.
- GetSize()#
Return the size (i.e. number of elements) in this data structure if it is an array or dictionary type. For other types, 0 will be
- GetStringValue(SBStructuredData self, size_t len=0) std::string#
- GetType()#
Return the type of data in this data structure
- GetUnsignedIntegerValue(fail_value=0)#
Return the integer value if this data structure is an integer type.
- GetValueForKey(key)#
Return the value corresponding to a key if this data structure is a dictionary type.
- IsValid(SBStructuredData self) bool#
- SetBooleanValue(value)#
Change the type to boolean and overwrite the previous data with the new value.
- SetFloatValue(value)#
Change the type to float and overwrite the previous data with the new value.
- SetFromJSON(SBStructuredData self, SBStream stream) SBError#
- SetFromJSON(SBStructuredData self, char const * json) SBError
- SetGenericValue(value)#
Change the type to generic and overwrite the previous data with the new value.
- SetSignedIntegerValue(value)#
Change the type to signed integer and overwrite the previous data with the new value.
- SetStringValue(value)#
Change the type to string and overwrite the previous data with the new value.
- SetUnsignedIntegerValue(value)#
Change the type to unsigned integer and overwrite the previous data with the new value.
- SetValueForKey(key, value)#
Set the value corresponding to a key. If this data structure is not a dictionary type, reset the type to be dictionary and overwrite the previous data.
- static type_name(t)#