RStudio Launcher Plugin SDK  1.1.3
A software development kit for creating plugins that work the the RStudio Launcher.
Public Member Functions | Protected Types | Protected Member Functions | Friends | List of all members
rstudio::launcher_plugins::json::Value Class Reference

Class which represents a json value. More...

#include <Json.hpp>

Inheritance diagram for rstudio::launcher_plugins::json::Value:
rstudio::launcher_plugins::json::Array rstudio::launcher_plugins::json::Object

Public Member Functions

 Value ()
 Constructor.
 
 Value (ValueImplPtr in_valueImpl)
 Constructor. Creates a JSON value from a Value::Impl object. More...
 
 Value (const Value &in_other)
 Copy constructor. More...
 
 Value (Value &&in_other) noexcept
 Move constructor. More...
 
 Value (bool in_value)
 Conversion constructor. More...
 
 Value (double in_value)
 Conversion constructor. More...
 
 Value (float in_value)
 Conversion constructor. More...
 
 Value (int in_value)
 Conversion constructor. More...
 
 Value (int64_t in_value)
 Conversion constructor. More...
 
 Value (const char *in_value)
 Conversion constructor. More...
 
 Value (const std::string &in_value)
 Conversion constructor. More...
 
 Value (unsigned int in_value)
 Conversion constructor. More...
 
 Value (uint64_t in_value)
 Conversion constructor. More...
 
virtual ~Value ()=default
 Virtual destructor.
 
Valueoperator= (const Value &in_other)
 Assignment operator from Value. More...
 
Valueoperator= (Value &&in_other) noexcept
 Move operator. More...
 
Valueoperator= (bool in_value)
 Assignment operator. More...
 
Valueoperator= (double in_value)
 Assignment operator. More...
 
Valueoperator= (float in_value)
 Assignment operator. More...
 
Valueoperator= (int in_value)
 Assignment operator. More...
 
Valueoperator= (int64_t in_value)
 Assignment operator. More...
 
Valueoperator= (const char *in_value)
 Assignment operator. More...
 
Valueoperator= (const std::string &in_value)
 Assignment operator. More...
 
Valueoperator= (unsigned int in_value)
 Assignment operator. More...
 
Valueoperator= (uint64_t in_value)
 Assignment operator. More...
 
bool operator== (const Value &in_other) const
 Equality operator. More...
 
bool operator!= (const Value &in_other) const
 Inequality operator. More...
 
Value clone () const
 Makes a copy of this JSON value. More...
 
Error coerce (const std::string &in_schema, std::vector< std::string > &out_propViolations)
 Attempts to coerce a JSON object to conform to the given schema by discarding non-conforming properties. More...
 
Array getArray () const
 Gets the value as a JSON array. If the call to getType() does not return Type::ARRAY, this method is invalid. More...
 
bool getBool () const
 Gets the value as a bool. If the call to getType() does not return Type::BOOL, this method is invalid. More...
 
double getDouble () const
 Gets the value as a double. If the call to getType() does not return Type::DOUBLE, this method is invalid. More...
 
float getFloat () const
 Gets the value as a float. If the call to getType() does not return Type::FLOAT, this method is invalid. More...
 
int getInt () const
 Gets the value as an int. If the call to getType() does not return Type::INT, this method is invalid. More...
 
int64_t getInt64 () const
 Gets the value as an int64. If the call to getType() does not return Type::INT64, this method is invalid. More...
 
Object getObject () const
 Gets the value as a JSON object. IF the call to getType() does not return Type::OBJECT, this method is invalid. More...
 
std::string getString () const
 Gets the value as a string. If the call to getType() does not return Type::STRING, this method is invalid. More...
 
Type getType () const
 Gets the type of this value. More...
 
unsigned int getUInt () const
 Gets the value as an unsigned int. If the call to getType() does not return Type::UINT, this method is invalid. More...
 
uint64_t getUInt64 () const
 Gets the value as an uint64. If the call to getType() does not return Type::UINT64, this method is invalid. More...
 
template<typename T >
getValue () const
 Gets this JSON value as the specified type. More...
 
bool isArray () const
 Checks whether the value is a JSON array or not. More...
 
bool isBool () const
 Checks whether the value is a boolean value or not. More...
 
bool isDouble () const
 Checks whether the value is a double value or not. More...
 
bool isFloat () const
 Checks whether the value is a float value or not. More...
 
bool isInt () const
 Checks whether the value is an int 32 value or not. More...
 
