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> bool doit (const T &input, std::ostream &out, const std::string ext)
 Writers trier functor, helper for stream_wrappers.
  • output The new object.
  • in The stream to read from.
  • ext The extension.



Detailed Description

Writers trier functor, helper for stream_wrappers.

Definition at line 131 of file image_write.hh.


Member Function Documentation

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

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

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 Thu Apr 15 20:16:25 2004 for Olena by doxygen 1.3.6-20040222