cmExpandedCommandArgument.h 903 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 cmExpandedCommandArgument_h
  4. #define cmExpandedCommandArgument_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <string>
  7. /** \class cmExpandedCommandArgument
  8. * \brief Represents an expanded command argument
  9. *
  10. * cmCommandArgument stores a string representing an expanded
  11. * command argument and context information.
  12. */
  13. class cmExpandedCommandArgument
  14. {
  15. public:
  16. cmExpandedCommandArgument();
  17. cmExpandedCommandArgument(std::string const& value, bool quoted);
  18. std::string const& GetValue() const;
  19. bool WasQuoted() const;
  20. bool operator==(const char* value) const;
  21. bool operator==(std::string const& value) const;
  22. bool empty() const;
  23. const char* c_str() const;
  24. private:
  25. std::string Value;
  26. bool Quoted;
  27. };
  28. #endif