cmExecutionStatus.h 1.48 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
16
#include <cmConfigure.h>

17
#include "cmStandardIncludes.h"
18
19
20
21
22
23

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

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

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

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

38
  void Clear()
39
  {
40
41
    this->ReturnInvoked = false;
    this->BreakInvoked = false;
42
    this->ContinueInvoked = false;
43
  }
44

45
private:
46
47
  bool ReturnInvoked;
  bool BreakInvoked;
48
  bool ContinueInvoked;
49
50
51
};

#endif