diff options
author | Gabor Bencze <b.gabor98@gmail.com> | 2019-07-25 14:49:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-20 18:42:19 (GMT) |
commit | 01949a02df765cc4ad273b6163622f55d4f569ca (patch) | |
tree | 7de40eb16522085d052db75997f9bcd197262f05 /Source/cmConfigureFileCommand.h | |
parent | dc629b5d97cd5486b2b0b385680a163e594922ae (diff) | |
download | CMake-01949a02df765cc4ad273b6163622f55d4f569ca.zip CMake-01949a02df765cc4ad273b6163622f55d4f569ca.tar.gz CMake-01949a02df765cc4ad273b6163622f55d4f569ca.tar.bz2 |
cmCommand refactor: cmConfigureFileCommand
Diffstat (limited to 'Source/cmConfigureFileCommand.h')
-rw-r--r-- | Source/cmConfigureFileCommand.h | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/Source/cmConfigureFileCommand.h b/Source/cmConfigureFileCommand.h index b3a99d7..c7f95b8 100644 --- a/Source/cmConfigureFileCommand.h +++ b/Source/cmConfigureFileCommand.h @@ -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 |