33 static void Connect(std::string &args);
36 static void Quit(std::string &args);
48 static void CtrlCHandler(
int signal);
52 static std::vector<Device*> m_DeviceList;
54 static std::vector<std::string> m_DeviceNameList;
56 static std::vector<std::string> m_DeviceIPList;
58 static std::vector<DeviceDescription> m_DeviceDescriptions;
61 static int m_currentDevice;
63 static volatile bool m_ExitCLI;
65 static PIL::Logging *m_Logger;
67 static std::map<CLI_Commands, CLICommandStruct> m_DescriptionMap;
69 static std::map<std::string, std::string> m_SupportedDevices;
CLI_Commands
Definition: CommandLineInterfaceDefines.h:27
This class represents a command line interface to execute common functions of VISA devices.
Definition: CommandLineInterface.h:25
static void PrintHelp(std::string &args)
This method prints an overview of available commands on the command line interface.
Definition: CommandLineInterface.cpp:93
static std::vector< std::string > splitArguments(std::string &args)
Definition: CommandLineInterface.cpp:177
static void SendCustomCommand(std::string &args)
Definition: CommandLineInterface.cpp:223
static void GetDeviceIdentifier(std::string &args)
Definition: CommandLineInterface.cpp:299
static void GetSupportedDevices(std::string &args)
Definition: CommandLineInterface.cpp:254
bool Start()
Start executing the command line interface. Input a raw SCPI command and execute. To see if a command...
Definition: CommandLineInterface.cpp:56
static void ActiveDevices(std::string &args)
Definition: CommandLineInterface.cpp:271
static void addCustomCommandLineOption(const char *identifier, const char *description, void(*func)(std::string &))
Definition: CommandLineInterface.cpp:158
CommandLineInterface()
Definition: CommandLineInterface.cpp:47
static void Connect(std::string &args)
Connects to a device based on a certain IP address and adds it to the list of active devices.
Definition: CommandLineInterface.cpp:109
static void Quit(std::string &args)
Definition: CommandLineInterface.cpp:264
static void SelectDevice(std::string &args)
Definition: CommandLineInterface.cpp:280
static void Disconnect(std::string &args)
Definition: CommandLineInterface.cpp:186
Basic device class This class contains all basic method of all devices, like Connect,...
Definition: Device.h:30
This class contains a implementation of a command line interface. It supports various functions like ...
Definition: CommandLineInterface.h:16