[saga-rg] open_flag and open_dir_flags

Graeme Pound G.E.POUND at soton.ac.uk
Wed Mar 1 08:33:26 CST 2006


Hi,

The relationship between the enumerations open_flag and open_dir_flags 
in the various packages of the API is a little problematic.

Graeme


  -3.35 How should interfaces inheriting from ns_directory and ns_entry 
inherit/override the enumerations open_flag and open_dir_flags? The 
methods of ns_directory open_dir() and open() will require the 
enumerations defined in the name_space package (or sub-classes of these 
enumerations).

With Java enumerations it would be possible to extend the original 
enumerations by sub-classing, but it is not possible to not remove 
fields. Unfortunately saga.logical_file.open_flags removes fields from 
saga.name_space.open_flags.





More information about the saga-rg mailing list