//===- OutputCmd.h --------------------------------------------------------===//
//
//                     The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef MCLD_SCRIPT_OUTPUTCMD_H
#define MCLD_SCRIPT_OUTPUTCMD_H

#include <mcld/Script/ScriptCommand.h>
#include <string>

namespace mcld
{

class Module;

/** \class OutputCmd
 *  \brief This class defines the interfaces to Output command.
 */

class OutputCmd : public ScriptCommand
{
public:
  OutputCmd(const std::string& pOutputFile);

  ~OutputCmd();

  void dump() const;

  static bool classof(const ScriptCommand* pCmd)
  {
    return pCmd->getKind() == ScriptCommand::OUTPUT;
  }

  void activate(Module& pModule);

private:
  std::string m_OutputFile;
};

} // namespace of mcld

#endif