Re: Re: [sigc] How to do selective signal propagation ?
- From: Eric NICOLAS <nicolas00 wanadoo fr>
- To: Ulrich Eckhardt <eckhardt satorlaser com>, libsigc-list gnome org
- Subject: Re: Re: [sigc] How to do selective signal propagation ?
- Date: Tue, 9 Dec 2003 13:17:47 +0100 (CET)
> De : Ulrich Eckhardt <eckhardt satorlaser com>
>
> Eric NICOLAS wrote:
> > What I need is to filter signal propagation based on a signal's argument. I
> > have a signal <void, double value, int kind>. Clients connects to this
> > signal saying "I want to receive updates on value of kind 'mykind'".. Now a
> > value of kind 'akind' changes, only those clients connected who wants
> > values of 'akind' should be notified.
>
> Hmmm, I'm not a master of the libsigc code, but I think that one could solve
> this dilemma.
>
> template<int filter, class Value>
> void adapter( int id, Value val)
> {
> if(id==filter)
> real_function(id,value);
> }
Hum... I see.
Can you give a more complete example as to how I could use such an adapter ?
I don't see any mention of "adapters" in the SigC++ documentation.
Thansk.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]