Skip to main content

Application Development Kit (Version 4.8)


SdiBase Class Reference

Last updated: 05-Mar-2025

#include <sdi_if.h>

Inheritance diagram for SdiBase:

Data Structures

struct   PluginResult

Public Member Functions

  SdiBase ()
enum SDI_SW12  getSdiSw12 ()
int  getAdditionalResultValue ()
  Access Additional Result Value if returned in SDI response. More...
SDICLIENT_ERROR  getClientError ()
  Access client side error codes. More...
enum SDI_SW12  receiveSW12 ()
  Receive SDI server response with no data. More...
void  clear ()
  clear result data obtained from SDI communication More...
void  importResults (const SdiBase &intermediate)
  set result data obtained from intermediate SDI communication More...

Protected Member Functions

void  setSdiSw12 (enum SDI_SW12 s)
void  setClientError (int libsdiprotocol_result)

Protected Attributes

unsigned short  sw12
int  additionalResultValue
SDICLIENT_ERROR  clientErr


Detailed Description

common base holding SDI messages, the result Status Word and the Additional result value if applicable


Data Structure Documentation

◆ libsdi::SdiBase::PluginResult

struct libsdi::SdiBase::PluginResult
Data Fields
int32_t pluginId

return value of a plugin's moduleID function also used as INS byte of SDI 26-xx command to invoke a plugin, 0 if not available

int32_t responseCode

plugin's processTrigger function return value, SDI_SW12_NONE if not available

vector< unsigned char > responseData plugin response data

Constructor & Destructor Documentation

◆ SdiBase()

SdiBase ( )
inline

Member Function Documentation

◆ clear()

void clear ( )
inline

clear result data obtained from SDI communication

◆ getAdditionalResultValue()

int getAdditionalResultValue ( )
inline

Access Additional Result Value if returned in SDI response.

Returns
additionalResultValue error code of the invoked component

◆ getClientError()

SDICLIENT_ERROR getClientError ( )
inline

Access client side error codes.

Returns
clientErr error code of this component, valid when SDI command was not executed

◆ getSdiSw12()

enum SDI_SW12 getSdiSw12 ( )

◆ importResults()

void importResults ( const SdiBase intermediate )
inline

set result data obtained from intermediate SDI communication

◆ receiveSW12()

enum SDI_SW12 receiveSW12 ( )

Receive SDI server response with no data.

To be called when data available callback was invoked and the command was

  • sendWaitCardRemoval()
  • startPinInput()
  • ...
Returns
return SW12

◆ setClientError()

void setClientError ( int  libsdiprotocol_result )
protected

Setter for client error originating from libsdiprotocol function. Any negative value is an error code and goes to attribute clientErr. Any positive value will reset attribute clientErr.

Parameters
[in] libsdiprotocol_result return value from libsdiprotocol function

◆ setSdiSw12()

void setSdiSw12 ( enum SDI_SW12  s )
inlineprotected

Field Documentation

◆ additionalResultValue

int additionalResultValue
protected

◆ clientErr

SDICLIENT_ERROR clientErr
protected

◆ sw12

unsigned short sw12
protected

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

Need help?

Do you have a question? If you didn’t find the answer you are looking for in our documentation, you can contact our Support teams for more information. If you have a technical issue or question, please contact us. We are happy to help.

Not yet a Verifone customer?

We’ll help you choose the right payment solution for your business, wherever you want to sell, in-person or online. Our team of experts will happily discuss your needs.

Verifone logo