cmExpandedCommandArgument.h 859 B

1234567891011121314151617181920212223242526272829303132333435363738
  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==(std::string const& value) const;
  21. bool empty() const;
  22. const char* c_str() const;
  23. private:
  24. std::string Value;
  25. bool Quoted;
  26. };
  27. #endif