Updates will be applied on October 27th between 12pm - 12:45pm EDT (UTC-0400). Gitlab may be slow during the maintenance window.

cmExecutionStatus.h 1.62 KB
Newer Older
1
2
3
/*============================================================================
  CMake - Cross Platform Makefile Generator
  Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
4

5
6
  Distributed under the OSI-approved BSD License (the "License");
  see accompanying file Copyright.txt for details.
7

8
9
10
11
  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.
============================================================================*/
12
13
14
#ifndef cmExecutionStatus_h
#define cmExecutionStatus_h

15
#include "cmStandardIncludes.h"
16
17
18
19
20
21

/** \class cmExecutionStatus
 * \brief Superclass for all command status classes
 *
 * when a command is involked it may set values on a command status instance
 */
22
class cmExecutionStatus
23
24
{
public:
25
  cmExecutionStatus() { this->Clear(); }
26

27
28
  void SetReturnInvoked(bool val) { this->ReturnInvoked = val; }
  bool GetReturnInvoked() { return this->ReturnInvoked; }
29

30
31
  void SetBreakInvoked(bool val) { this->BreakInvoked = val; }
  bool GetBreakInvoked() { return this->BreakInvoked; }
32

33
34
  void SetContinueInvoked(bool val) { this->ContinueInvoked = val; }
  bool GetContinueInvoked() { return this->ContinueInvoked; }
35

36
  void Clear()
37
  {
38
39
    this->ReturnInvoked = false;
    this->BreakInvoked = false;
40
    this->ContinueInvoked = false;
41
    this->NestedError = false;
42
  }
43
44
  void SetNestedError(bool val) { this->NestedError = val; }
  bool GetNestedError() { return this->NestedError; }
45

46
private:
47
48
  bool ReturnInvoked;
  bool BreakInvoked;
49
  bool ContinueInvoked;
50
  bool NestedError;
51
52
53
};

#endif