cmConfigureFileCommand.h 982 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmConfigureFileCommand_h
  4. #define cmConfigureFileCommand_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <string>
  7. #include <vector>
  8. #include "cm_memory.hxx"
  9. #include "cmCommand.h"
  10. #include "cmNewLineStyle.h"
  11. class cmExecutionStatus;
  12. class cmConfigureFileCommand : public cmCommand
  13. {
  14. public:
  15. std::unique_ptr<cmCommand> Clone() override
  16. {
  17. return cm::make_unique<cmConfigureFileCommand>();
  18. }
  19. /**
  20. * This is called when the command is first encountered in
  21. * the input file.
  22. */
  23. bool InitialPass(std::vector<std::string> const& args,
  24. cmExecutionStatus& status) override;
  25. private:
  26. int ConfigureFile();
  27. cmNewLineStyle NewLineStyle;
  28. std::string InputFile;
  29. std::string OutputFile;
  30. bool CopyOnly = false;
  31. bool EscapeQuotes = false;
  32. bool AtOnly = false;
  33. };
  34. #endif