HORIBA C++ SDK
Library for HORIBA devices
Loading...
Searching...
No Matches
horiba::communication::Command Class Reference

Represents a command sent to the ICL. More...

#include <command.h>

Public Member Functions

 Command (std::string command, nlohmann::json parameters={})
 Builds a command based on the command string and json parameters.
 
nlohmann::json json () const
 JSON representation of the command.
 

Detailed Description

Represents a command sent to the ICL.

Constructor & Destructor Documentation

◆ Command()

horiba::communication::Command::Command ( std::string command,
nlohmann::json parameters = {} )
explicit

Builds a command based on the command string and json parameters.

Parameters
commandThe ICL command
parametersThe parameters necessary for the command

Member Function Documentation

◆ json()

nlohmann::json horiba::communication::Command::json ( ) const
nodiscard

JSON representation of the command.

Returns
JSON construct of the command

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