summaryrefslogtreecommitdiffstats
path: root/Source/cmState.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-11 10:30:26 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-04-13 19:12:14 (GMT)
commit96f8c5f9a3bd60f553af054b43e06ce4864269e0 (patch)
tree638ea6d9f11c263287f4bd698f476edd12f2fde1 /Source/cmState.h
parent97e53ebb3cd728e6091f93cb7d4eac91ae417bdb (diff)
downloadCMake-96f8c5f9a3bd60f553af054b43e06ce4864269e0.zip
CMake-96f8c5f9a3bd60f553af054b43e06ce4864269e0.tar.gz
CMake-96f8c5f9a3bd60f553af054b43e06ce4864269e0.tar.bz2
cmState: Move cmCommand-related methods from cmake class.
Diffstat (limited to 'Source/cmState.h')
-rw-r--r--Source/cmState.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmState.h b/Source/cmState.h
index 6df6182..a7a17ee 100644
--- a/Source/cmState.h
+++ b/Source/cmState.h
@@ -16,11 +16,13 @@
#include "cmPropertyDefinitionMap.h"
class cmake;
+class cmCommand;
class cmState
{
public:
cmState(cmake* cm);
+ ~cmState();
enum CacheEntryType{ BOOL=0, PATH, FILEPATH, STRING, INTERNAL,STATIC,
UNINITIALIZED };
@@ -79,9 +81,17 @@ public:
bool GetIsInTryCompile() const;
void SetIsInTryCompile(bool b);
+ cmCommand* GetCommand(std::string const& name) const;
+ void AddCommand(cmCommand* command);
+ void RemoveUnscriptableCommands();
+ void RenameCommand(std::string const& oldName, std::string const& newName);
+ void RemoveUserDefinedCommands();
+ std::vector<std::string> GetCommandNames() const;
+
private:
std::map<cmProperty::ScopeType, cmPropertyDefinitionMap> PropertyDefinitions;
std::vector<std::string> EnabledLanguages;
+ std::map<std::string, cmCommand*> Commands;
cmake* CMakeInstance;
bool IsInTryCompile;
};