S
Snyke
My problem is that I have a Class (a socket-class to be precise) that
generates data (eg. it fetches a HTML document over an HTTP
connection).
This data is to be elaborated later by another class.
How do I communicate the data from one object to another?
What is a better style:
1) Add a member variable to the socket which points to the data
container in the elaborator.
2) Call the elaborator (create and execute) from within the socket
class.
3) Make an external (in the function that calls the socket) data
container which is shared with both objects.
4) Anything you may think of ...
generates data (eg. it fetches a HTML document over an HTTP
connection).
This data is to be elaborated later by another class.
How do I communicate the data from one object to another?
What is a better style:
1) Add a member variable to the socket which points to the data
container in the elaborator.
2) Call the elaborator (create and execute) from within the socket
class.
3) Make an external (in the function that calls the socket) data
container which is shared with both objects.
4) Anything you may think of ...