You are here: SwitchKit TCAP Interface User’s Guide > 3 SKIM Parameter Classes > SKIM_Operation Class
Description
The SKIM_Operation object supports the public methods that are explained in the following sections. A user is expected to know what methods from SKIM_Operation public interface need to be invoked for a given operation type. If you invoke a set method for an invalid operation type, the set method will simply return without changing the underlying interface data.
The following lists the methods available with the SKIM_Operation class.
Class SKIM_Operation
{
public:
int SetType(SKIM_USHORT type);
SKIM_USHORT GetType();
int SetInvokeId(SKIM_OCTET invokeId);
SKIM_OCTET GetInvokeId();
int SetLinkedId(SKIM_OCTET id);
SKIM_OCTET GetLinkedId();
void SetClass(SKIM_USHORT cl);
SKIM_USHORT GetClass();
voidint SetInvokeTimeout(SKIM_UINT timeout);
voidint SetParameter(vector <byte> ¶m);
voidint GetParameter(vector <byte> ¶m);
bool IsLastOperation();
voidint SetOpCode(const SKIM_LONG code);
voidint GetOpCode(SKIM _LONG & code);
voidint SetOpCode(const bool isNational, const SKIM_OCTET family,
const SKIM_OCTET code);
voidint GetOpCode(bool& isNational, SKIM_OCTET& family,
SKIM_OCTET& code);
voidint SetErrorCode(SKIM_OCTET errorCode);
voidint GetErrorCode(SKIM_OCTET &errorCode);
voidint SetErrorCode(SKIM_BOOLEAN isNational, SKIM_OCTET errorCode);
voidint GetErrorCode(SKIM_BOOLEAN &isNational, SKIM_OCTET &errorCode);
voidint SetRejectCause(const SKIM_OCTET type, const SKIM_OCTET code);
voidint GetRejectCause(SKIM_OCTET& type, SKIM_OCTET& code);
};
You are expected to know what methods from the SKIM_Operation public interface need to be invoked for a given operation type. If you invoke a set method for an invalid operation type, set method will simply return without changing underlying interface data.
Refer to the following table for applicable methods for operation types.
Method |
Operation Types |
---|---|
SetType () |
All |
GetType () |
All |
SetInvokeId () |
All |
GetInvokeId () |
All |
SetLinkedId () |
SKIM_TC_INVOKE SKIM_TC_INVOKE_NLl |
HasLinkedId () |
SKIM_TC_INVOKE |
GetLinkedId () |
SKIM_TC_INVOKE |
SetInvokeTimeout () |
SKIM_TC_INVOKE |
Set Parameter () |
SKIM_TC_INVOKE, SKIM_TC_INVOKE_NL, SKIM_TC_RESULT_L, SKIM_TC_RESULT_NL, SKIM_TC_U_ERROR, SKIM_TC_ERROR, and SKIM_TC_REJECT |
Get Parameter () |
SKIM_TC_INVOKE, SKIM_TC_INVOKE_NL, SKIM_TC_RESULT_L, SKIM_TC_RESULT_NL, SKIM_TC_U_ERROR, SKIM_TC_ERROR SKIM_TC_REJECT |
IsLastOperation () |
All |
SetOpCode () |
SKIM_TC_INVOKE, SKIM_TC_INVOKE_NL, SKIM_TC_RESULT_L (ITU) SKIM_TC_RESULT_NL (ITU) |
GetOpCode () |
SKIM_TC_INVOKE, SKIM_TC_INVOKE_NL, SKIM_TC_RESULT_L (ITU) SKIM_TC_RESULT_NL (ITU) |
SetClass () |
SKIM_TC_INVOKE (ITU) |
GetClass () |
SKIM_TC_INVOKE (ITU) |
SetErrorCode () |
SKIM_TC_U_ERROR SKIM_TC_ERROR |
GetErrorCode () |
SKIM_TC_U_ERROR SKIM_TC_ERROR |
SetRejectCause () |
SKIM_TC_U_REJECT SKIM_TC_R_REJECT SKIM_TC_L_REJECT SKIM_TC_REJECT |
GetRejectCause () |
SKIM_TC_U_REJECT SKIM_TC_R_REJECT SKIM_TC_L_REJECT SKIM_TC_REJECT |