LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
82 assert(numFlags >
error->getFlagBit());
83 record.
set(_vector[
error->getFlagBit()].second,
true);
FlagDefinition addFailureFlag(std::string const &doc="General Failure Flag")
Add a Flag Defintion to act as a "General" failure flag This flag will be set if a Measurement error ...
void handleFailure(afw::table::BaseRecord &record, MeasurementError const *error=nullptr) const
Handle an expected or unexpected Exception thrown by a measurement algorithm.
FlagHandler()
Each error should have a corresponding static FlagDefinition object.
Exception to be thrown when a measurement algorithm experiences a known failure mode.
bool hasDefinition(std::string const &name) const
See if there is a FlagDefinition with specified name.
Defines the fields and offsets for a table.
FlagDefinition add(std::string const &name, std::string const &doc)
Add a new FlagDefinition to this list.
vector-type utility class to build a collection of FlagDefinitions
static std::string const & getFailureFlagName()
Define the universal name of the general failure flag.
static constexpr std::size_t number_undefined
Utility class for handling flag fields that indicate the failure modes of an algorithm.
Base class for all records.
A base class for image defects.
std::size_t size() const
return the current size (number of defined elements) of the collection
Simple class used to define and document flags The name and doc constitute the identity of the FlagDe...
A proxy type for name lookups in a Schema.
void set(Key< T > const &key, U const &value)
Set value of a field for the given key.
static FlagHandler addFields(afw::table::Schema &schema, std::string const &prefix, FlagDefinitionList const &flagDefs, FlagDefinitionList const &exclDefs=FlagDefinitionList::getEmptyList())
Add Flag fields to a schema, creating a FlagHandler object to manage them.
std::size_t failureFlagNumber