core/vil1/vil1_file_image.cxx

Go to the documentation of this file.
00001 // This is core/vil1/vil1_file_image.cxx
00002 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00003 #pragma implementation
00004 #endif
00005 
00006 #include "vil1_file_image.h"
00007 #include <vcl_iostream.h>
00008 
00009 #include <vil1/vil1_load.h>
00010 
00011 bool vil1_file_image::load(vcl_string const& filename, verbosity)
00012 {
00013   return this->load(filename.c_str());
00014 }
00015 
00016 bool vil1_file_image::load(char const* filename, verbosity v)
00017 {
00018   vil1_image i = vil1_load(filename);
00019   if (v == verbose) {
00020     vcl_cerr << "vil1_file_image: Loaded [" << filename << "]\n";
00021   }
00022   if (!i && v != silent) {
00023     vcl_cerr << "vil1_file_image: Could not load [" << filename << "]\n";
00024   }
00025 
00026   vil1_image::operator= (i);
00027   return (*this)?true:false;
00028 }

Generated on Sun Sep 7 05:08:27 2008 for core/vil1 by  doxygen 1.5.1