vil_io_memory_chunk.h
Go to the documentation of this file.
1 // This is core/vil/io/vil_io_memory_chunk.h
2 #ifndef vil_io_memory_chunk_h_
3 #define vil_io_memory_chunk_h_
4 //:
5 // \file
6 // \author Tim Cootes
7 
8 #include <vil/vil_memory_chunk.h>
9 #include <vsl/vsl_binary_io.h>
10 #include <vil/io/vil_io_smart_ptr.h> // for vsl_b_read(is, vil_memory_chunk_sptr)
11 
12 //: Binary save vil_memory_chunk to stream.
13 // \relatesalso vil_memory_chunk
14 void vsl_b_write(vsl_b_ostream &os, const vil_memory_chunk& chunk);
15 
16 //: Binary load vil_memory_chunk from stream.
17 // \relatesalso vil_memory_chunk
18 void vsl_b_read(vsl_b_istream &is, vil_memory_chunk& chunk);
19 
20 //: Binary save vil_memory_chunk to stream by pointer
21 // \relatesalso vil_memory_chunk
22 void vsl_b_write(vsl_b_ostream &os, const vil_memory_chunk* chunk);
23 
24 //: Binary load vil_memory_chunk from stream onto the heap
25 // \relatesalso vil_memory_chunk
26 void vsl_b_read(vsl_b_istream &is, vil_memory_chunk*& chunk);
27 
28 //: Print human readable summary of a vil_memory_chunk object to a stream
29 // \relatesalso vil_memory_chunk
30 void vsl_print_summary(std::ostream& os,const vil_memory_chunk& chunk);
31 
32 //: Print human readable summary of a vil_memory_chunk object to a stream
33 // \relatesalso vil_memory_chunk
34 inline void vsl_print_summary(std::ostream& os,const vil_memory_chunk* chunk)
35 { vsl_print_summary(os, *chunk); }
36 
37 #endif
Serialised binary IO functions for vil_smart_ptr<T>
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.
Ref. counted block of data on the heap.
void vsl_b_read(vsl_b_istream &is, vil_image_view< T > &image)
Binary load vil_image_view<T> from stream.