HLCC Documentation 2.2.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
hlcc::telif::SeqServerFacade Class Reference

#include <seqServerFacade.hpp>

Public Member Functions

 SeqServerFacade (std::string ip, std::string port, std::string script)
 
virtual ~SeqServerFacade ()
 
bool IsConnected ()
 
void SetObVariable (std::string var_name, std::string var_value)
 
void SkipUserActions ()
 
void SkipDefaultActions ()
 
void RunScript ()
 
void RunScriptInteractive ()
 
 SeqServerFacade (const SeqServerFacade &)=delete
 
SeqServerFacadeoperator= (const SeqServerFacade &)=delete
 Disable copy constructor.
 

Static Public Member Functions

static bool RunSystemCommand (const std::string &cmd, const std::vector< std::string > &args, std::string &cmd_output)
 
static std::string GetHostIp ()
 

Constructor & Destructor Documentation

◆ 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]ipstring, containing sequence server IP address
[in]portstring, containing sequence server port
[in]scriptstring, full path to engineering script to be loaded and executed

◆ ~SeqServerFacade()

hlcc::telif::SeqServerFacade::~SeqServerFacade ( )
virtual

Destructor Closes the socket connection

◆ SeqServerFacade() [2/2]

hlcc::telif::SeqServerFacade::SeqServerFacade ( const SeqServerFacade & )
delete

Member Function Documentation

◆ 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=()

SeqServerFacade & hlcc::telif::SeqServerFacade::operator= ( const SeqServerFacade & )
delete

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]cmdstring with command to use.
[in]argsstring vector, all the arguments to be used with the command
[out]cmd_outputstring 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_namestring, name of the ob variable to be set.
[in]var_valuestring, 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: