Hi,
If I understand your question correctly, you have a class "CC" which aggregates three classes "A", "B" and "C" by keeping the reference to these object by storing the their references in the "CC"-class as attributes.
Now, as you wrote in your question, you do not modify anything in the attributes of the "CC"-class. The only thing you do is reading the value of the reference (actually a I32) to the "A"-class. The right thing to do is using the "Reading"-template just as you thought.
The reference that is store in the "CC"-class attribute is only a "pointer" to the "A" object and it do not change as long as the "A" object lives (until you execute the "Destroy" method for the "A" object).
Best regards,
Mattias Ericsson
Endevo Sweden
Member of th
e GOOP developer team
Have you seen the new GOOP Wizard 2.0 at www.endevo.se?