ifw-ccf 5.0.2
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ifw::ccf::common::DcsClient Class Reference

Used to implement CCF Control client applications. More...

#include <dcsClient.hpp>

Inheritance diagram for ifw::ccf::common::DcsClient:
ifw::ccf::Base ifw::ccf::common::test::DcsClientTest

Public Member Functions

 DcsClient ()
 
 DcsClient (const std::string &service_uri)
 Instantiate the DCS Client, providing the reference to the associated CCF Control instance.
 
 ~DcsClient ()
 
std::string GenHelp (const std::string &application)
 Generate the help page as a string buffer.
 
std::string GetInterfaceForRequest (const std::string &request)
 Return the interface, in which the given request is defined.
 
std::string SendReq (const std::string &request, const ifw::core::utils::param::ParameterSet &parameters)
 Send the request to the associated CCF Control instance.
 
virtual std::string SendReqUser (const std::string &request, const ifw::core::utils::param::ParameterSet &parameters)
 Method to actually send the request and receive the response.
 
std::string SendReq (const std::string &request, const std::string &parameters)
 Send parameters provided in serialised format in a buffer or in a file to which there is referenced.
 
std::string ExecuteShellCmd (int argc, char **argv)
 Parse the command line options given and send the request/receive the response.
 
- Public Member Functions inherited from ifw::ccf::Base
 Base ()
 
 ~Base ()
 
const std::string & GetClassName () const
 Return the allocated name of the class.
 

Static Public Member Functions

static std::string RecStatusToString (const std::shared_ptr< recif::RecStatus > &rec_status)
 Convert Recording Status number to string representaiton.
 
static std::string RecWaitStatusToString (const std::shared_ptr< recif::RecWaitStatus > &rec_wait_status)
 Convert Recording Status string to number representaiton.
 
- Static Public Member Functions inherited from ifw::ccf::Base
static ifw::ccf::mptk::ManagerMptk ()
 Return reference to internal MPTK instance (singleton).
 

Public Attributes

const std::map< std::string, std::vector< std::string > > itf_to_req_map
 

Additional Inherited Members

- Protected Member Functions inherited from ifw::ccf::Base
void SetClassName (const std::string &class_name)
 Set the name of the class in question.
 

Detailed Description

Used to implement CCF Control client applications.

Constructor & Destructor Documentation

◆ DcsClient() [1/2]

ifw::ccf::common::DcsClient::DcsClient ( )

◆ DcsClient() [2/2]

ifw::ccf::common::DcsClient::DcsClient ( const std::string & service_uri)

Instantiate the DCS Client, providing the reference to the associated CCF Control instance.

◆ ~DcsClient()

ifw::ccf::common::DcsClient::~DcsClient ( )

Member Function Documentation

◆ ExecuteShellCmd()

std::string ifw::ccf::common::DcsClient::ExecuteShellCmd ( int argc,
char ** argv )

Parse the command line options given and send the request/receive the response.

◆ GenHelp()

std::string ifw::ccf::common::DcsClient::GenHelp ( const std::string & application)

Generate the help page as a string buffer.

◆ GetInterfaceForRequest()

std::string ifw::ccf::common::DcsClient::GetInterfaceForRequest ( const std::string & request)

Return the interface, in which the given request is defined.

◆ RecStatusToString()

std::string ifw::ccf::common::DcsClient::RecStatusToString ( const std::shared_ptr< recif::RecStatus > & rec_status)
static

Convert Recording Status number to string representaiton.

◆ RecWaitStatusToString()

std::string ifw::ccf::common::DcsClient::RecWaitStatusToString ( const std::shared_ptr< recif::RecWaitStatus > & rec_wait_status)
static

Convert Recording Status string to number representaiton.

◆ SendReq() [1/2]

std::string ifw::ccf::common::DcsClient::SendReq ( const std::string & request,
const ifw::core::utils::param::ParameterSet & parameters )

Send the request to the associated CCF Control instance.

◆ SendReq() [2/2]

std::string ifw::ccf::common::DcsClient::SendReq ( const std::string & request,
const std::string & parameters )

Send parameters provided in serialised format in a buffer or in a file to which there is referenced.

◆ SendReqUser()

std::string ifw::ccf::common::DcsClient::SendReqUser ( const std::string & request,
const ifw::core::utils::param::ParameterSet & parameters )
virtual

Method to actually send the request and receive the response.

Reimplemented in ifw::ccf::common::test::DcsClientTest.

Member Data Documentation

◆ itf_to_req_map

const std::map<std::string, std::vector<std::string> > ifw::ccf::common::DcsClient::itf_to_req_map
Initial value:
= {
{"StdCmds", {"Disable", "Enable", "Exit", "GetState", "GetStatus", "GetVersion",
"Init", "Reset", "SetLogLevel", "Stop"}},
{"DcsCmds", {"Abort", "Execute", "GetConfig", "GetDiagnostics", "GetDpData", "GetSetup",
"Ping", "ReadPars", "Recover", "Scan", "SetConfig", "Setup", "Start", "WritePars"}},
{"RecCmds", {"RecAbort", "RecContinue", "RecPause", "RecStart", "RecStatus", "RecStop", "RecWait"}}
}

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