GetContextMap
Ruft die Zuordnung ab, die alle Kontexteinträge enthält.
Syntax
MAP_STRING**getContextMap(Message* message)
Where the MAP_STRING is defined by
typedef struct map_string{
char* key;
char* value;
}MAP_STRING;
MAP_STRING**getContextMap(Message* message)
Where the MAP_STRING is defined by
typedef struct map_string{
UChar* key;
UChar* value;
}MAP_STRING;
Parameter
- Message: Dies ist die Nachricht, auf die diese Funktion angewendet wird.
Ergebnisse
Gibt ein Array vom Typ MAP_STRING zurück, das alle Kontexteinträge enthält.
Beispiel
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++;
}
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++;
}