|
|
@ -23,11 +23,10 @@ class cmCommand |
|
|
|
{ |
|
|
|
public: |
|
|
|
/** |
|
|
|
* Construct the command. By default it is enabled with no makefile. |
|
|
|
* Construct the command. By default it has no makefile. |
|
|
|
*/ |
|
|
|
cmCommand() |
|
|
|
: Makefile(CM_NULLPTR) |
|
|
|
, Enabled(true) |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
@ -91,26 +90,6 @@ public: |
|
|
|
*/ |
|
|
|
virtual std::string GetName() const = 0; |
|
|
|
|
|
|
|
/** |
|
|
|
* Enable the command. |
|
|
|
*/ |
|
|
|
void EnabledOn() { this->Enabled = true; } |
|
|
|
|
|
|
|
/** |
|
|
|
* Disable the command. |
|
|
|
*/ |
|
|
|
void EnabledOff() { this->Enabled = false; } |
|
|
|
|
|
|
|
/** |
|
|
|
* Query whether the command is enabled. |
|
|
|
*/ |
|
|
|
bool GetEnabled() const { return this->Enabled; } |
|
|
|
|
|
|
|
/** |
|
|
|
* Disable or enable the command. |
|
|
|
*/ |
|
|
|
void SetEnabled(bool enabled) { this->Enabled = enabled; } |
|
|
|
|
|
|
|
/** |
|
|
|
* Return the last error string. |
|
|
|
*/ |
|
|
@ -129,7 +108,6 @@ protected: |
|
|
|
cmCommandArgumentsHelper Helper; |
|
|
|
|
|
|
|
private: |
|
|
|
bool Enabled; |
|
|
|
std::string Error; |
|
|
|
}; |
|
|
|
|
|
|
|