Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Re: communicati...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 9514 of 9823
Post > Topic >>

Re: communication between cl*****

by Tony Delroy <tony_in_da_uk@[EMAIL PROTECTED] > Apr 18, 2008 at 05:15 PM

On Apr 18, 2:42 am, carvalho.mig...@[EMAIL PROTECTED]
 wrote:
> [ ...I want to deliver events from separate cl***** into one manager
class... ]
> i want to avoid public variables and static variables/methods.
> basically i want a dynamic model to communicate between all the
> cl*****.

Why don't you store some manner of callback data (e.g. a functor) in
each of the individual cl***** that "directly" receive the events?
The code that creates the direct receivers can first create the
central management object, then provide the callback data to each
direct receivers....

Tony

-- 
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 4 Posts in Topic:
communication between classes
carvalho.miguel@[EMAIL PR  2008-04-17 11:42:38 
Re: communication between classes
Christopher <cpisz@[EM  2008-04-18 06:13:19 
Re: communication between classes
Tony Delroy <tony_in_d  2008-04-18 17:15:17 
Re: communication between classes
Lance Diduck <lancedid  2008-04-18 17:18:26 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 1:35:09 CDT 2008.