#include <seqServerFacade.hpp>
|
| static bool | RunSystemCommand (const std::string &cmd, const std::vector< std::string > &args, std::string &cmd_output) |
| |
| static std::string | GetHostIp () |
| |
◆ SeqServerFacade() [1/2]
| hlcc::telif::SeqServerFacade::SeqServerFacade |
( |
std::string | ip, |
|
|
std::string | port, |
|
|
std::string | script ) |
Default Constructor Socket connection is created and engineering script is loaded in the server.
- Parameters
-
| [in] | ip | string, containing sequence server IP address |
| [in] | port | string, containing sequence server port |
| [in] | script | string, full path to engineering script to be loaded and executed |
◆ ~SeqServerFacade()
| hlcc::telif::SeqServerFacade::~SeqServerFacade |
( |
| ) |
|
|
virtual |
Destructor Closes the socket connection
◆ SeqServerFacade() [2/2]
◆ GetHostIp()
| std::string hlcc::telif::SeqServerFacade::GetHostIp |
( |
| ) |
|
|
static |
Get the Ip address of current machine
- Returns
- string, with ip address for given interface name. If any error happens return empty string.
◆ IsConnected()
| bool hlcc::telif::SeqServerFacade::IsConnected |
( |
| ) |
|
Queries if the connection to sequencer server was done.
- Returns
- bool, true if socket to Sequence Server is connected
◆ operator=()
Disable copy constructor.
◆ RunScript()
| void hlcc::telif::SeqServerFacade::RunScript |
( |
| ) |
|
Builds and sends to server command that will start the script execution
◆ RunScriptInteractive()
| void hlcc::telif::SeqServerFacade::RunScriptInteractive |
( |
| ) |
|
Builds and sends to server command that will start the script execution in interactive mode, i.e. assuming a sequencer gui is attached to the sequencer server.
◆ RunSystemCommand()
| bool hlcc::telif::SeqServerFacade::RunSystemCommand |
( |
const std::string & | cmd, |
|
|
const std::vector< std::string > & | args, |
|
|
std::string & | cmd_output ) |
|
static |
Method used to run system commands in terminal
- Parameters
-
| [in] | cmd | string with command to use. |
| [in] | args | string vector, all the arguments to be used with the command |
| [out] | cmd_output | string with the output of the command in case of success |
- Returns
- bool, true if command succeeded
◆ SetObVariable()
| void hlcc::telif::SeqServerFacade::SetObVariable |
( |
std::string | var_name, |
|
|
std::string | var_value ) |
Builds the command to Set the OB variable and sends it to sequencer server.
- Parameters
-
| [in] | var_name | string, name of the ob variable to be set. |
| [in] | var_value | string, correspondent value for the current variable to be set |
◆ SkipDefaultActions()
| void hlcc::telif::SeqServerFacade::SkipDefaultActions |
( |
| ) |
|
Builds command to flip skip all the steps identified as default action and sends commands to each step that must be skipped.
◆ SkipUserActions()
| void hlcc::telif::SeqServerFacade::SkipUserActions |
( |
| ) |
|
Builds command to flip skip all the steps identified as user action (input) and sends commands to each step that must be skipped.
The documentation for this class was generated from the following files: