bioformats  5.1.8
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
ome::bioformats::tiff::Field< Tag > Class Template Reference

Field representing a tag value. More...

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

+ Inheritance diagram for ome::bioformats::tiff::Field< Tag >:
+ Collaboration diagram for ome::bioformats::tiff::Field< Tag >:

Public Types

typedef Tag tag_category
 The tag type (C++ enum type).
 
typedef ::ome::bioformats::detail::tiff::TagProperties< tag_category >::value_type value_type
 The tag value type (C++ type).
 

Public Member Functions

virtual ~Field ()
 Destructor.
 
void get (value_type &value) const
 Get the value for this field. More...
 
void set (const value_type &value)
 Set the value for this field. More...
 
Fieldoperator= (const Field &field)
 Assign a field value. More...
 
 operator value_type ()
 Cast operator for getting the value of this field.
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
template<>
void get (value_type &value) const
 Get the value for this field. More...
 
template<>
void set (const value_type &value)
 Set the value for this field. More...
 
- Public Member Functions inherited from ome::bioformats::tiff::FieldBase
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

 Field (ome::compat::shared_ptr< IFD > ifd, tag_category tag)
 Constructor. More...
 
- Protected Member Functions inherited from ome::bioformats::tiff::FieldBase
 FieldBase (ome::compat::shared_ptr< IFD > ifd, tag_type tag)
 Constructor. More...
 

Protected Attributes

tag_category tag
 The tag identifying this field.
 
- Protected Attributes inherited from ome::bioformats::tiff::FieldBase
ome::compat::shared_ptr< Implimpl
 Private implementation details.
 

Friends

class IFD
 

Detailed Description

template<typename Tag>
class ome::bioformats::tiff::Field< Tag >

Field representing a tag value.

Forward declaration of Field<Tag>.

Constructor & Destructor Documentation

template<typename Tag>
ome::bioformats::tiff::Field< Tag >::Field ( ome::compat::shared_ptr< IFD ifd,
tag_category  tag 
)
inlineprotected

Constructor.

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

Member Function Documentation

template<typename Tag>
void ome::bioformats::tiff::Field< Tag >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.

Referenced by ome::bioformats::tiff::ValueProxy< V >::operator=(), and ome::bioformats::tiff::Value< V >::operator=().

+ Here is the caller graph for this function:

template<>
void ome::bioformats::tiff::Field< StringTag1 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.

References ome::bioformats::tiff::TYPE_ASCII.

template<>
void ome::bioformats::tiff::Field< StringTagArray1 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.

References ome::bioformats::tiff::TYPE_ASCII.

template<>
void ome::bioformats::tiff::Field< UInt16Tag1 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.

References ome::bioformats::tiff::TYPE_SHORT.

template<>
void ome::bioformats::tiff::Field< UInt16TagArray1 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.

References ome::bioformats::tiff::TYPE_SHORT.

template<>
void ome::bioformats::tiff::Field< UInt16Orientation1 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.
template<>
void ome::bioformats::tiff::Field< UInt16PhotometricInterpretation1 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.
template<>
void ome::bioformats::tiff::Field< UInt16PlanarConfiguration1 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.
template<>
void ome::bioformats::tiff::Field< UInt16Predictor1 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.
template<>
void ome::bioformats::tiff::Field< UInt16Compression1 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.
template<>
void ome::bioformats::tiff::Field< UInt16FillOrder1 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.
template<>
void ome::bioformats::tiff::Field< UInt16SampleFormat1 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.
template<>
void ome::bioformats::tiff::Field< UInt16Threshholding1 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.
template<>
void ome::bioformats::tiff::Field< UInt16YCbCrPosition1 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.
template<>
void ome::bioformats::tiff::Field< UInt16Tag2 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.

References ome::bioformats::tiff::BITSPERSAMPLE, and ome::bioformats::tiff::TYPE_SHORT.

template<>
void ome::bioformats::tiff::Field< UInt16Tag6 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.

References ome::bioformats::tiff::BITSPERSAMPLE, and ome::bioformats::tiff::TYPE_SHORT.

template<>
void ome::bioformats::tiff::Field< UInt32Tag1 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.

References ome::bioformats::tiff::TYPE_LONG.

template<>
void ome::bioformats::tiff::Field< FloatTag1 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.

References ome::bioformats::tiff::TYPE_RATIONAL.

template<>
void ome::bioformats::tiff::Field< FloatTag2 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.

References ome::bioformats::tiff::TYPE_RATIONAL.

template<>
void ome::bioformats::tiff::Field< FloatTag3 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.

References ome::bioformats::tiff::TYPE_RATIONAL.

template<>
void ome::bioformats::tiff::Field< FloatTag6 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.