bool isInt64 () const
 Checks whether the value is an int 64 value or not. More...
 
bool isObject () const
 Checks whether the value is a JSON object or not. More...
 
bool isString () const
 Checks whether the value is a string value or not. More...
 
bool isNull () const
 Checks whether the value is null or not. More...
 
bool isUInt () const
 Checks whether the value is an unsigned int 32 value or not. More...
 
bool isUInt64 () const
 Checks whether the value is an unsigned int 64 value or not. More...
 
virtual Error parse (const char *in_jsonStr)
 Parses the JSON string into this value. More...
 
virtual Error parse (const std::string &in_jsonStr)
 Parses the JSON string into this value. More...
 
Error parseAndValidate (const std::string &in_jsonStr, const std::string &in_schema)
 Parses the JSON string and validates it against the schema. More...
 
Error setValueAtPointerPath (const std::string &in_pointerPath, const json::Value &in_value)
 Sets a value within the current value based on the specified JSON Pointer path. More...
 
Error setValueAtPointerPath (const std::string &in_pointerPath, bool in_value)
 Sets a value within the current value based on the specified JSON Pointer path. More...
 
Error setValueAtPointerPath (const std::string &in_pointerPath, double in_value)
 Sets a value within the current value based on the specified JSON Pointer path. More...
 
Error setValueAtPointerPath (const std::string &in_pointerPath, float in_value)
 Sets a value within the current value based on the specified JSON Pointer path. More...
 
Error setValueAtPointerPath (const std::string &in_pointerPath, int in_value)
 Sets a value within the current value based on the specified JSON Pointer path. More...
 
Error setValueAtPointerPath (const std::string &in_pointerPath, int64_t in_value)
 Sets a value within the current value based on the specified JSON Pointer path. More...
 
Error setValueAtPointerPath (const std::string &in_pointerPath, const char *in_value)
 Sets a value within the current value based on the specified JSON Pointer path. More...
 
Error setValueAtPointerPath (const std::string &in_pointerPath, const std::string &in_value)
 Sets a value within the current value based on the specified JSON Pointer path. More...
 
Error setValueAtPointerPath (const std::string &in_pointerPath, unsigned int in_value)
 Sets a value within the current value based on the specified JSON Pointer path. More...
 
Error setValueAtPointerPath (const std::string &in_pointerPath, uint64_t in_value)
 Sets a value within the current value based on the specified JSON Pointer path. More...
 
Error setValueAtPointerPath (const std::string &in_pointerPath, const Array &in_value)
 Sets a value within the current value based on the specified JSON Pointer path. More...
 
Error setValueAtPointerPath (const std::string &in_pointerPath, const Object &in_value)
 Sets a value within the current value based on the specified JSON Pointer path. More...
 
Error validate (const std::string &in_schema) const
 Validates this JSON value against a schema. More...
 
std::string write () const
 Writes this value to a string. More...
 
void write (std::ostream &io_ostream) const
 Writes this value to the specified output stream. More...
 
std::string writeFormatted () const
 Writes and formats this value to a string. More...
 
void writeFormatted (std::ostream &io_ostream) const
 Writes and formats this value to the specified output stream. More...
 

Protected Types

typedef std::shared_ptr< Impl > ValueImplPtr
 Convenience typedef for the type of the private implementation of json::Value.
 

Protected Member Functions

 PRIVATE_IMPL_SHARED (m_impl)
 Private implementation of Value.
 

Friends

class Array
 

Detailed Description

Class which represents a json value.

Constructor & Destructor Documentation

◆ Value() [1/12]

rstudio::launcher_plugins::json::Value::Value ( ValueImplPtr  in_valueImpl)
explicit

Constructor. Creates a JSON value from a Value::Impl object.

Parameters
in_valueImplThe Value::Impl object to use for the creation of this JSON value.

◆ Value() [2/12]

rstudio::launcher_plugins::json::Value::Value ( const Value in_other)

Copy constructor.

Parameters
in_otherThe value to copy.

◆ Value() [3/12]

rstudio::launcher_plugins::json::Value::Value ( Value &&  in_other)
noexcept

Move constructor.

Parameters
in_otherThe value to move from.

◆ Value() [4/12]

rstudio::launcher_plugins::json::Value::Value ( bool  in_value)
explicit

Conversion constructor.

Parameters
in_valueThe literal value to set this JSON Value to.

◆ Value() [5/12]

