You are here: SwitchKit TCAP Interface User’s Guide > 6 SKTAL Parameter Classes > Class TCAP_Result : public TCAP_Component
Class TCAP_Result : public TCAP_Component
Purpose
The purpose of the TCAP_Result component is to define the basic interface to remote operation results. This class is used to reply to successful invoke operations.
The TCAP_Result component includes the following methods:
// Operation
//If defined(CCITT)
void SetOperation(const SKTAL_LONG code);
void GetOperation(SKTAL_LONG& code) const;
// parameter
void SetParameter(const SKTAL_OCTET* buf, const int len);
void GetParameter(SKTAL_OCTET* buf, int& len) const;
void SetParameter(const SKTAL_ByteArray& buf);
void GetParameter(SKTAL_ByteArray& buf) const;
Description
This method sets the operation field of a result component. The SetOperation method is relevant only to ITU TCAP.
Syntax
void Set Operation(const SKTAL_LONG code);
Input Parameters
code: The operation code.
Input/Output Parameters and Output Parameters
None
Return Value
None
Description
This method gets the operation field of an invoke component. The GetOperation method is relevant only to ITU TCAP.
Syntax
void GetOperation(SKTAL_LONG& code) const;
Input Parameters and Input/Output Parameters
None
Output Parameters
code - The operation code
Return Value
None
Description
Copies a user-defined parameter into the invoke component.
Syntax
See class TCAP_Invoke
void SetParameter(const SKTAL_OCTET* buf, const int len);
void SetParameter(const SKTAL_ByteArray& buf);
Input Parameters
buf - A buffer containing the parameter to copy into this component
len - The length of the parameter in the buffer.
Input/Output Parameters & Output Parameters
None
Return Value
None
Description
Copies a user-defined parameter from the invoke component to a user supplied buffer.
Syntax
void GetParameter(SKTAL_OCTET* buf, int& len) const;
void GetParameter(SKTAL_ByteArray& buf) const;
Input Parameters
buf: a buffer containing the parameter to copy into this component
Input/Output Parameters
None
Output Parameters
len - The length of the parameter in the buffer.
Return Value
None