On diagResponse Sessions::*
{
char line[200];
char ecu[100];
long i;
long firstCall = 1;
if( this.IsPositiveResponse() == 1)
write( "Positive response");
else
write( "Negative response");
diagGetCurrentEcu( ecu, elcount(ecu));
DiagGetObjectPath( this, line, elcount( line));
write( "on diagResponse Sessions::*: %s from %s", line, ecu);
i = 0;
while( DiagGetParameterPath( this, i, line, elcount(line)) > 0)
{
char symbol[200];
this.GetParameter( line, symbol, elcount(symbol));
write( "%4d %-40s = %s", i++, line, symbol);
}
if( firstCall)
{
firstCall = 0;
line[0] = 0;
diagGetDescriptionInformation( "", line, elcount(line));
write( line);
line[0] = 0;
i = diagGetActiveVariant( line, elcount(line));
write( " diagGetActiveVariant (no target) returns %d and '%s'", i, line);
line[0] = 0;
i = diagGetConfiguredVariant( line, elcount(line));
write( " diagGetConfiguredVariant (no target) returns %d and '%s'", i, line);
}
output(this);
}