Navigateur
2010-08-23 08:41:50 UTC
I have a little area of concern.
It would seem intuitive to me that you could define an IDL interface
using other IDL types as attributes, which would then expose their
methods to the client application (using ".") as well.
Is this possible? I haven't set up CORBA yet so I don't know. I'm just
in the planning stage.
For example (excuse my bad IDL):
interface Car{
attribute BrakePedal brakePedal;
//...
}
//then.. (place above)
interface BrakePedal{
void press();
//...
}
//...
Then in the client app, you could do: myCar.brakePedal.press();
CORBA would seem crappy if you couldn't do these kind of multi-level
objects. After all, real-world objects are multi-level, right? So can
someone put my mind at ease and confirm (or try) if this works?
It would seem intuitive to me that you could define an IDL interface
using other IDL types as attributes, which would then expose their
methods to the client application (using ".") as well.
Is this possible? I haven't set up CORBA yet so I don't know. I'm just
in the planning stage.
For example (excuse my bad IDL):
interface Car{
attribute BrakePedal brakePedal;
//...
}
//then.. (place above)
interface BrakePedal{
void press();
//...
}
//...
Then in the client app, you could do: myCar.brakePedal.press();
CORBA would seem crappy if you couldn't do these kind of multi-level
objects. After all, real-world objects are multi-level, right? So can
someone put my mind at ease and confirm (or try) if this works?