This class represents a command line interface to execute common functions of VISA devices.
More...
#include <CommandLineInterface.h>
This class represents a command line interface to execute common functions of VISA devices.
◆ CommandLineInterface() [1/2]
CommandLineInterface::CommandLineInterface |
( |
PIL::Logging * |
logger | ) |
|
|
explicit |
◆ CommandLineInterface() [2/2]
CommandLineInterface::CommandLineInterface |
( |
| ) |
|
|
explicit |
◆ ActiveDevices()
void CommandLineInterface::ActiveDevices |
( |
std::string & |
args | ) |
|
|
static |
◆ addCustomCommandLineOption()
void CommandLineInterface::addCustomCommandLineOption |
( |
const char * |
identifier, |
|
|
const char * |
description, |
|
|
void(*)(std::string &) |
func |
|
) |
| |
|
static |
◆ Connect()
void CommandLineInterface::Connect |
( |
std::string & |
args | ) |
|
|
static |
Connects to a device based on a certain IP address and adds it to the list of active devices.
- Parameters
-
args | only argument args[0] is chosen as IP addr. |
◆ Disconnect()
void CommandLineInterface::Disconnect |
( |
std::string & |
args | ) |
|
|
static |
◆ GetDeviceIdentifier()
void CommandLineInterface::GetDeviceIdentifier |
( |
std::string & |
args | ) |
|
|
static |
◆ GetSupportedDevices()
void CommandLineInterface::GetSupportedDevices |
( |
std::string & |
args | ) |
|
|
static |
◆ PrintHelp()
void CommandLineInterface::PrintHelp |
( |
std::string & |
args | ) |
|
|
static |
This method prints an overview of available commands on the command line interface.
- Parameters
-
args | Arguments are ignored. |
◆ Quit()
void CommandLineInterface::Quit |
( |
std::string & |
args | ) |
|
|
static |
◆ SelectDevice()
void CommandLineInterface::SelectDevice |
( |
std::string & |
args | ) |
|
|
static |
◆ SendCustomCommand()
void CommandLineInterface::SendCustomCommand |
( |
std::string & |
args | ) |
|
|
static |
◆ splitArguments()
std::vector< std::string > CommandLineInterface::splitArguments |
( |
std::string & |
args | ) |
|
|
static |
◆ Start()
bool CommandLineInterface::Start |
( |
| ) |
|
Start executing the command line interface. Input a raw SCPI command and execute. To see if a command is valid or not.
- Returns
- true if CLI was successfully exited, else return false
The documentation for this class was generated from the following files: