oln::io::internal::writers_trier Struct Reference

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

#include <image_write.hh>

List of all members.

Static Public Member Functions

template<class T>
static bool doit (const T &input, std::ostream &out, const std::string ext)
 Writers trier functor, helper for stream_wrappers.


Detailed Description

Writers trier functor, helper for stream_wrappers.

Definition at line 131 of file image_write.hh.


Member Function Documentation

template<class T>
static bool oln::io::internal::writers_trier::doit ( const T &  input,
std::ostream &  out,
const std::string  ext 
) [inline, static]

Writers trier functor, helper for stream_wrappers.

First try to write by extension, then by data.

Definition at line 143 of file image_write.hh.

00144         {
00145           bool result = try_writers<WriteAny,T>::by_extension(input, out, ext);
00146           if (!result)
00147             result = try_writers<WriteAny,T>::by_data(input, out, ext);
00148           return result;
00149         }


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