24 #ifndef LSST_MEAS_BASE_FlagHandler_h_INCLUDED
25 #define LSST_MEAS_BASE_FlagHandler_h_INCLUDED
33 namespace lsst {
namespace meas {
namespace base {
55 std::string
const & prefix,
80 typedef std::vector< std::pair<FlagDefinition, afw::table::Key<afw::table::Flag> > >
Vector;
87 #endif // !LSST_MEAS_BASE_FlagHandler_h_INCLUDED
Defines the fields and offsets for a table.
bool getValue(afw::table::BaseRecord const &record, int i) const
A proxy type for name lookups in a Schema.
Simple POD struct used to define and document flags.
Exception to be thrown when a measurement algorithm experiences a known failure mode.
Field< T >::Value get(Key< T > const &key) const
Return the value of a field for the given key.
FlagDefinition getDefinition(int i) const
void setValue(afw::table::BaseRecord &record, int i, bool value) const
Base class for all records.
void set(Key< T > const &key, U const &value)
Set value of a field for the given key.
void handleFailure(afw::table::BaseRecord &record, MeasurementError const *error=NULL) const
static FlagHandler addFields(afw::table::Schema &schema, std::string const &prefix, FlagDefinition const *begin, FlagDefinition const *end)
std::vector< std::pair< FlagDefinition, afw::table::Key< afw::table::Flag > > > Vector