Instead of the trits-based selection, variable-size types could be used in the form of enums wrapped in some Selector decorator which would provide the Unconstrained case and the operators.
The following enums would be added:
enum HduType { Primary, Image, Bintable };
enum ImageType { Int, Float }; // Deprecated with Compress
enum CompressionType { None, Lossless, Lossy };
enum DataBlocks { None, Single, Multiple }; // Or a long?
enum HduStatus { Untouched, Read, Edited, Created };
They could be used standalone in subsequent versions, too, e.g. Hdu::type() -> HduType.
Instead of the trits-based selection, variable-size types could be used in the form of
enums wrapped in someSelectordecorator which would provide theUnconstrainedcase and the operators.The following
enums would be added:They could be used standalone in subsequent versions, too, e.g.
Hdu::type() -> HduType.