1
0

cmExpandedCommandArgument.h 807 B

12345678910111213141516171819202122232425262728293031323334
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #pragma once
  4. #include "cmConfigure.h" // IWYU pragma: keep
  5. #include <string>
  6. /** \class cmExpandedCommandArgument
  7. * \brief Represents an expanded command argument
  8. *
  9. * cmCommandArgument stores a string representing an expanded
  10. * command argument and context information.
  11. */
  12. class cmExpandedCommandArgument
  13. {
  14. public:
  15. cmExpandedCommandArgument();
  16. cmExpandedCommandArgument(std::string value, bool quoted);
  17. std::string const& GetValue() const;
  18. bool WasQuoted() const;
  19. bool operator==(const char* value) const;
  20. bool operator==(std::string const& value) const;
  21. bool empty() const;
  22. private:
  23. std::string Value;
  24. bool Quoted = false;
  25. };