GetContextMap

Gets the Map that contains all of the context entries.

Syntax

ASCII Version
MAP_STRING**getContextMap(Message* message) 
Where the MAP_STRING is defined by 
typedef struct map_string{ 
char* key; 
char* value; 
}MAP_STRING;
Unicode Version
MAP_STRING**getContextMap(Message* message) 
Where the MAP_STRING is defined by 
typedef struct map_string{ 
UChar* key; 
UChar* value; 
}MAP_STRING;

Parameters

  • Message - the message to which this function applies

Results

Returns the array of MAP_STRING that contains all of the context entries.

Example

ASCII Version
int i; 
char* name; 
char* value; 
MAP_STRING** mapping; 
mapping = getContextMap( message); 
i=0; 
while(mapping[i] != NULL) 
{ 
name= mapping[i]->key; 
value = mapping[i]->value; 
i++; 
}
Unicode Version
int i; 
UChar* name; 
UChar* value; 
MAP_STRING** mapping; 
mapping = getContextMap( message); 
i=0; 
while(mapping[i] != NULL) 
{ 
name= mapping[i]->key; 
value = mapping[i]->value; 
i++; 
}