cmDebuggerSourceBreakpoint.h 726 B

1234567891011121314151617181920212223242526
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #pragma once
  4. #include "cmConfigure.h" // IWYU pragma: keep
  5. #include <cstdint>
  6. namespace cmDebugger {
  7. class cmDebuggerSourceBreakpoint
  8. {
  9. int64_t Id;
  10. int64_t Line;
  11. bool IsValid = true;
  12. public:
  13. cmDebuggerSourceBreakpoint(int64_t id, int64_t line);
  14. int64_t GetId() const noexcept { return this->Id; }
  15. int64_t GetLine() const noexcept { return this->Line; }
  16. void ChangeLine(int64_t line) noexcept { this->Line = line; }
  17. bool GetIsValid() const noexcept { return this->IsValid; }
  18. void Invalid() noexcept { this->IsValid = false; }
  19. };
  20. } // namespace cmDebugger