/doc/lfun/Query


LFUN

#include <properties.h>

mixed Query (string name [, int sc])

DESCRIPTION

Query the value of a property.

Arguments
name: the name of the property queried.
sc : if non-zero, the 'soft property' is queried.

Result
The value of the property, or 0 if it doesn't exist.

Using this function automatically takes care if the requested property is implemented 'hard' (by a function Query<name>()) or 'soft' (as a value in a mapping).

EXAMPLE

  #include <properties.h>
  obj->Query(P_VALUE);  /* queries the <obj>'s value */

IMPLEMENTED

/std/base

SEE ALSO

properties

| Home | Applied | Concepts | Efuns | Help | Intro | Lfuns | Lib | LPC | Prop | Obj | Sefuns | Std | W |

Nightfall@quest.tat.physik.uni-tuebingen.de
Automatically generated on Mon, Jul 22, 1996