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