![]() |
libdisplaydevice master
C++ library to modify display devices.
|
Definitions for JSON conversion functions. More...
#include "display_device/json.h"#include "display_device/detail/json_serializer.h"#include "display_device/detail/json_converter.h"Functions | |
| bool | display_device::fromJson (const std::string &string, bool &obj, std::string *error_message=nullptr) |
| Deserialize a boolean from JSON. | |
| bool | display_device::fromJson (const std::string &string, EdidData &obj, std::string *error_message=nullptr) |
| Deserialize EDID data from JSON. | |
| bool | display_device::fromJson (const std::string &string, EnumeratedDevice &obj, std::string *error_message=nullptr) |
| Deserialize an enumerated device from JSON. | |
| bool | display_device::fromJson (const std::string &string, EnumeratedDeviceList &obj, std::string *error_message=nullptr) |
| Deserialize an enumerated device list from JSON. | |
| bool | display_device::fromJson (const std::string &string, SingleDisplayConfiguration &obj, std::string *error_message=nullptr) |
| Deserialize a single display configuration from JSON. | |
| bool | display_device::fromJson (const std::string &string, std::string &obj, std::string *error_message=nullptr) |
| Deserialize a string from JSON. | |
| bool | display_device::fromJson (const std::string &string, StringSet &obj, std::string *error_message=nullptr) |
| Deserialize a string set from JSON. | |
| std::string | display_device::toJson (const bool &obj, const std::optional< unsigned int > &indent=2u, bool *success=nullptr) |
| Serialize a boolean to JSON. | |
| std::string | display_device::toJson (const EdidData &obj, const std::optional< unsigned int > &indent=2u, bool *success=nullptr) |
| Serialize EDID data to JSON. | |
| std::string | display_device::toJson (const EnumeratedDevice &obj, const std::optional< unsigned int > &indent=2u, bool *success=nullptr) |
| Serialize an enumerated device to JSON. | |
| std::string | display_device::toJson (const EnumeratedDeviceList &obj, const std::optional< unsigned int > &indent=2u, bool *success=nullptr) |
| Serialize an enumerated device list to JSON. | |
| std::string | display_device::toJson (const SingleDisplayConfiguration &obj, const std::optional< unsigned int > &indent=2u, bool *success=nullptr) |
| Serialize a single display configuration to JSON. | |
| std::string | display_device::toJson (const std::string &obj, const std::optional< unsigned int > &indent=2u, bool *success=nullptr) |
| Serialize a string to JSON. | |
| std::string | display_device::toJson (const StringSet &obj, const std::optional< unsigned int > &indent=2u, bool *success=nullptr) |
| Serialize a string set to JSON. | |
Definitions for JSON conversion functions.
|
nodiscard |
Deserialize a boolean from JSON.
| string | JSON string to parse. |
| obj | Output object updated on success. |
| error_message | Optional output error message. |
|
nodiscard |
Deserialize EDID data from JSON.
| string | JSON string to parse. |
| obj | Output object updated on success. |
| error_message | Optional output error message. |
|
nodiscard |
Deserialize an enumerated device from JSON.
| string | JSON string to parse. |
| obj | Output object updated on success. |
| error_message | Optional output error message. |
|
nodiscard |
Deserialize an enumerated device list from JSON.
| string | JSON string to parse. |
| obj | Output object updated on success. |
| error_message | Optional output error message. |
|
nodiscard |
Deserialize a single display configuration from JSON.
| string | JSON string to parse. |
| obj | Output object updated on success. |
| error_message | Optional output error message. |
|
nodiscard |
Deserialize a string from JSON.
| string | JSON string to parse. |
| obj | Output object updated on success. |
| error_message | Optional output error message. |
|
nodiscard |
Deserialize a string set from JSON.
| string | JSON string to parse. |
| obj | Output object updated on success. |
| error_message | Optional output error message. |
|
nodiscard |
Serialize a boolean to JSON.
| obj | Object to serialize. |
| indent | Optional indentation width. Use JSON_COMPACT for compact output. |
| success | Optional output flag set to true on success, false otherwise. |
|
nodiscard |
Serialize EDID data to JSON.
| obj | Object to serialize. |
| indent | Optional indentation width. Use JSON_COMPACT for compact output. |
| success | Optional output flag set to true on success, false otherwise. |
|
nodiscard |
Serialize an enumerated device to JSON.
| obj | Object to serialize. |
| indent | Optional indentation width. Use JSON_COMPACT for compact output. |
| success | Optional output flag set to true on success, false otherwise. |
|
nodiscard |
Serialize an enumerated device list to JSON.
| obj | Object to serialize. |
| indent | Optional indentation width. Use JSON_COMPACT for compact output. |
| success | Optional output flag set to true on success, false otherwise. |
|
nodiscard |
Serialize a single display configuration to JSON.
| obj | Object to serialize. |
| indent | Optional indentation width. Use JSON_COMPACT for compact output. |
| success | Optional output flag set to true on success, false otherwise. |
|
nodiscard |
Serialize a string to JSON.
| obj | Object to serialize. |
| indent | Optional indentation width. Use JSON_COMPACT for compact output. |
| success | Optional output flag set to true on success, false otherwise. |
|
nodiscard |
Serialize a string set to JSON.
| obj | Object to serialize. |
| indent | Optional indentation width. Use JSON_COMPACT for compact output. |
| success | Optional output flag set to true on success, false otherwise. |