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

Field representing a tag value. More...

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

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

Public Types

typedef Tag tag_category
 The tag type (C++ enum type).
 
typedef ::ome::files::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::files::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::files::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::files::tiff::FieldBase
ome::compat::shared_ptr< Implimpl
 Private implementation details.
 

Friends

class IFD
 

Detailed Description

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

Field representing a tag value.

Forward declaration of Field<Tag>.

Constructor & Destructor Documentation

template<typename Tag>
ome::files::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::files::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::files::tiff::ValueProxy< V >::operator=(), and ome::files::tiff::Value< V >::operator=().

+ Here is the caller graph for this function:

template<>
void ome::files::tiff::Field< StringTag1 >::get ( value_type value) const
template<>
void ome::files::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::files::tiff::FieldBase::getIFD(), ome::files::tiff::FieldBase::impl, ome::files::tiff::FieldBase::passCount(), ome::files::tiff::FieldBase::type(), and ome::files::tiff::TYPE_ASCII.

template<>
void ome::files::tiff::Field< UInt16Tag1 >::get ( value_type value) const
template<>
void ome::files::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::files::tiff::FieldBase::getIFD(), ome::files::tiff::FieldBase::impl, ome::files::tiff::FieldBase::readCount(), ome::files::tiff::FieldBase::type(), and ome::files::tiff::TYPE_SHORT.

template<>
void ome::files::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.

References ome::files::tiff::FieldBase::getIFD(), ome::files::tiff::FieldBase::impl, ome::files::tiff::FieldBase::passCount(), ome::files::tiff::FieldBase::readCount(), and ome::files::tiff::FieldBase::type().

template<>
void ome::files::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.

References ome::files::tiff::FieldBase::getIFD(), ome::files::tiff::FieldBase::impl, ome::files::tiff::FieldBase::passCount(), ome::files::tiff::FieldBase::readCount(), and ome::files::tiff::FieldBase::type().

template<>
void ome::files::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.

References ome::files::tiff::FieldBase::getIFD(), ome::files::tiff::FieldBase::impl, ome::files::tiff::FieldBase::passCount(), ome::files::tiff::FieldBase::readCount(), and ome::files::tiff::FieldBase::type().

template<>
void ome::files::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.

References ome::files::tiff::FieldBase::getIFD(), ome::files::tiff::FieldBase::impl, ome::files::tiff::FieldBase::passCount(), ome::files::tiff::FieldBase::readCount(), and ome::files::tiff::FieldBase::type().

template<>
void ome::files::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.

References ome::files::tiff::FieldBase::getIFD(), ome::files::tiff::FieldBase::impl, ome::files::tiff::FieldBase::passCount(), ome::files::tiff::FieldBase::readCount(), and ome::files::tiff::FieldBase::type().

template<>
void ome::files::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.

References ome::files::tiff::FieldBase::getIFD(), ome::files::tiff::FieldBase::impl, ome::files::tiff::FieldBase::passCount(), ome::files::tiff::FieldBase::readCount(), and ome::files::tiff::FieldBase::type().

template<>
void ome::files::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.

References ome::files::tiff::FieldBase::getIFD(), ome::files::tiff::FieldBase::impl, ome::files::tiff::FieldBase::passCount(), ome::files::tiff::FieldBase::readCount(), and ome::files::tiff::FieldBase::type().

template<>
void ome::files::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.

References ome::files::tiff::FieldBase::getIFD(), ome::files::tiff::FieldBase::impl, ome::files::tiff::FieldBase::passCount(), ome::files::tiff::FieldBase::readCount(), and ome::files::tiff::FieldBase::type().

template<>
void ome::files::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.

References ome::files::tiff::FieldBase::getIFD(), ome::files::tiff::FieldBase::impl, ome::files::tiff::FieldBase::passCount(), ome::files::tiff::FieldBase::readCount(), and ome::files::tiff::FieldBase::type().

template<>
void ome::files::tiff::Field< UInt16Tag2 >::get ( value_type value) const
template<>
void ome::files::tiff::Field< UInt16Tag6 >::get ( value_type value) const
template<>
void ome::files::tiff::Field< UInt32Tag1 >::get ( value_type value) const
template<>
void ome::files::tiff::Field< FloatTag1 >::get ( value_type value) const
template<>
void ome::files::tiff::Field< FloatTag2 >::get ( value_type value) const
template<>
void ome::files::tiff::Field< FloatTag3 >::get ( value_type value) const
template<>
void ome::files::tiff::Field< FloatTag6 >::get ( value_type value) const
template<>
void ome::files::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::files::tiff::FieldBase::getIFD(), ome::files::tiff::FieldBase::impl, ome::files::tiff::FieldBase::readCount(), ome::files::tiff::FieldBase::type(), and ome::files::tiff::TYPE_SHORT.

template<>
void ome::files::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::files::tiff::FieldBase::getIFD(), ome::files::tiff::FieldBase::impl, ome::files::tiff::FieldBase::readCount(), ome::files::tiff::FieldBase::type(), and ome::files::tiff::TYPE_SHORT.

template<>
void ome::files::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::files::tiff::FieldBase::getIFD(), ome::files::tiff::FieldBase::impl, ome::files::tiff::FieldBase::readCount(), ome::files::tiff::FieldBase::type(), and ome::files::tiff::TYPE_LONG.

template<>
void ome::files::tiff::Field< UInt64TagArray1 >::get ( value_type value) const
template<>
void ome::files::tiff::Field< RawDataTag1 >::get ( value_type value) const
template<typename Tag>
Field& ome::files::tiff::Field< Tag >::operator= ( const Field< Tag > &  field)
inline

Assign a field value.

Parameters
fieldthe field to assign from.
Returns
the Field.
template<typename Tag>
void ome::files::tiff::Field< Tag >::set ( const value_type value)

Set the value for this field.

Parameters
valuethe value to set.
template<>
void ome::files::tiff::Field< StringTag1 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< StringTagArray1 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< UInt16TagArray1 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< UInt16Tag1 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< UInt16Orientation1 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< UInt16PhotometricInterpretation1 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< UInt16PlanarConfiguration1 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< UInt16Predictor1 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< UInt16Compression1 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< UInt16FillOrder1 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< UInt16SampleFormat1 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< UInt16Threshholding1 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< UInt16YCbCrPosition1 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< UInt16Tag2 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< UInt16Tag6 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< UInt32Tag1 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< FloatTag1 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< FloatTag2 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< FloatTag3 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< FloatTag6 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< UInt16ExtraSamplesArray1 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< UInt16TagArray3 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< UInt32TagArray1 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< UInt64TagArray1 >::set ( const value_type value)
template<>
void ome::files::tiff::Field< RawDataTag1 >::set ( const value_type value)

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