rstudio::launcher_plugins::json::Value::Value ( double  in_value)
explicit

Conversion constructor.

Parameters
in_valueThe literal value to set this JSON Value to.

◆ Value() [6/12]

rstudio::launcher_plugins::json::Value::Value ( float  in_value)
explicit

Conversion constructor.

Parameters
in_valueThe literal value to set this JSON Value to.

◆ Value() [7/12]

rstudio::launcher_plugins::json::Value::Value ( int  in_value)
explicit

Conversion constructor.

Parameters
in_valueThe literal value to set this JSON Value to.

◆ Value() [8/12]

rstudio::launcher_plugins::json::Value::Value ( int64_t  in_value)
explicit

Conversion constructor.

Parameters
in_valueThe literal value to set this JSON Value to.

◆ Value() [9/12]

rstudio::launcher_plugins::json::Value::Value ( const char *  in_value)
explicit

Conversion constructor.

Parameters
in_valueThe literal value to set this JSON Value to.

◆ Value() [10/12]

rstudio::launcher_plugins::json::Value::Value ( const std::string &  in_value)
explicit

Conversion constructor.

Parameters
in_valueThe literal value to set this JSON Value to.

◆ Value() [11/12]

rstudio::launcher_plugins::json::Value::Value ( unsigned int  in_value)
explicit

Conversion constructor.

Parameters
in_valueThe literal value to set this JSON Value to.

◆ Value() [12/12]

rstudio::launcher_plugins::json::Value::Value ( uint64_t  in_value)
explicit

Conversion constructor.

Parameters
in_valueThe literal value to set this JSON Value to.

Member Function Documentation

◆ clone()

Value rstudio::launcher_plugins::json::Value::clone ( ) const

Makes a copy of this JSON value.

Returns
A copy of this JSON value.

◆ coerce()

Error rstudio::launcher_plugins::json::Value::coerce ( const std::string &  in_schema,
std::vector< std::string > &  out_propViolations 
)

Attempts to coerce a JSON object to conform to the given schema by discarding non-conforming properties.

Parameters
in_schemaThe schema to validate this value against.
out_propViolationsThe names of the properties that did not conform to the schema.
Returns
Success if this JSON value matches the schema after coercion; Error otherwise.

◆ getArray()

Array rstudio::launcher_plugins::json::Value::getArray ( ) const

Gets the value as a JSON array. If the call to getType() does not return Type::ARRAY, this method is invalid.

Returns
The value as a JSON array.

◆ getBool()

bool rstudio::launcher_plugins::json::Value::getBool ( ) const

Gets the value as a bool. If the call to getType() does not return Type::BOOL, this method is invalid.

Returns
The value as a bool.

◆ getDouble()

double rstudio::launcher_plugins::json::Value::getDouble ( ) const

Gets the value as a double. If the call to getType() does not return Type::DOUBLE, this method is invalid.

Returns
The value as a double.

◆ getFloat()

float rstudio::launcher_plugins::json::Value::getFloat ( ) const

Gets the value as a float. If the call to getType() does not return Type::FLOAT, this method is invalid.

Returns
The value as a float.

◆ getInt()

int rstudio::launcher_plugins::json::Value::getInt ( ) const

Gets the value as an int. If the call to getType() does not return Type::INT, this method is invalid.

Returns
The value as an int.

◆ getInt64()

int64_t rstudio::launcher_plugins::json::Value::getInt64 ( ) const

Gets the value as an int64. If the call to getType() does not return Type::INT64, this method is invalid.

Returns
The value as an int64.

◆ getObject()

Object rstudio::launcher_plugins::json::Value::getObject ( ) const

Gets the value as a JSON object. IF the call to getType() does not return Type::OBJECT, this method is invalid.

Returns
The value as a JSON object.

◆ getString()

std::string rstudio::launcher_plugins::json::Value::getString ( ) const

Gets the value as a string. If the call to getType() does not return Type::STRING, this method is invalid.

Returns
The value as a string.

◆ getType()

Type rstudio::launcher_plugins::json::Value::getType ( ) const

Gets the type of this value.

Returns
The type of this value.

◆ getUInt()

unsigned int rstudio::launcher_plugins::json::Value::getUInt ( ) const

Gets the value as an unsigned int. If the call to getType() does not return Type::UINT, this method is invalid.

Returns
The value as an unsigned int.

◆ getUInt64()

uint64_t rstudio::launcher_plugins::json::Value::getUInt64 ( ) const

