blob: ceb584bdfea63e7e96cec9c8bdd0f8efa49e72e5 [file] [log] [blame]
//===- SearchDirCmd.h -----------------------------------------------------===//
//
// The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef MCLD_SCRIPT_SEARCHDIRCMD_H_
#define MCLD_SCRIPT_SEARCHDIRCMD_H_
#include "mcld/Script/ScriptCommand.h"
#include <string>
namespace mcld {
class Module;
/** \class SearchDirCmd
* \brief This class defines the interfaces to SEARCH_DIR command.
*/
class SearchDirCmd : public ScriptCommand {
public:
explicit SearchDirCmd(const std::string& pPath);
~SearchDirCmd();
void dump() const;
void activate(Module& pModule);
static bool classof(const ScriptCommand* pCmd) {
return pCmd->getKind() == ScriptCommand::SEARCH_DIR;
}
private:
std::string m_Path;
};
} // namespace mcld
#endif // MCLD_SCRIPT_SEARCHDIRCMD_H_