core/vpgl/io/vpgl_io_camera.cxx
Go to the documentation of this file.
00001 #include "vpgl_io_camera.h"
00002 //:
00003 // \file
00004 
00005 //: Binary save camera sptr to stream
00006 void vsl_b_write(vsl_b_ostream & os, vpgl_camera_double_sptr const& cam_sptr)
00007 {
00008   if (!cam_sptr) return;
00009   vpgl_camera<double>* cam = cam_sptr.ptr();
00010   vsl_b_write(os, cam);
00011 }
00012 
00013 //: Binary save camera sptr to stream
00014 void vsl_b_write(vsl_b_ostream & os, vpgl_camera_float_sptr const& cam_sptr)
00015 {
00016   if (!cam_sptr) return;
00017   vpgl_camera<float>* cam = cam_sptr.ptr();
00018   vsl_b_write(os, cam);
00019 }
00020 
00021 //: Binary load camera from stream.
00022 void vsl_b_read(vsl_b_istream & is, vpgl_camera_double_sptr &camera)
00023 {
00024   vpgl_camera<double>* cam = 0;
00025    vsl_b_read(is, cam);
00026   camera = cam;
00027 }
00028 
00029 //: Binary load camera from stream.
00030 void vsl_b_read(vsl_b_istream & is, vpgl_camera_float_sptr &camera)
00031 {
00032   vpgl_camera<float>* cam = 0;
00033   vsl_b_read(is, cam);
00034   camera = cam;
00035 }
00036