cmake/Source/cmExecutionStatus.h

60 lines
1.6 KiB
C
Raw Normal View History

2009-10-04 10:30:41 +03:00
/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
2009-10-04 10:30:41 +03:00
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
2009-10-04 10:30:41 +03:00
This software is distributed WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information.
============================================================================*/
#ifndef cmExecutionStatus_h
#define cmExecutionStatus_h
2015-08-17 11:37:30 +02:00
#include "cmStandardIncludes.h"
/** \class cmExecutionStatus
* \brief Superclass for all command status classes
*
* when a command is involked it may set values on a command status instance
*/
2015-08-17 11:37:30 +02:00
class cmExecutionStatus
{
public:
2015-08-17 11:37:30 +02:00
cmExecutionStatus() { this->Clear(); }
2013-03-16 19:13:01 +02:00
2015-08-17 11:37:30 +02:00
void SetReturnInvoked(bool val)
{ this->ReturnInvoked = val; }
2015-08-17 11:37:30 +02:00
bool GetReturnInvoked()
{ return this->ReturnInvoked; }
2013-03-16 19:13:01 +02:00
2015-08-17 11:37:30 +02:00
void SetBreakInvoked(bool val)
{ this->BreakInvoked = val; }
2015-08-17 11:37:30 +02:00
bool GetBreakInvoked()
{ return this->BreakInvoked; }
2013-03-16 19:13:01 +02:00
2015-08-17 11:37:30 +02:00
void SetContinueInvoked(bool val)
2015-04-27 22:25:09 +02:00
{ this->ContinueInvoked = val; }
2015-08-17 11:37:30 +02:00
bool GetContinueInvoked()
2015-04-27 22:25:09 +02:00
{ return this->ContinueInvoked; }
2015-08-17 11:37:30 +02:00
void Clear()
{
this->ReturnInvoked = false;
this->BreakInvoked = false;
2015-04-27 22:25:09 +02:00
this->ContinueInvoked = false;
this->NestedError = false;
}
2015-08-17 11:37:30 +02:00
void SetNestedError(bool val) { this->NestedError = val; }
bool GetNestedError() { return this->NestedError; }
2013-03-16 19:13:01 +02:00
2015-08-17 11:37:30 +02:00
private:
bool ReturnInvoked;
bool BreakInvoked;
2015-04-27 22:25:09 +02:00
bool ContinueInvoked;
bool NestedError;
};
#endif