ome-files
0.5.0
|
Common functionality for fields of all types. More...
#include <ome/files/tiff/Field.h>
Classes | |
class | Impl |
Internal implementation details of FieldBase. More... | |
Public Member Functions | |
virtual | ~FieldBase () |
Destructor. | |
Type | type () const |
Get field data type. More... | |
bool | passCount () const |
Get field count requirement. More... | |
int | readCount () const |
Get field read count requirement. More... | |
int | writeCount () const |
Get field write count requirement. More... | |
tag_type | tagNumber () const |
Get field tag number. More... | |
std::string | name () const |
Get field tag name. More... | |
std::shared_ptr< IFD > | getIFD () const |
Get the directory this field belongs to. More... | |
Protected Member Functions | |
FieldBase (std::shared_ptr< IFD > ifd, tag_type tag) | |
Constructor. More... | |
Protected Attributes | |
std::shared_ptr< Impl > | impl |
Private implementation details. | |
Common functionality for fields of all types.
Constructor.
ifd | the directory the field belongs to. |
tag | the tag identifying this field. |
std::shared_ptr< IFD > ome::files::tiff::FieldBase::getIFD | ( | ) | const |
Get the directory this field belongs to.
References impl, type(), and ome::files::tiff::TYPE_SHORT.
Referenced by ome::files::tiff::Field< Tag >::get(), and ome::files::tiff::Field< Tag >::set().
std::string ome::files::tiff::FieldBase::name | ( | ) | const |
Get field tag name.
Unknown
if not a registered tag. References impl.
bool ome::files::tiff::FieldBase::passCount | ( | ) | const |
Get field count requirement.
true
if a count parameter is needed, false
otherwise. References impl.
Referenced by ome::files::tiff::Field< Tag >::get(), and ome::files::tiff::Field< Tag >::set().
int ome::files::tiff::FieldBase::readCount | ( | ) | const |
Get field read count requirement.
References impl.
Referenced by ome::files::tiff::Field< Tag >::get().
tag_type ome::files::tiff::FieldBase::tagNumber | ( | ) | const |
Type ome::files::tiff::FieldBase::type | ( | ) | const |
Get field data type.
References impl, and ome::files::tiff::TYPE_UNDEFINED.
Referenced by ome::files::tiff::Field< Tag >::get(), getIFD(), and ome::files::tiff::Field< Tag >::set().
int ome::files::tiff::FieldBase::writeCount | ( | ) | const |
Get field write count requirement.
References impl.
Referenced by ome::files::tiff::Field< Tag >::set().