Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide
12-2
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.1(1)
Chapter 12 Helper Classes
Arg Class
with a wait timeout. Wait objects are created with the CreateWaitObject
Session Object method and destroyed with the DestroyWaitObject Session
Object method.
Session Object method and destroyed with the DestroyWaitObject Session
Object method.
•
Logger. The Logger class creates a Logger object and a LogManager object,
if one does not already exist. Any object that needs to perform logging must
instantiate the Logger class. The Logger class communicates with the
singleton LogManager object, which acts as the centralized logging facility.
The Logger class also defines tracing constants.
if one does not already exist. Any object that needs to perform logging must
instantiate the Logger class. The Logger class communicates with the
singleton LogManager object, which acts as the centralized logging facility.
The Logger class also defines tracing constants.
•
LogWrapper. The LogWrapper class provides a default Logging
mechanism. By default, the LogWrapper traces to the console. If you create
the LogWrapper with a filename, then it traces to that file.
mechanism. By default, the LogWrapper traces to the console. If you create
the LogWrapper with a filename, then it traces to that file.
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.