[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] IMemory and memory spaces
|
At 05:35 PM 5/10/2010, Pawel Piech wrote:
I've been prototyping the idea and it seems doable. Basically, I
have an IMemorySpaceDMContext that has as a parent an
IMemoryDMContext. This new interface simply has a method that
returns the memory space identifier. Down at the MI layer, the
command can use the new context interface to get the memory space
to use in the MI command.
Couldn't you have IMemorySpaceDMContext extend
IMemoryDMContext? I'm not sure whether parent-child relationship is
needed between memory contexts.
IMemorySpaceDMContext does extend IMemoryDMContext. But, in practice,
IMemoryDMContext is really just an MI control context under the
covers. By using a runtime parent-child relationship, I can simply
add the memory space characteristic to the context object without
touching the control context implementation. It may make more sense
when you see the patch.
John