oln::io::internal::readers_trier Struct Reference

Readers trier functor, helper for stream_wrappers. More...

#include <image_read.hh>

List of all members.

Static Public Member Functions

template<class T> bool doit (T &output, std::istream &in, const std::string ext)
 Readers trier functor, helper for stream_wrappers.
  • output The new object.
  • in The stream to read from.
  • ext The extension.



Detailed Description

Readers trier functor, helper for stream_wrappers.

Definition at line 127 of file image_read.hh.


Member Function Documentation

template<class T>
bool oln::io::internal::readers_trier::doit T &  output,
std::istream &  in,
const std::string  ext
[inline, static]
 

Readers trier functor, helper for stream_wrappers.

  • output The new object.
  • in The stream to read from.
  • ext The extension.

First try to read by extension, then by data.

Definition at line 139 of file image_read.hh.

00140         {
00141           bool result = try_readers<ReadAny,T>::by_extension(output, in, ext);
00142           if (!result)
00143             result = try_readers<ReadAny,T>::by_data(output, in);
00144           return result;
00145         }


The documentation for this struct was generated from the following file:
Generated on Thu Apr 15 20:16:25 2004 for Olena by doxygen 1.3.6-20040222