#include <readable.hh>
Collaboration diagram for oln::io::internal::anything:
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). |
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.
oln::io::internal::anything::anything | ( | ) | [inline] |
Constructor.
Definition at line 62 of file readable.hh.
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).
<
Definition at line 85 of file readable.hh.
References oln::io::internal::read_any().
Referenced by oln::image1d< T, Exact >::image1d(), oln::image2d< super::point >::image2d(), oln::image3d< T, Exact >::image3d(), oln::neighborhood2d::neighborhood2d(), oln::image3d< T, Exact >::operator=(), oln::image2d< super::point >::operator=(), oln::image1d< T, Exact >::operator=(), and oln::window2d::window2d().
00086 { 00087 read_any(output, str_); 00089 return output; 00090 }