cmCommand refactor: cmWriteFileCommand

This commit is contained in:
Gabor Bencze
2019-08-09 11:56:34 +02:00
committed by Brad King
parent ca3b9186bb
commit 07ea93de54
3 changed files with 11 additions and 33 deletions
+3 -23
View File
@@ -8,33 +8,13 @@
#include <string>
#include <vector>
#include "cm_memory.hxx"
#include "cmCommand.h"
class cmExecutionStatus;
/** \class cmWriteFileCommand
/**
* \brief Writes a message to a file
*
*/
class cmWriteFileCommand : public cmCommand
{
public:
/**
* This is a virtual constructor for the command.
*/
std::unique_ptr<cmCommand> Clone() override
{
return cm::make_unique<cmWriteFileCommand>();
}
/**
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status) override;
};
bool cmWriteFileCommand(std::vector<std::string> const& args,
cmExecutionStatus& status);
#endif