summaryrefslogtreecommitdiffstats
path: root/Source/cmState.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-06-21 19:26:43 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-08-23 17:05:11 (GMT)
commitbff27391a91d1410ef33187c0c35acc0a709720d (patch)
tree762c440fea8eca1b8d9b848bd0aefe0bd294e0a2 /Source/cmState.h
parent6954c8936f52dcf7710e4b72b2e090b79bf38d1c (diff)
downloadCMake-bff27391a91d1410ef33187c0c35acc0a709720d.zip
CMake-bff27391a91d1410ef33187c0c35acc0a709720d.tar.gz
CMake-bff27391a91d1410ef33187c0c35acc0a709720d.tar.bz2
cmState: Host variable definitions.
Diffstat (limited to 'Source/cmState.h')
-rw-r--r--Source/cmState.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmState.h b/Source/cmState.h
index 4d87653..5499665 100644
--- a/Source/cmState.h
+++ b/Source/cmState.h
@@ -21,6 +21,8 @@
class cmake;
class cmCommand;
+class cmDefinitions;
+class cmListFileBacktrace;
class cmState
{
@@ -52,6 +54,14 @@ public:
Snapshot(cmState* state = 0);
Snapshot(cmState* state, PositionType position);
+ const char* GetDefinition(std::string const& name) const;
+ bool IsInitialized(std::string const& name) const;
+ void SetDefinition(std::string const& name, std::string const& value);
+ void RemoveDefinition(std::string const& name);
+ std::vector<std::string> UnusedKeys() const;
+ std::vector<std::string> ClosureKeys() const;
+ bool RaiseScope(std::string const& var, const char* varDef);
+
void SetListFile(std::string const& listfile);
std::string GetExecutionListFile() const;
@@ -273,6 +283,7 @@ private:
cmLinkedTree<PolicyStackEntry> PolicyStack;
cmLinkedTree<SnapshotDataType> SnapshotData;
+ cmLinkedTree<cmDefinitions> VarTree;
std::vector<std::string> SourceDirectoryComponents;
std::vector<std::string> BinaryDirectoryComponents;