HORIBA C++ SDK
Library for HORIBA devices
|
Represents a response of the ICL. More...
#include <response.h>
Public Member Functions | |
Response (unsigned long long int id, std::string command, nlohmann::json::object_t results, std::vector< std::string > errors) | |
Builds a response of the ICL. | |
nlohmann::json | json_results () const |
JSON representation of the "results" field of the response. | |
std::vector< std::string > | errors () const |
Errors, if any, from the ICL. | |
Represents a response of the ICL.
horiba::communication::Response::Response | ( | unsigned long long int | id, |
std::string | command, | ||
nlohmann::json::object_t | results, | ||
std::vector< std::string > | errors ) |
Builds a response of the ICL.
id | The id of the sent command |
command | The sent command |
results | The results, if any, of the command |
errors | The errors, if any, of the command |
|
nodiscard |
Errors, if any, from the ICL.
|
nodiscard |
JSON representation of the "results" field of the response.