SigC.3pm

Langue: en

Version: 2003-05-08 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

SigC - Perl extension which wraps the libsigc++ signal library

SYNOPSIS

   use SigC;
 
   $foo = sub {return shift;};
 
   $signal = new SigC::Signal();
   $connection = $signal->connect($foo);
 
   $signal->emit(1, 2); # calls $foo, returns a list containing 1
 
   disconnect $connection;
 
   $signal->emit(3, 4, 5);  # doesn't call $foo, returns an empty list
 
 

DESCRIPTION

While this module can be used alone to provide signals, its primary use is to make it easier to write modules around C++ code that uses libsigc++. The signals provided by these other modules may have restrictions on the kinds of values they may be called with or return.

EXPORT

None by default.

AUTHOR

Ron Steinke, <rsteinke@w-link.net>

SEE ALSO

perl. Copyright 2002, Ron Steinke. All Rights Reserved.

This program is free software. You may copy or redistribute it under the same terms as Perl itself.