00001 /* 00002 * Copyright (c) 2004 CSIRO ICT Centre 00003 * 00004 * $Id: FileObjectReader.h 587 2004-12-03 15:06:33Z nch $ 00005 */ 00006 00007 /* 00008 * Reads the contents of an object from a file using the read method. 00009 * 00010 * This class defines the interface all FileObjectReaders must implement. 00011 * 00012 * Refere to subclasses for examples. 00013 */ 00014 00015 #ifndef FILEOBJECTREADER_DEFINED 00016 #define FILEOBJECTREADER_DEFINED 00017 00018 #include "FileHeader.h" 00019 00020 class Object; 00021 00022 00023 class FileObjectReader 00024 { 00025 public: 00026 virtual ~FileObjectReader() {}; 00027 virtual Object * read(FILE * fp)=0; 00028 00029 protected: 00030 FileObjectReader() {}; 00031 00032 private: 00033 FileObjectReader(FileObjectReader const & other); 00034 FileObjectReader & operator=(FileObjectReader const &); 00035 }; 00036 00037 #endif // ifndef FILEOBJECTREADER_DEFINED 00038