resolve cyclic dependency with zstd
[platform/upstream/cmake.git] / Source / cmExpandedCommandArgument.h
1 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
2    file Copyright.txt or https://cmake.org/licensing for details.  */
3 #pragma once
4
5 #include "cmConfigure.h" // IWYU pragma: keep
6
7 #include <string>
8
9 /** \class cmExpandedCommandArgument
10  * \brief Represents an expanded command argument
11  *
12  * cmCommandArgument stores a string representing an expanded
13  * command argument and context information.
14  */
15
16 class cmExpandedCommandArgument
17 {
18 public:
19   cmExpandedCommandArgument();
20   cmExpandedCommandArgument(std::string value, bool quoted);
21
22   std::string const& GetValue() const;
23
24   bool WasQuoted() const;
25
26   bool operator==(const char* value) const;
27   bool operator==(std::string const& value) const;
28
29   bool empty() const;
30
31 private:
32   std::string Value;
33   bool Quoted = false;
34 };