1 /*============================================================================
2 CMake - Cross Platform Makefile Generator
3 Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
5 Distributed under the OSI-approved BSD License (the "License");
6 see accompanying file Copyright.txt for details.
8 This software is distributed WITHOUT ANY WARRANTY; without even the
9 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 See the License for more information.
11 ============================================================================*/
12 #ifndef cmExecutionStatus_h
13 #define cmExecutionStatus_h
17 /** \class cmExecutionStatus
18 * \brief Superclass for all command status classes
20 * when a command is involked it may set values on a command status instance
22 class cmExecutionStatus : public cmObject
25 cmTypeMacro(cmExecutionStatus, cmObject);
27 cmExecutionStatus() { this->Clear();};
29 virtual void SetReturnInvoked(bool val)
30 { this->ReturnInvoked = val; }
31 virtual bool GetReturnInvoked()
32 { return this->ReturnInvoked; }
34 virtual void SetBreakInvoked(bool val)
35 { this->BreakInvoked = val; }
36 virtual bool GetBreakInvoked()
37 { return this->BreakInvoked; }
41 this->ReturnInvoked = false;
42 this->BreakInvoked = false;
43 this->NestedError = false;
45 virtual void SetNestedError(bool val) { this->NestedError = val; }
46 virtual bool GetNestedError() { return this->NestedError; }