2016-09-27 22:01:08 +03: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 22:21:28 +04:00
|
|
|
#ifndef cmExpandedCommandArgument_h
|
|
|
|
#define cmExpandedCommandArgument_h
|
|
|
|
|
2016-09-01 21:05:48 +03:00
|
|
|
#include <cmConfigure.h>
|
|
|
|
|
2014-09-04 22:21:28 +04:00
|
|
|
#include "cmStandardIncludes.h"
|
|
|
|
|
|
|
|
/** \class cmExpandedCommandArgument
|
|
|
|
* \brief Represents an expanded command argument
|
|
|
|
*
|
|
|
|
* cmCommandArgument stores a string representing an expanded
|
|
|
|
* command argument and context information.
|
|
|
|
*/
|
|
|
|
|
|
|
|
class cmExpandedCommandArgument
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cmExpandedCommandArgument();
|
|
|
|
cmExpandedCommandArgument(std::string const& value, bool quoted);
|
|
|
|
|
|
|
|
std::string const& GetValue() const;
|
|
|
|
|
|
|
|
bool WasQuoted() const;
|
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
bool operator==(std::string const& value) const;
|
2014-09-04 22:21:28 +04:00
|
|
|
|
|
|
|
bool empty() const;
|
|
|
|
|
|
|
|
const char* c_str() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::string Value;
|
|
|
|
bool Quoted;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|