Cisco Cisco Computer Telephony Integration Option 9.0 开发者指南
12-2
Cisco ICM Software CTI OS Developer’s Guide Release 6.0(0)
Chapter 12 Helper Classes
Arg Class
•
CWaitObject. CWaitObject is a CIL object that derives from CtiOsObject.
It is a utility class (C++ only) that enables a thread to wait for one or more
CTI events. The user can provide a list of events along with a wait timeout.
Wait objects are created with the CreateWaitObject Session Object method
and destroyed with the DestroyWaitObject Session Object method.
It is a utility class (C++ only) that enables a thread to wait for one or more
CTI events. The user can provide a list of events along with a wait timeout.
Wait objects are created with the CreateWaitObject Session Object method
and destroyed with the DestroyWaitObject Session Object method.
Arg Class
The Arg is a generic class used in parameters or return values in CIL methods.
Information sent by CTI OS server to the CIL in an event is packed in an
Arguments object where each element of the array is an object of type Arg. An
Arg object’s absolute data type is determined by the type of data it stores. The
basic types an object can store are identified by the enumerated constants in
Information sent by CTI OS server to the CIL in an event is packed in an
Arguments object where each element of the array is an object of type Arg. An
Arg object’s absolute data type is determined by the type of data it stores. The
basic types an object can store are identified by the enumerated constants in
.
Arg class methods will do conversion between types whenever possible. For
example, you can do a SetValue(25) and then do a GetValueString() which will return
the string “25”. You can also do a SetValue(“25”) and then do a GetValueIntObj
which will return an Integer object containing the numeric value 25. However, if you
call SetValue “abc” and try to retrieve it as an int, it will fail.
example, you can do a SetValue(25) and then do a GetValueString() which will return
the string “25”. You can also do a SetValue(“25”) and then do a GetValueIntObj
which will return an Integer object containing the numeric value 25. However, if you
call SetValue “abc” and try to retrieve it as an int, it will fail.
lists the available Arg class methods.
Table 12-1 Arg Class Methods
Method
Description
AddRef
Increments the reference count for the data item.
Clone
Creates an exact copy of the Arg object.
CreateInstance
Creates an Arg object.
DumpArg
Builds a string containing the value stored in the Arg.
GetType
Returns the type of the data stored in the argument (one
of the values in
of the values in
).