00001 #ifndef vnl_file_vector_h_ 00002 #define vnl_file_vector_h_ 00003 // This is vxl/vnl/vnl_file_vector.h 00004 00005 //: \file 00006 // \brief Load vnl_vector<T> from file 00007 // \author Andrew W. Fitzgibbon, Oxford RRG, 23 Dec 96 00008 00009 00010 // 00011 // Modifications: 00012 // fsm created by modifying class FileMatrix 00013 // LSB (Manchester) 23/3/01 Tidied documentation 00014 // 00015 //----------------------------------------------------------------------------- 00016 00017 #include <vnl/vnl_vector.h> 00018 00019 //: Templated class to load a vector from a file. 00020 template <class T> 00021 class vnl_file_vector : public vnl_vector<T> { 00022 public: 00023 vnl_file_vector(char const* filename); 00024 00025 operator bool() const { return ok_; } 00026 00027 private: 00028 bool ok_; 00029 }; 00030 00031 #endif // vnl_file_vector_h_