BSDArchiveReader.h revision 5460a1f25d9ddecb5c70667267d66d51af177a99
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
16namespace mcld
17{
18
19class Input;
20class InputTree;
21
22/** \class BSDArchiveReader
23 *  \brief BSDArchiveReader reads BSD-variant archive files.
24 *
25 */
26class BSDArchiveReader : public ArchiveReader
27{
28public:
29  BSDArchiveReader();
30  ~BSDArchiveReader();
31
32  InputTree *readArchive(Input &input);
33  bool isMyFormat(Input& pInput) const;
34};
35
36} // namespace of mcld
37
38#endif
39
40