Gets the value as an uint64. If the call to getType() does not return Type::UINT64, this method is invalid.

Returns
The value as an uint64.

◆ getValue()

template<typename T >
T rstudio::launcher_plugins::json::Value::getValue ( ) const

Gets this JSON value as the specified type.

Before calling this method, the appropriate is<T> method should return true.

Template Parameters
TThe type to retrieve this value as.
Returns
This value as an object of type T.

◆ isArray()

bool rstudio::launcher_plugins::json::Value::isArray ( ) const

Checks whether the value is a JSON array or not.

Returns
True if the value is a JSON array; false otherwise.

◆ isBool()

bool rstudio::launcher_plugins::json::Value::isBool ( ) const

Checks whether the value is a boolean value or not.

Returns
True if the value is a boolean value; false otherwise.

◆ isDouble()

bool rstudio::launcher_plugins::json::Value::isDouble ( ) const

Checks whether the value is a double value or not.

Returns
True if the value is a double value; false otherwise.

◆ isFloat()

bool rstudio::launcher_plugins::json::Value::isFloat ( ) const

Checks whether the value is a float value or not.

Returns
True if the value is a float value; false otherwise.

◆ isInt()

bool rstudio::launcher_plugins::json::Value::isInt ( ) const

Checks whether the value is an int 32 value or not.

Returns
True if the value is an int 32 value; false otherwise.

◆ isInt64()

bool rstudio::launcher_plugins::json::Value::isInt64 ( ) const

Checks whether the value is an int 64 value or not.

Returns
True if the value is an int 64 value; false otherwise.

◆ isNull()

bool rstudio::launcher_plugins::json::Value::isNull ( ) const

Checks whether the value is null or not.

Returns
True if the value is null; false otherwise.

◆ isObject()

bool rstudio::launcher_plugins::json::Value::isObject ( ) const

Checks whether the value is a JSON object or not.

Returns
True if the value is a JSON object; false otherwise.

◆ isString()

bool rstudio::launcher_plugins::json::Value::isString ( ) const

Checks whether the value is a string value or not.

Returns
True if the value is a string value; false otherwise.

◆ isUInt()

bool rstudio::launcher_plugins::json::Value::isUInt ( ) const

Checks whether the value is an unsigned int 32 value or not.

Returns
True if the value is an unsigned int 32 value; false otherwise.

◆ isUInt64()

bool rstudio::launcher_plugins::json::Value::isUInt64 ( ) const

Checks whether the value is an unsigned int 64 value or not.

Returns
True if the value is an unsigned int 64 value; false otherwise.

◆ operator!=()

bool rstudio::launcher_plugins::json::Value::operator!= ( const Value in_other) const

Inequality operator.

Parameters
in_otherThe value to compare this value to.
Returns
True if the two values are not the same; false if they are the same.

◆ operator=() [1/11]

Value& rstudio::launcher_plugins::json::Value::operator= ( bool  in_value)

Assignment operator.

Parameters
in_valueThe literal value to set this JSON Value to.
Returns
A reference to this value.

◆ operator=() [2/11]

Value& rstudio::launcher_plugins::json::Value::operator= ( const char *  in_value)

Assignment operator.

Parameters
in_valueThe literal value to set this JSON Value to.
Returns
A reference to this value.

◆ operator=() [3/11]

Value& rstudio::launcher_plugins::json::Value::operator= ( const std::string &  in_value)

Assignment operator.

Parameters
in_valueThe literal value to set this JSON Value to.
Returns
A reference to this value.

◆ operator=() [4/11]

Value& rstudio::launcher_plugins::json::Value::operator= ( const Value in_other)

Assignment operator from Value.

Parameters
in_otherThe value to copy to this value.
Returns
A reference to this value.

◆ operator=() [5/11]

Value& rstudio::launcher_plugins::json::Value::operator= ( double  in_value)

Assignment operator.

Parameters
in_valueThe literal value to set this JSON Value to.
Returns
A reference to this value.

◆ operator=() [6/11]

Value& rstudio::launcher_plugins::json::Value::operator= ( float  in_value)

Assignment operator.

Parameters
in_valueThe literal value to set this JSON Value to.
Returns
A reference to this value.

◆ operator=() [7/11]

Value& rstudio::launcher_plugins::json::Value::operator= ( int  in_value)

Assignment operator.

Parameters
in_valueThe literal value to set this JSON Value to.
Returns
A reference to this value.

