Files
allwpilib/simulation/halsim_ws_client/src/main/native/include/HALSimWSClient.h

35 lines
1.0 KiB
C
Raw Normal View History

/*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
#pragma once
#include <memory>
#include <WSProviderContainer.h>
#include <WSProvider_SimDevice.h>
#include <wpi/EventLoopRunner.h>
#include "HALSimWS.h"
namespace wpilibws {
class HALSimWSClient {
public:
HALSimWSClient() = default;
HALSimWSClient(const HALSimWSClient&) = delete;
HALSimWSClient& operator=(const HALSimWSClient&) = delete;
bool Initialize();
ProviderContainer providers;
HALSimWSProviderSimDevices simDevices{providers};
wpi::EventLoopRunner runner;
std::shared_ptr<HALSimWS> simws;
};
} // namespace wpilibws