cmExpandedCommandArgument.cxx 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. #include "cmExpandedCommandArgument.h"
  11. cmExpandedCommandArgument::cmExpandedCommandArgument():
  12. Quoted(false)
  13. {
  14. }
  15. cmExpandedCommandArgument::cmExpandedCommandArgument(
  16. std::string const& value, bool quoted):
  17. Value(value), Quoted(quoted)
  18. {
  19. }
  20. std::string const& cmExpandedCommandArgument::GetValue() const
  21. {
  22. return this->Value;
  23. }
  24. bool cmExpandedCommandArgument::WasQuoted() const
  25. {
  26. return this->Quoted;
  27. }
  28. bool cmExpandedCommandArgument::operator== (std::string const& value) const
  29. {
  30. return this->Value == value;
  31. }
  32. bool cmExpandedCommandArgument::empty() const
  33. {
  34. return this->Value.empty();
  35. }
  36. const char* cmExpandedCommandArgument::c_str() const
  37. {
  38. return this->Value.c_str();
  39. }