oln::io::internal::anything Class Reference

Anything. More...

#include <readable.hh>

Collaboration diagram for oln::io::internal::anything:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 anything ()
 Constructor.

 anything (const anything &rhs)
 Constructor.

 anything (const std::string &str)
 Constructor.

 anything (const char *c)
 Constructor.

template<typename T> T & assign (T &output) const
 This function will be called when applied to an operator = and load the file (str_ is the filename).


Detailed Description

Anything.

This class is called by oln::load and just keep the filename to load. As soon as you will use the operator = on it, assign will be called and it will read the file. If you would like some examples to know how to use that, go to oln::abstract::iter

Definition at line 55 of file readable.hh.


Constructor & Destructor Documentation

oln::io::internal::anything::anything  )  [inline]
 

Constructor.

Todo:
FIXME: these constructors are required by swig

Definition at line 62 of file readable.hh.

00062 : str_() {}


Member Function Documentation

template<typename T>
T& oln::io::internal::anything::assign T &  output  )  const [inline]
 

This function will be called when applied to an operator = and load the file (str_ is the filename).

<

Todo:
FIXME: call output.clear()?

Definition at line 85 of file readable.hh.

Referenced by oln::image1d< T, Exact >::image1d(), oln::image2d< std::vector< oln::point2d > >::image2d(), oln::image3d< T, Exact >::image3d(), oln::image3d< T, Exact >::operator=(), oln::image2d< std::vector< oln::point2d > >::operator=(), and oln::image1d< T, Exact >::operator=().

00086         {
00087           read_any(output, str_);
00089           return output;
00090         }


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