SearchDirCmd.h revision f33f6de54db174aa679a4b6d1e040d37e95541c0
1//===- SearchDirCmd.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_SCRIPT_SEARCHDIRCMD_H
10#define MCLD_SCRIPT_SEARCHDIRCMD_H
11#ifdef ENABLE_UNITTEST
12#include <gtest.h>
13#endif
14
15#include <mcld/Script/ScriptCommand.h>
16#include <string>
17
18namespace mcld
19{
20
21class Module;
22
23/** \class SearchDirCmd
24 *  \brief This class defines the interfaces to SEARCH_DIR command.
25 */
26
27class SearchDirCmd : public ScriptCommand
28{
29public:
30  SearchDirCmd(const std::string& pPath);
31  ~SearchDirCmd();
32
33  void dump() const;
34
35  void activate(Module& pModule);
36
37  static bool classof(const ScriptCommand* pCmd)
38  {
39    return pCmd->getKind() == ScriptCommand::SEARCH_DIR;
40  }
41
42private:
43  std::string m_Path;
44};
45
46} // namespace of mcld
47
48#endif
49
50