contrib/mul/mbl/mbl_save_text_file.h
Go to the documentation of this file.
00001 #ifndef mbl_save_text_file_h_
00002 #define mbl_save_text_file_h_
00003 
00004 //:
00005 // \file
00006 // \brief Functions to save objects to text file
00007 // \author dac
00008 
00009 #include <vcl_ostream.h>
00010 #include <vcl_string.h>
00011 #include <vcl_vector.h>
00012 
00013 
00014 //: Save vector to file with format "v1 v2 .. vn"
00015 template <class T>
00016 bool mbl_save_text_file(const vcl_vector<T >& v, const vcl_string& path );
00017 
00018 //: Save vector to stream with format "v1 v2 .. vn"
00019 template <class T>
00020 bool mbl_save_text_file(const vcl_vector<T >& v, vcl_ostream &os, const vcl_string& delim="\n");
00021 
00022 
00023 
00024 
00025 #endif