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

Functions to save objects to text file. More...

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

Go to the source code of this file.

Functions

template<class T >
bool mbl_save_text_file (const vcl_vector< T > &v, const vcl_string &path)
 Save vector to file with format "v1 v2 ..\ vn".
template<class T >
bool mbl_save_text_file (const vcl_vector< T > &v, vcl_ostream &os, const vcl_string &delim="\n")
 Save vector to stream with format "v1 v2 ..\ vn".

Detailed Description

Functions to save objects to text file.

Author:
dac

Definition in file mbl_save_text_file.h.


Function Documentation

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

Save vector to file with format "v1 v2 ..\ vn".

Definition at line 15 of file mbl_save_text_file.txx.

template<class T >
bool mbl_save_text_file ( const vcl_vector< T > &  v,
vcl_ostream &  os,
const vcl_string &  delim 
)

Save vector to stream with format "v1 v2 ..\ vn".

Definition at line 35 of file mbl_save_text_file.txx.