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>
static bool doit (T &output, std::istream &in, const std::string ext)
 Readers trier functor, helper for stream_wrappers.


Detailed Description

Readers trier functor, helper for stream_wrappers.

Definition at line 127 of file image_read.hh.


Member Function Documentation

template<class T>
static 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.

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 Tue Feb 20 20:27:19 2007 for Olena by  doxygen 1.5.1