◆ operator=() [8/11]

Value& rstudio::launcher_plugins::json::Value::operator= ( int64_t  in_value)

Assignment operator.

Parameters
in_valueThe literal value to set this JSON Value to.
Returns
A reference to this value.

◆ operator=() [9/11]

Value& rstudio::launcher_plugins::json::Value::operator= ( uint64_t  in_value)

Assignment operator.

Parameters
in_valueThe literal value to set this JSON Value to.
Returns
A reference to this value.

◆ operator=() [10/11]

Value& rstudio::launcher_plugins::json::Value::operator= ( unsigned int  in_value)

Assignment operator.

Parameters
in_valueThe literal value to set this JSON Value to.
Returns
A reference to this value.

◆ operator=() [11/11]

Value& rstudio::launcher_plugins::json::Value::operator= ( Value &&  in_other)
noexcept

Move operator.

Parameters
in_otherThe value to move to this value.
Returns
A reference to this value.

◆ operator==()

bool rstudio::launcher_plugins::json::Value::operator== ( const Value in_other) const

Equality operator.

Parameters
in_otherThe value to compare this value to.
Returns
True if the two values are the same; false otherwise.

◆ parse() [1/2]

virtual Error rstudio::launcher_plugins::json::Value::parse ( const char *  in_jsonStr)
virtual

Parses the JSON string into this value.

Parameters
in_jsonStrThe JSON string to parse.
Returns
Success on successful parse; error otherwise (e.g. ParseError)

Reimplemented in rstudio::launcher_plugins::json::Array, and rstudio::launcher_plugins::json::Object.

◆ parse() [2/2]

virtual Error rstudio::launcher_plugins::json::Value::parse ( const std::string &  in_jsonStr)
virtual

Parses the JSON string into this value.

Parameters
in_jsonStrThe JSON string to parse.
Returns
Success on successful parse; error otherwise (e.g. ParseError)

Reimplemented in rstudio::launcher_plugins::json::Array, and rstudio::launcher_plugins::json::Object.

◆ parseAndValidate()

Error rstudio::launcher_plugins::json::Value::parseAndValidate ( const std::string &  in_jsonStr,
const std::string &  in_schema 
)

Parses the JSON string and validates it against the schema.

Parameters
in_jsonStrThe JSON string to parse.
in_schemaThe schema to validate the JSON value against.
Returns
Success if the string could be parsed and the parsed object matches the schema; Error otherwise.

◆ setValueAtPointerPath() [1/12]

Error rstudio::launcher_plugins::json::Value::setValueAtPointerPath ( const std::string &  in_pointerPath,
bool  in_value 
)

Sets a value within the current value based on the specified JSON Pointer path.

Parameters
in_pointerPathThe JSON Pointer path.
in_valueThe JSON value to set at the path. This value is copied before being set.
Returns
Success if the pointer is valid; Error otherwise.

◆ setValueAtPointerPath() [2/12]

Error rstudio::launcher_plugins::json::Value::setValueAtPointerPath ( const std::string &  in_pointerPath,
const Array in_value 
)

Sets a value within the current value based on the specified JSON Pointer path.

Parameters
in_pointerPathThe JSON Pointer path.
in_valueThe JSON value to set at the path. This value is copied before being set.
Returns
Success if the pointer is valid; Error otherwise.

◆ setValueAtPointerPath() [3/12]

Error rstudio::launcher_plugins::json::Value::setValueAtPointerPath ( const std::string &  in_pointerPath,
const char *  in_value 
)

Sets a value within the current value based on the specified JSON Pointer path.

Parameters
in_pointerPathThe JSON Pointer path.
in_valueThe JSON value to set at the path. This value is copied before being set.
Returns
Success if the pointer is valid; Error otherwise.

◆ setValueAtPointerPath() [4/12]

Error rstudio::launcher_plugins::json::Value::setValueAtPointerPath ( const std::string &  in_pointerPath,
const json::Value in_value 
)

Sets a value within the current value based on the specified JSON Pointer path.

Parameters
in_pointerPathThe JSON Pointer path.
in_valueThe JSON value to set at the path. This value is copied before being set.
Returns
Success if the pointer is valid; Error otherwise.

◆ setValueAtPointerPath() [5/12]

Error rstudio::launcher_plugins::json::Value::setValueAtPointerPath ( const std::string &  in_pointerPath,
const Object in_value 
)

