38 #ifndef OME_FILES_TIFF_TIFF_H 39 #define OME_FILES_TIFF_TIFF_H 43 #include <boost/iterator/iterator_facade.hpp> 45 #include <ome/files/tiff/Types.h> 67 template<
typename Value>
68 class IFDIterator :
public boost::iterator_facade<IFDIterator<Value>,
69 ome::compat::shared_ptr<Value>,
70 boost::forward_traversal_tag>
98 template <
class OtherValue>
109 mutable ome::compat::shared_ptr<Value>
pos;
111 friend class boost::iterator_core_access;
133 return this->pos == rhs.
pos;
141 ome::compat::shared_ptr<Value>&
156 class TIFF :
public ome::compat::enable_shared_from_this<TIFF>
162 ome::compat::shared_ptr<Impl>
impl;
166 TIFF(
const boost::filesystem::path& filename,
167 const std::string& mode);
175 operator= (
const TIFF&);
193 static ome::compat::shared_ptr<TIFF>
194 open(
const boost::filesystem::path& filename,
195 const std::string& mode);
221 directoryCount()
const;
231 ome::compat::shared_ptr<IFD>
242 ome::compat::shared_ptr<IFD>
251 ome::compat::shared_ptr<IFD>
252 getCurrentDirectory()
const;
263 writeCurrentDirectory();
329 registerImageJTags();
336 #endif // OME_FILES_TIFF_TIFF_H
Internal implementation details of TIFF.
Definition: TIFF.cpp:108
Tagged Image File Format (TIFF).
Definition: TIFF.h:156
IFDIterator()
Default constructor.
Definition: TIFF.h:78
IFDIterator< IFD > iterator
IFD iterator.
Definition: TIFF.h:290
void increment()
Increment the iterator by one position.
ome::compat::shared_ptr< Value > pos
The current position.
Definition: TIFF.h:109
uint64_t offset_type
IFD offset.
Definition: Types.h:56
Iterator for IFDs contained within a TIFF.
Definition: TIFF.h:68
IFDIterator(const IFDIterator< OtherValue > &rhs)
Construct from an existing iterator.
Definition: TIFF.h:99
bool equal(IFDIterator const &rhs) const
Check for equality.
Definition: TIFF.h:131
ome::compat::shared_ptr< Value > & dereference() const
Dereference the iterator.
Definition: TIFF.h:142
ome::compat::shared_ptr< Impl > impl
Private implementation details.
Definition: TIFF.h:160
IFDIterator< const IFD > const_iterator
const IFD iterator.
Definition: TIFF.h:292
uint16_t directory_index_type
IFD index.
Definition: Types.h:53
Image File Directory (IFD).
Definition: IFD.h:71
IFDIterator(ome::compat::shared_ptr< IFD > &ifd)
Construct with an initial starting position.
Definition: TIFF.h:89