2016-10-30 18:24:19 +01:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2021-09-14 00:13:48 +02:00
|
|
|
#pragma once
|
2015-04-27 22:25:09 +02:00
|
|
|
|
2017-07-20 19:35:53 +02:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2016-10-30 18:24:19 +01:00
|
|
|
|
2017-04-14 19:02:05 +02:00
|
|
|
#include <string>
|
2015-04-27 22:25:09 +02:00
|
|
|
|
|
|
|
/** \class cmExpandedCommandArgument
|
|
|
|
* \brief Represents an expanded command argument
|
|
|
|
*
|
|
|
|
* cmCommandArgument stores a string representing an expanded
|
|
|
|
* command argument and context information.
|
|
|
|
*/
|
|
|
|
|
|
|
|
class cmExpandedCommandArgument
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cmExpandedCommandArgument();
|
2019-11-11 23:01:05 +01:00
|
|
|
cmExpandedCommandArgument(std::string value, bool quoted);
|
2015-04-27 22:25:09 +02:00
|
|
|
|
|
|
|
std::string const& GetValue() const;
|
|
|
|
|
|
|
|
bool WasQuoted() const;
|
|
|
|
|
2018-04-23 21:13:27 +02:00
|
|
|
bool operator==(const char* value) const;
|
2016-07-09 11:21:54 +02:00
|
|
|
bool operator==(std::string const& value) const;
|
2015-04-27 22:25:09 +02:00
|
|
|
|
|
|
|
bool empty() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::string Value;
|
2019-11-11 23:01:05 +01:00
|
|
|
bool Quoted = false;
|
2015-04-27 22:25:09 +02:00
|
|
|
};
|