Defines | Functions
contrib/mul/mbl/mbl_save_text_file.txx File Reference

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

#include "mbl_save_text_file.h"
#include <mbl/mbl_exception.h>
#include <vcl_fstream.h>

Go to the source code of this file.

Defines

#define mbl_save_text_file_txx_
#define MBL_SAVE_TEXT_FILE_INSTANTIATE_PATH(T)   template bool mbl_save_text_file(const vcl_vector<T >& v, const vcl_string& path)
#define MBL_SAVE_TEXT_FILE_INSTANTIATE_STREAM(T)   template bool mbl_save_text_file(const vcl_vector<T >& v, vcl_ostream &os, const vcl_string &delim)

Functions

template<class T >
bool mbl_save_text_file (const vcl_vector< T > &v, const vcl_string &path)
 Save vector to file with format { n v1 v2 ..\ vn }.
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 { n v1 v2 ..\ vn }.

Detailed Description

Functions to save objects to text file.

Author:
dac

Definition in file mbl_save_text_file.txx.


Define Documentation

#define MBL_SAVE_TEXT_FILE_INSTANTIATE_PATH (   T)    template bool mbl_save_text_file(const vcl_vector<T >& v, const vcl_string& path)

Definition at line 45 of file mbl_save_text_file.txx.

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

Definition at line 48 of file mbl_save_text_file.txx.

#define mbl_save_text_file_txx_

Definition at line 2 of file mbl_save_text_file.txx.


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 { n v1 v2 ..\ vn }.

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 { n v1 v2 ..\ vn }.

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

Definition at line 35 of file mbl_save_text_file.txx.