Exemplo n.º 1
0
                        EventProxy :: EventProxy (PropertyHandle &sender_ph, PropertyHandle &receiver_ph )
                     :   EventHandler(sender_ph)
{

  if ( receiver_ph.IsValid() )
    receiver = &receiver_ph;

}
PropertyHandle DLInterpreter :: GetPropertyHandle (char *prop_path, logical copy_opt )
{
  PropertyHandle                ph;
  PropertyHandle                prophdl;
  if ( prop_path )
    ph.CopyHandle(&current_node->GetPropertyHandle(prop_path));
  else
    ph.CopyHandle((PropertyHandle *)current_ds->GetCollection(AUTO));
  
  if ( copy_opt )  
    prophdl.CopyHandle(ph);
  else
    prophdl.CopyHandle(&ph);
    
  if ( !prophdl.IsValid() ) 
    Output("'%s' not found\n",prop_path);

  return(prophdl);
}