GetContextMap

Obtient la carte qui contient toutes les entrées de contexte.

Syntaxe

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

Paramètres

  • Message - le message auquel cette fonction s'applique

Résultats

Renvoie le tableau de MAP_STRING contenant toues les entrées de contexte.

Exemple

Version ASCII
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++; 
}
Version Unicode
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++; 
}