vil_io_smart_ptr.h
Go to the documentation of this file.
1 // This is core/vil/io/vil_io_smart_ptr.h
2 #ifndef vil_io_smart_ptr_h
3 #define vil_io_smart_ptr_h
4 //:
5 // \file
6 // \brief Serialised binary IO functions for vil_smart_ptr<T>
7 // \author Tim Cootes/Ian Scott (Manchester)
8 //
9 // In order to use IO for smart pointers you will need to have
10 // the IO functions defined for pointers to MY_CLASS (class T.)
11 // If you have written I/O for polymorphic classes, some of these
12 // functions may already be defined.
13 
14 #include <vsl/vsl_binary_io.h>
15 #include <vil/vil_smart_ptr.h>
16 
17 //: Binary save vil_smart_ptr to stream.
18 // \relatesalso vil_smart_ptr
19 template <class T>
20 void vsl_b_write(vsl_b_ostream & os, const vil_smart_ptr<T> & v);
21 
22 //: Binary load vil_smart_ptr from stream.
23 // \relatesalso vil_smart_ptr
24 template <class T>
25 void vsl_b_read(vsl_b_istream & is, vil_smart_ptr<T> & v);
26 
27 //: Print human readable summary of object to a stream
28 // \relatesalso vil_smart_ptr
29 template <class T>
30 void vsl_print_summary(std::ostream & os,const vil_smart_ptr<T> & b);
31 
32 #endif // vil_io_smart_ptr_h
A templated smart pointer class.
Definition: vil_fwd.h:16
void vsl_print_summary(std::ostream &os, const vil_image_view< T > &image)
Print human readable summary of a vil_image_view<T> object to a stream.
void vsl_b_write(vsl_b_ostream &os, const vil_image_view< T > &image)
Binary save vil_image_view<T> to stream.
Contains a templated smart pointer class.
void vsl_b_read(vsl_b_istream &is, vil_image_view< T > &image)
Binary load vil_image_view<T> from stream.