
``` git grep -lz 'Copyright.txt or https://cmake.org/licensing ' | while IFS= read -r -d $'\0' f ; do sed -i '/Copyright.txt or https:\/\/cmake.org\/licensing / { s/Copyright.txt/LICENSE.rst/ }' "$f" ; done ```
36 lines
914 B
C++
36 lines
914 B
C++
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file LICENSE.rst or https://cmake.org/licensing for details. */
|
|
#pragma once
|
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
|
|
|
#include <cstdint>
|
|
#include <functional>
|
|
#include <unordered_map>
|
|
|
|
#include <cm3p/cppdap/protocol.h>
|
|
#include <cm3p/cppdap/types.h>
|
|
|
|
namespace cmDebugger {
|
|
|
|
class cmDebuggerVariablesManager
|
|
{
|
|
std::unordered_map<
|
|
int64_t,
|
|
std::function<dap::array<dap::Variable>(dap::VariablesRequest const&)>>
|
|
VariablesHandlers;
|
|
void RegisterHandler(
|
|
int64_t id,
|
|
std::function<dap::array<dap::Variable>(dap::VariablesRequest const&)>
|
|
handler);
|
|
void UnregisterHandler(int64_t id);
|
|
friend class cmDebuggerVariables;
|
|
|
|
public:
|
|
cmDebuggerVariablesManager() = default;
|
|
dap::array<dap::Variable> HandleVariablesRequest(
|
|
dap::VariablesRequest const& request);
|
|
};
|
|
|
|
} // namespace cmDebugger
|