
ANN: sigslot - C++ Portable, Thread-Safe, Type-Safe Signal/Slot Library
SIGSLOT
The sigslot library is a portable, type-safe, thread-safe
implementation of the signal/slot paradigm written entirely as a C++
template library. No preprocessor (a la Qt's 'moc' utility) is
required.
The library can coexist with other C++ libraries, notably the
Microsoft Foundation Classes (MFC), adding Qt-like functionality to
any suitably instrumented classes.
COMPILERS
VC++ 6.0, VC++ 7.0, Intel C++ 5.01, gcc 2.9x
The library should work fine with any reasonably standards compliant
C++ compiler that supports the STL and templates with optional
template parameters. Partial template specialisation is NOT required.
PLATFORMS
Win32, Posix Threads, ISO C++ (e.g. Win 95, 98, ME, 2000, XP, NT3.51,
NT4.0, Linux, OpenBSD, FreeBSD, etc.)
PROJECT WEB SITE
Documentation: http://www.*-*-*.com/
Downloads, etc: http://www.*-*-*.com/
LICENSE
Sigslot is entirely public domain, i.e. free for use for any purpose
by anyone. No strings attached.
EXAMPLE
The sigslot library allows code like the following to be written in
C++:
----
class Switch
{
public:
signal0<> Clicked;
};
class Light : public has_slots<>
{
public:
void ToggleState();
void TurnOn();
void TurnOff();
};
Switch sw1, sw2;
Light lp1, lp2;
sw1.Clicked.connect(&lp1, &Light::ToggleState);
sw2.Clicked.connect(&lp2, &Light::ToggleState);
sw1.Clicked();
----
AUTHOR