2 #ifndef AFW_TABLE_Field_h_INCLUDED 3 #define AFW_TABLE_Field_h_INCLUDED 46 :
FieldBase<T>(size), _name(name), _doc(doc), _units(units) {}
62 :
FieldBase<T>(size), _name(name), _doc(doc), _units() {}
68 ~Field() noexcept =
default;
82 if (!
field.getDoc().empty())
os <<
", doc=\"" <<
field.getDoc() <<
"\"";
83 if (!
field.getUnits().empty())
os <<
", units=\"" <<
field.getUnits() <<
"\"";
102 #endif // !AFW_TABLE_Field_h_INCLUDED Field base class default implementation (used for numeric scalars and lsst::geom::Angle).
Field(std::string const &name, std::string const &doc, FieldBase< T > const &size)
Construct a new field.
std::string const & getDoc() const noexcept
Return the documentation for the field.
~Field() noexcept=default
A base class for image defects.
Field< T > copyRenamed(std::string const &newName) const
Return a new Field with a new name and other properties the same as this.
A description of a field in a table.
Field & operator=(Field const &)=default
Field(std::string const &name, std::string const &doc, std::string const &units="", FieldBase< T > const &size=FieldBase< T >())
Construct a new field.
std::string const & getName() const noexcept
Return the name of the field.
T Element
the type of subfields (the same as the type itself for scalars)
FieldBase< T >::Element Element
Type used to store field data in the table (a field may have multiple elements).
static std::string getTypeString()
Return a string description of the field type.
std::string const & getUnits() const noexcept
Return the units for the field.