Sets a value within the current value based on the specified JSON Pointer path.

Parameters
in_pointerPathThe JSON Pointer path.
in_valueThe JSON value to set at the path. This value is copied before being set.
Returns
Success if the pointer is valid; Error otherwise.

◆ setValueAtPointerPath() [6/12]

Error rstudio::launcher_plugins::json::Value::setValueAtPointerPath ( const std::string &  in_pointerPath,
const std::string &  in_value 
)

Sets a value within the current value based on the specified JSON Pointer path.

Parameters
in_pointerPathThe JSON Pointer path.
in_valueThe JSON value to set at the path. This value is copied before being set.
Returns
Success if the pointer is valid; Error otherwise.

◆ setValueAtPointerPath() [7/12]

Error rstudio::launcher_plugins::json::Value::setValueAtPointerPath ( const std::string &  in_pointerPath,
double  in_value 
)

Sets a value within the current value based on the specified JSON Pointer path.

Parameters
in_pointerPathThe JSON Pointer path.
in_valueThe JSON value to set at the path. This value is copied before being set.
Returns
Success if the pointer is valid; Error otherwise.

◆ setValueAtPointerPath() [8/12]

Error rstudio::launcher_plugins::json::Value::setValueAtPointerPath ( const std::string &  in_pointerPath,
float  in_value 
)

Sets a value within the current value based on the specified JSON Pointer path.

Parameters
in_pointerPathThe JSON Pointer path.
in_valueThe JSON value to set at the path. This value is copied before being set.
Returns
Success if the pointer is valid; Error otherwise.

◆ setValueAtPointerPath() [9/12]

Error rstudio::launcher_plugins::json::Value::setValueAtPointerPath ( const std::string &  in_pointerPath,
int  in_value 
)

Sets a value within the current value based on the specified JSON Pointer path.

Parameters
in_pointerPathThe JSON Pointer path.
in_valueThe JSON value to set at the path. This value is copied before being set.
Returns
Success if the pointer is valid; Error otherwise.

◆ setValueAtPointerPath() [10/12]

Error rstudio::launcher_plugins::json::Value::setValueAtPointerPath ( const std::string &  in_pointerPath,
int64_t  in_value 
)

Sets a value within the current value based on the specified JSON Pointer path.

Parameters
in_pointerPathThe JSON Pointer path.
in_valueThe JSON value to set at the path. This value is copied before being set.
Returns
Success if the pointer is valid; Error otherwise.

◆ setValueAtPointerPath() [11/12]

Error rstudio::launcher_plugins::json::Value::setValueAtPointerPath ( const std::string &  in_pointerPath,
uint64_t  in_value 
)

Sets a value within the current value based on the specified JSON Pointer path.

Parameters
in_pointerPathThe JSON Pointer path.
in_valueThe JSON value to set at the path. This value is copied before being set.
Returns
Success if the pointer is valid; Error otherwise.

◆ setValueAtPointerPath() [12/12]

Error rstudio::launcher_plugins::json::Value::setValueAtPointerPath ( const std::string &  in_pointerPath,
unsigned int  in_value 
)

Sets a value within the current value based on the specified JSON Pointer path.

Parameters
in_pointerPathThe JSON Pointer path.
in_valueThe JSON value to set at the path. This value is copied before being set.
Returns
Success if the pointer is valid; Error otherwise.

◆ validate()

Error rstudio::launcher_plugins::json::Value::validate ( const std::string &  in_schema) const

Validates this JSON value against a schema.

Parameters
in_schemaThe schema to validate this value against.
Returns
Success if this JSON value matches the schema; the Error that occurred during validation otherwise.

◆ write() [1/2]

std::string rstudio::launcher_plugins::json::Value::write ( ) const

Writes this value to a string.

Returns
The string representation of this value.

◆ write() [2/2]

void rstudio::launcher_plugins::json::Value::write ( std::ostream &  io_ostream) const

Writes this value to the specified output stream.

Parameters
io_ostreamThe output stream to which to write this value.

◆ writeFormatted() [1/2]

std::string rstudio::launcher_plugins::json::Value::writeFormatted ( ) const

Writes and formats this value to a string.

Returns
The formatted string representation of this value.

◆ writeFormatted() [2/2]

void rstudio::launcher_plugins::json::Value::writeFormatted ( std::ostream &  io_ostream) const

Writes and formats this value to the specified output stream.

Parameters
io_ostreamThe output stream to which to write this value.

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