References ome::bioformats::tiff::TYPE_RATIONAL.

template<>
void ome::bioformats::tiff::Field< UInt16ExtraSamplesArray1 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.

References ome::bioformats::tiff::TYPE_SHORT.

template<>
void ome::bioformats::tiff::Field< UInt16TagArray3 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.

References ome::bioformats::tiff::TYPE_SHORT.

template<>
void ome::bioformats::tiff::Field< UInt32TagArray1 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.

References ome::bioformats::tiff::TYPE_LONG.

template<>
void ome::bioformats::tiff::Field< UInt64TagArray1 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.

References ome::bioformats::tiff::TYPE_IFD, ome::bioformats::tiff::TYPE_IFD8, ome::bioformats::tiff::TYPE_LONG, and ome::bioformats::tiff::TYPE_LONG8.

template<>
void ome::bioformats::tiff::Field< RawDataTag1 >::get ( value_type value) const

Get the value for this field.

Parameters
valuethe variable in which the field value will be stored.

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

template<typename Tag>
Field& ome::bioformats::tiff::Field< Tag >::operator= ( const Field< Tag > &  field)
inline

Assign a field value.

Parameters
fieldthe field to assign from.
Returns
the Field.

References ome::bioformats::tiff::Field< Tag >::set().

template<typename Tag>
void ome::bioformats::tiff::Field< Tag >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.

Referenced by ome::bioformats::tiff::Field< Tag >::operator=().

+ Here is the caller graph for this function:

template<>
void ome::bioformats::tiff::Field< StringTag1 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.

References ome::bioformats::tiff::TYPE_ASCII.

template<>
void ome::bioformats::tiff::Field< StringTagArray1 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.

References ome::bioformats::tiff::TYPE_ASCII.

template<>
void ome::bioformats::tiff::Field< UInt16TagArray1 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.

References ome::bioformats::tiff::TYPE_SHORT.

template<>
void ome::bioformats::tiff::Field< UInt16Tag1 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.

References ome::bioformats::tiff::TYPE_SHORT.

template<>
void ome::bioformats::tiff::Field< UInt16Orientation1 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.
template<>
void ome::bioformats::tiff::Field< UInt16PhotometricInterpretation1 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.
template<>
void ome::bioformats::tiff::Field< UInt16PlanarConfiguration1 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.
template<>
void ome::bioformats::tiff::Field< UInt16Predictor1 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.
template<>
void ome::bioformats::tiff::Field< UInt16Compression1 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.
template<>
void ome::bioformats::tiff::Field< UInt16FillOrder1 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.
template<>
void ome::bioformats::tiff::Field< UInt16SampleFormat1 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.
template<>
void ome::bioformats::tiff::Field< UInt16Threshholding1 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.
template<>
void ome::bioformats::tiff::Field< UInt16YCbCrPosition1 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.
template<>
void ome::bioformats::tiff::Field< UInt16Tag2 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.

References ome::bioformats::tiff::TYPE_SHORT.

template<>
void ome::bioformats::tiff::Field< UInt16Tag6 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.

References ome::bioformats::tiff::TYPE_SHORT.

template<>
void ome::bioformats::tiff::Field< UInt32Tag1 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.

References ome::bioformats::tiff::TYPE_LONG.

template<>
void ome::bioformats::tiff::Field< FloatTag1 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.

References ome::bioformats::tiff::TYPE_RATIONAL.

template<>
void ome::bioformats::tiff::Field< FloatTag2 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.

References ome::bioformats::tiff::TYPE_RATIONAL.

template<>
void ome::bioformats::tiff::Field< FloatTag3 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.

References ome::bioformats::tiff::TYPE_RATIONAL.

template<>
void ome::bioformats::tiff::Field< FloatTag6 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.

References ome::bioformats::tiff::TYPE_RATIONAL.

template<>
void ome::bioformats::tiff::Field< UInt16ExtraSamplesArray1 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.

References ome::bioformats::tiff::TYPE_SHORT.

template<>
void ome::bioformats::tiff::Field< UInt16TagArray3 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.

References ome::bioformats::tiff::TYPE_SHORT.

template<>
void ome::bioformats::tiff::Field< UInt32TagArray1 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.

References ome::bioformats::tiff::TYPE_LONG.

template<>
void ome::bioformats::tiff::Field< UInt64TagArray1 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.

References ome::bioformats::tiff::TYPE_IFD, ome::bioformats::tiff::TYPE_IFD8, ome::bioformats::tiff::TYPE_LONG, and ome::bioformats::tiff::TYPE_LONG8.

template<>
void ome::bioformats::tiff::Field< RawDataTag1 >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.

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


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