core/vsl/vsl_vector_io.h
Go to the documentation of this file.
00001 // This is core/vsl/vsl_vector_io.h
00002 #ifndef vsl_vector_io_h_
00003 #define vsl_vector_io_h_
00004 //:
00005 // \file
00006 // \brief binary IO functions for vcl_vector<T>
00007 // \author Tim Cootes
00008 
00009 #include <vcl_iosfwd.h>
00010 #include <vcl_vector.h>
00011 #include <vsl/vsl_fwd.h>
00012 
00013 //: Write vector to binary stream
00014 template <class T>
00015 void vsl_b_write(vsl_b_ostream& s, const vcl_vector<T>& v);
00016 
00017 //: Read vector from binary stream
00018 template <class T>
00019 void vsl_b_read(vsl_b_istream& s, vcl_vector<T>& v);
00020 
00021 //: Print human readable summary of object to a stream
00022 template <class T>
00023 void vsl_print_summary(vcl_ostream & os,const vcl_vector<T> &v);
00024 
00025 
00026 //: Write vector<bool> to binary stream
00027 template <>
00028 void vsl_b_write(vsl_b_ostream& s, const vcl_vector<bool>& v);
00029 
00030 //: Read vector<bool> from binary stream
00031 template <>
00032 void vsl_b_read(vsl_b_istream& s, vcl_vector<bool>& v);
00033 
00034 //: Print human readable summary of object to a stream
00035 template <>
00036 void vsl_print_summary(vcl_ostream & os,const vcl_vector<bool> &v);
00037 
00038 #endif // vsl_vector_io_h_