bioformats  5.1.8
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ome::bioformats::tiff::FieldBase Class Reference

Common functionality for fields of all types. More...

#include <ome/bioformats/tiff/Field.h>

+ Inheritance diagram for ome::bioformats::tiff::FieldBase:

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...
 
ome::compat::shared_ptr< IFDgetIFD () const
 Get the directory this field belongs to. More...
 

Protected Member Functions

 FieldBase (ome::compat::shared_ptr< IFD > ifd, tag_type tag)
 Constructor. More...
 

Protected Attributes

ome::compat::shared_ptr< Implimpl
 Private implementation details.
 

Detailed Description

Common functionality for fields of all types.

Constructor & Destructor Documentation

ome::bioformats::tiff::FieldBase::FieldBase ( ome::compat::shared_ptr< IFD ifd,
tag_type  tag 
)
protected

Constructor.

Parameters
ifdthe directory the field belongs to.
tagthe tag identifying this field.

Member Function Documentation

ome::compat::shared_ptr< IFD > ome::bioformats::tiff::FieldBase::getIFD ( ) const

Get the directory this field belongs to.

Returns
the directory.

References impl.

std::string ome::bioformats::tiff::FieldBase::name ( ) const

Get field tag name.

Returns
the registered name of the field, or Unknown if not a registered tag.
See also
TIFFFieldName().

References impl.

bool ome::bioformats::tiff::FieldBase::passCount ( ) const

Get field count requirement.

Returns
true if a count parameter is needed, false otherwise.
See also
TIFFFieldPassCount().

References impl.

int ome::bioformats::tiff::FieldBase::readCount ( ) const

Get field read count requirement.

Todo:
: Check TIFF_VARIABLE/TIFF_VARIABLE2/TIFF_SPP and adjust the return value accordingly.
Returns
the number of values to read.
See also
TIFFFieldReadCount().

References impl.

tag_type ome::bioformats::tiff::FieldBase::tagNumber ( ) const

Get field tag number.

Returns
the tag number.
See also
TIFFFieldTag().

References impl.

Type ome::bioformats::tiff::FieldBase::type ( ) const

Get field data type.

Returns
the data type used by this field.
See also
TIFFFieldDataType().

References impl, and ome::bioformats::tiff::TYPE_UNDEFINED.

int ome::bioformats::tiff::FieldBase::writeCount ( ) const

Get field write count requirement.

Todo:
: Check TIFF_VARIABLE/TIFF_VARIABLE2/TIFF_SPP and adjust the return value accordingly.
Returns
the number of values to write.
See also
TIFFFieldWriteCount().

References impl.


The documentation for this class was generated from the following files: