Inheritance

There is a small collection of interfaces and classes that are defined by the SIDL runtime library. Some of these objects are implicitly inherited by objects and classes.

All classes that do not explictly extend another class implicitly extend sidl.BaseClass. All interfaces that do not explicitly extend another interface implicitly extend sidl.BaseInterface. Furthermore, sidl.BaseClass implements sidl.BaseInterface. This means that all classes can be cast to a sidl.BaseClass and all objects can be cast to sidl.BaseInterface.

All exceptions must explicitly implement the interfaces in sidl.BaseException. The easiest way to do this is to extend sidl.SIDLException to inherit and optionally override one or more of the base implementations. If a method in SIDL claims to throw an object that does not inherit from sidl.BaseException, this is an error and will be reported by Babel.





babel-0.9.0
users_guide Last Modified 2004-01-29

http://www.llnl.gov/CASC/components
components@llnl.gov