cmExpandedCommandArgument.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2014 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmExpandedCommandArgument_h
  11. #define cmExpandedCommandArgument_h
  12. #include "cmStandardIncludes.h"
  13. /** \class cmExpandedCommandArgument
  14. * \brief Represents an expanded command argument
  15. *
  16. * cmCommandArgument stores a string representing an expanded
  17. * command argument and context information.
  18. */
  19. class cmExpandedCommandArgument
  20. {
  21. public:
  22. cmExpandedCommandArgument();
  23. cmExpandedCommandArgument(std::string const& value, bool quoted);
  24. std::string const& GetValue() const;
  25. bool WasQuoted() const;
  26. bool operator== (std::string const& value) const;
  27. bool empty() const;
  28. const char* c_str() const;
  29. private:
  30. std::string Value;
  31. bool Quoted;
  32. };
  33. #endif