|
casacore
|
#include <MaskSpecifier.h>
Public Member Functions | |
| MaskSpecifier (Bool useDefaultMask=True) | |
| Default constructor. | |
| MaskSpecifier (const Char *maskName) | |
| Construct from a string. | |
| MaskSpecifier (const String &maskName) | |
| Bool | useDefault () const |
| Give the flag or name. | |
| const String & | name () const |
Private Attributes | |
| Bool | itsFlag |
| String | itsName |
Class to specify which mask to use in an image.
Public interface
The only purpose of MaskSpecifier is to reduce the number of constructors in PagedImage. It makes it possible to specify if no mask, the default mask, or another mask should be used when opening an existing PagedImage object.
Because the constructors automatically converts from a Bool or a String, the user does not need to be aware of MaskSpecifier.
The number of constructors in PagedImage would be many more without this class. It would need one taking a Bool and a String. Because C++ converts a const char* to Bool instead of String, a const char* would also be needed multiple times.
Definition at line 65 of file MaskSpecifier.h.
Default constructor.
It tells if the default mask should or no mask be used.
Definition at line 69 of file MaskSpecifier.h.
References itsFlag, and casacore::True.
|
inline |
Construct from a string.
It tells to use an alternative mask. An empty name means no mask.
Definition at line 76 of file MaskSpecifier.h.
References casacore::False, itsFlag, and itsName.
|
inline |
Definition at line 77 of file MaskSpecifier.h.
References casacore::False, itsFlag, and itsName.
|
inline |
Definition at line 83 of file MaskSpecifier.h.
References itsName.
|
inline |
|
private |
Definition at line 87 of file MaskSpecifier.h.
Referenced by MaskSpecifier(), MaskSpecifier(), MaskSpecifier(), and useDefault().
|
private |
Definition at line 88 of file MaskSpecifier.h.
Referenced by MaskSpecifier(), MaskSpecifier(), and name().