ANN: sigslot - C++ Portable, Thread-Safe, Type-Safe Signal/Slot Library 
Author Message
 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




Fri, 17 Sep 2004 06:48:17 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. ANN: C++ Signal/Slot library that can work within MFC classes

2. How thread-safe is the C++ library?

3. Using a non-thread-safe library with threads?

4. Comprehensive thread-safe multiplatform string library?

5. Is STL/STDC++ library thread safe?

6. C++ type-safe naming

7. Safe Copy and Safe Calloc

8. A portable and safe way to find offset into a struct

9. Are enums safe to use in portable code?

10. Thread functions are thread-safe?

11. how do i create thread safe worker thread

12. Ambiguous definition of Count on type safe collection (sample provided)

 

 
Powered by phpBB® Forum Software