LLDB  mainline
Classes | Public Types | Static Public Member Functions | List of all members
lldb_private::StructuredData Class Reference

A class which can hold structured data. More...

#include "lldb/Utility/StructuredData.h"

Classes

class  Array
 
class  Boolean
 
class  Dictionary
 
class  Float
 
class  Generic
 
class  Integer
 
class  Null
 
class  Object
 
class  String
 

Public Types

typedef std::shared_ptr< ObjectObjectSP
 
typedef std::shared_ptr< ArrayArraySP
 
typedef std::shared_ptr< IntegerIntegerSP
 
typedef std::shared_ptr< FloatFloatSP
 
typedef std::shared_ptr< BooleanBooleanSP
 
typedef std::shared_ptr< StringStringSP
 
typedef std::shared_ptr< DictionaryDictionarySP
 
typedef std::shared_ptr< GenericGenericSP
 

Static Public Member Functions

static ObjectSP ParseJSON (std::string json_text)
 
static ObjectSP ParseJSONFromFile (const FileSpec &file, Status &error)
 

Detailed Description

A class which can hold structured data.

The StructuredData class is designed to hold the data from a JSON or plist style file – a serialized data structure with dictionaries (maps, hashes), arrays, and concrete values like integers, floating point numbers, strings, booleans.

StructuredData does not presuppose any knowledge of the schema for the data it is holding; it can parse JSON data, for instance, and other parts of lldb can iterate through the parsed data set to find keys and values that may be present.

Definition at line 51 of file StructuredData.h.

Member Typedef Documentation

◆ ArraySP

typedef std::shared_ptr<Array> lldb_private::StructuredData::ArraySP

Definition at line 63 of file StructuredData.h.

◆ BooleanSP

Definition at line 66 of file StructuredData.h.

◆ DictionarySP

Definition at line 68 of file StructuredData.h.

◆ FloatSP

typedef std::shared_ptr<Float> lldb_private::StructuredData::FloatSP

Definition at line 65 of file StructuredData.h.

◆ GenericSP

Definition at line 69 of file StructuredData.h.

◆ IntegerSP

Definition at line 64 of file StructuredData.h.

◆ ObjectSP

Definition at line 60 of file StructuredData.h.

◆ StringSP

Definition at line 67 of file StructuredData.h.

Member Function Documentation

◆ ParseJSON()

StructuredData::ObjectSP StructuredData::ParseJSON ( std::string  json_text)
static

◆ ParseJSONFromFile()

StructuredData::ObjectSP StructuredData::ParseJSONFromFile ( const FileSpec file,
Status error 
)
static

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