1 //===- BSDArchiveReader.h -------------------------------------------------===// 2 // 3 // The MCLinker Project 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 #ifndef MCLD_BSD_ARCHIVE_READER_H 10 #define MCLD_BSD_ARCHIVE_READER_H 11 #ifdef ENABLE_UNITTEST 12 #include <gtest.h> 13 #endif 14 #include <mcld/LD/ArchiveReader.h> 15 16 namespace mcld 17 { 18 19 class Input; 20 class Archive; 21 22 /** \class BSDArchiveReader 23 * \brief BSDArchiveReader reads BSD-variant archive files. 24 * 25 */ 26 class BSDArchiveReader : public ArchiveReader 27 { 28 public: 29 BSDArchiveReader(); 30 ~BSDArchiveReader(); 31 32 bool readArchive(Archive& pArchive); 33 bool isMyFormat(Input& pInput) const; 34 }; 35 36 } // namespace of mcld 37 38 #endif 39 40