cmCommand refactor: cmConfigureFileCommand

This commit is contained in:
Gabor Bencze
2019-07-25 16:49:35 +02:00
committed by Brad King
parent dc629b5d97
commit 01949a02df
3 changed files with 37 additions and 73 deletions

View File

@@ -8,38 +8,8 @@
#include <string>
#include <vector>
#include "cm_memory.hxx"
#include "cmCommand.h"
#include "cmNewLineStyle.h"
class cmExecutionStatus;
class cmConfigureFileCommand : public cmCommand
{
public:
std::unique_ptr<cmCommand> Clone() override
{
return cm::make_unique<cmConfigureFileCommand>();
}
/**
* This is called when the command is first encountered in
* the input file.
*/
bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status) override;
private:
int ConfigureFile();
cmNewLineStyle NewLineStyle;
std::string InputFile;
std::string OutputFile;
bool CopyOnly = false;
bool EscapeQuotes = false;
bool AtOnly = false;
};
bool cmConfigureFileCommand(std::vector<std::string> const& args,
cmExecutionStatus& status);
#endif