Class Filter¶
Defined in File Filter.h
Class Documentation¶
-
class
Filter
: public Storable¶ Holds an integer identifier for an LSST filter.
Public Functions
-
Filter
(std::string const &name, bool const force = false)¶ - Parameters
name
: Name of filterforce
: Allow us to construct an unknown Filter
Creates a Filter with the given name
-
Filter
(int id = UNKNOWN)¶ - Parameters
id
: Id number of desired filter
Creates a Filter with the given identifier
Create a Filter from a PropertySet (e.g. a FITS header)
- Parameters
metadata
: Metadata to process (e.g. a IFITS header)force
: Allow us to construct an unknown Filter
-
~Filter
()¶
-
std::size_t
hash_value
() const¶ Return a hash of this object.
-
std::string const &
getCanonicalName
() const¶ Return a filter’s canonical name
I.e. if this filter’s an alias, return the name of the aliased Filter
-
std::vector<std::string>
getAliases
() const¶ Return all aliases by which this filter is known
The list excludes the canonical name
-
FilterProperty const &
getFilterProperty
() const¶ Return a Filter’s FilterProperty
-
std::shared_ptr<typehandling::Storable>
cloneStorable
() const¶ Create a new Filter that is a copy of this one.
-
bool
equals
(typehandling::Storable const &other) const¶ Compare this object to another Storable.
- Return
*this == other
ifother
is a Filter; otherwisefalse
.
-
bool
isPersistable
() const¶
Public Static Functions
-
static void
reset
()¶ Clear all definitions
-
static int
define
(FilterProperty const &filterProperty, int id = AUTO, bool force = false)¶ Define a filter name to have the specified id
If id == Filter::AUTO a value will be chosen for you.
It is an error to attempt to change a name’s id (unless you specify force)
-
static int
defineAlias
(std::string const &oldName, std::string const &newName, bool force = false)¶ Define an alias for a filter
-
static std::vector<std::string>
getNames
()¶ Return a list of known filters
-