summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-01-22 15:56:39 (GMT)
committerBrad King <brad.king@kitware.com>2009-01-22 15:56:39 (GMT)
commit8997f4760a83efb270f3f9234a016451c0884fe2 (patch)
tree15d37251813671eed25ce679227c574458eb139f /Source/cmPolicies.h
parente8a0e90133da84e552efc1852f9f1e589b250ed3 (diff)
downloadCMake-8997f4760a83efb270f3f9234a016451c0884fe2.zip
CMake-8997f4760a83efb270f3f9234a016451c0884fe2.tar.gz
CMake-8997f4760a83efb270f3f9234a016451c0884fe2.tar.bz2
ENH: Refactor policy stack representation
This defines PolicyMap as a public member of cmPolicies. Its previous role as a policy stack entry is now called PolicyStackEntry and represented as a class to which more information can be added later.
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r--Source/cmPolicies.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h
index 02f7276..8dc7f31 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -89,6 +89,10 @@ public:
///! Get docs for policies
void GetDocumentation(std::vector<cmDocumentationEntry>& v);
+ /** Represent a set of policy values. */
+ typedef std::map<cmPolicies::PolicyID,
+ cmPolicies::PolicyStatus> PolicyMap;
+
private:
// might have to make these internal for VS6 not sure yet
std::map<PolicyID,cmPolicy *> Policies;