Functions
contrib/mul/mbl/mbl_load_text_file.h File Reference

Functions to load objects from text file. More...

#include <vcl_iostream.h>
#include <vcl_string.h>
#include <vcl_vector.h>

Go to the source code of this file.

Functions

template<class T >
bool mbl_load_text_file (vcl_vector< T > &v, const vcl_string &path)
 Load vector from file with format "v1 v2 ..\ vn".
template<class T >
bool mbl_load_text_file (vcl_vector< T > &v, vcl_istream &is)
 Load vector from file with format "v1 v2 ..\ vn".

Detailed Description

Functions to load objects from text file.

Author:
dac

Definition in file mbl_load_text_file.h.


Function Documentation

template<class T >
bool mbl_load_text_file ( vcl_vector< T > &  v,
const vcl_string &  path 
)

Load vector from file with format "v1 v2 ..\ vn".

Exceptions:
onerror, or returns false if exceptions are disabled.

Definition at line 18 of file mbl_load_text_file.txx.

template<class T >
bool mbl_load_text_file ( vcl_vector< T > &  v,
vcl_istream &  is 
)

Load vector from file with format "v1 v2 ..\ vn".

Exceptions:
onerror, or returns false if exceptions are disabled.

Definition at line 42 of file mbl_load_text_file.txx.