Cisco Cisco Computer Telephony Integration OS 8.5 Entwickleranleitung
12-19
Cisco ICM Software CTI OS Developer’s Guide Release 6.0(0)
Chapter 12 Helper Classes
Arguments Class
Parameters
arg_string
The pointer to the string containing the contents of the Arguments array
listing all of the key/value pairs in the format of “key1 = value1; key2 =
value2;...”.
listing all of the key/value pairs in the format of “key1 = value1; key2 =
value2;...”.
Return Values
COM: Default HRESULT return values. See
Others: A string containing the contents of the Arguments array listing all
key/value pairs
key/value pairs
GetElement Methods
The
GetElement method is similar to GetValue, except that it uses an index value
instead of a key. The index value is not related to the order in which items are
added or removed. The order of items in Arguments is never guaranteed. This
method is useful for sequentially iterating over all items in Arguments. The Index
is 1-based. The Index should never be less than one or greater than NumElements.
see also NumElements method. The GetElementKey returns the key of a given
index.
added or removed. The order of items in Arguments is never guaranteed. This
method is useful for sequentially iterating over all items in Arguments. The Index
is 1-based. The Index should never be less than one or greater than NumElements.
see also NumElements method. The GetElementKey returns the key of a given
index.
Syntax
C++:
Arg& GetElement( int index );
bool GetElement( int index, Arg ** value);
int GetElementInt( int index );
bool GetElementInt( int index, int * value);
unsigned int GetElementUInt( int index );
bool GetElementUInt( int index, unsigned int * value);
unsigned short GetElementUShort( int index );
bool GetElementUShort( int index, unsigned short * value );
short GetElementShort( int index );
bool GetElementShort( int index, short * value);
bool GetElementBool( int index );
bool GetElementBool( int index, bool * value);
std::string GetElementString( int index );