2016-09-27 19:01:08 +00:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2014-09-04 18:21:28 +00:00
|
|
|
#include "cmExpandedCommandArgument.h"
|
|
|
|
|
2016-05-16 14:34:04 +00:00
|
|
|
cmExpandedCommandArgument::cmExpandedCommandArgument()
|
|
|
|
: Quoted(false)
|
2014-09-04 18:21:28 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-05-16 14:34:04 +00:00
|
|
|
cmExpandedCommandArgument::cmExpandedCommandArgument(std::string const& value,
|
|
|
|
bool quoted)
|
|
|
|
: Value(value)
|
|
|
|
, Quoted(quoted)
|
2014-09-04 18:21:28 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string const& cmExpandedCommandArgument::GetValue() const
|
|
|
|
{
|
|
|
|
return this->Value;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cmExpandedCommandArgument::WasQuoted() const
|
|
|
|
{
|
|
|
|
return this->Quoted;
|
|
|
|
}
|
|
|
|
|
2016-05-16 14:34:04 +00:00
|
|
|
bool cmExpandedCommandArgument::operator==(std::string const& value) const
|
2014-09-04 18:21:28 +00:00
|
|
|
{
|
|
|
|
return this->Value == value;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cmExpandedCommandArgument::empty() const
|
|
|
|
{
|
|
|
|
return this->Value.empty();
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* cmExpandedCommandArgument::c_str() const
|
|
|
|
{
|
|
|
|
return this->Value.c_str();
|
|
|
|
}
|