ome-files 0.1.0

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

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

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

`#include <ome/files/tiff/Field.h>`

Inheritance diagram for ome::files::tiff::FieldBase:
[legend]

## 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< IFD > | getIFD () 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< Impl > | impl
| Private implementation details.

## Detailed Description

Common functionality for fields of all types.

## Constructor & Destructor Documentation

ome::files::tiff::FieldBase::FieldBase | ( | ome::compat::shared_ptr< IFD > | ifd,
|  | tag_type | tag
| ) |  |
| protected

Constructor.

Parameters

  ifd | the directory the field belongs to.
  tag | the tag identifying this field.

## Member Function Documentation

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

Get the directory this field belongs to.

Returns
  the directory.

References impl.

std::string ome::files::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::files::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::files::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::files::tiff::FieldBase::tagNumber | ( |  | ) | const

Get field tag number.

Returns
  the tag number.

See also
  TIFFFieldTag().

References impl.

Type ome::files::tiff::FieldBase::type | ( |  | ) | const

Get field data type.

Returns
  the data type used by this field.

See also
  TIFFFieldDataType().

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

int ome::files::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:

- ome/files/tiff/Field.h
- ome/files/tiff/Field.cpp