2020-12-26 14:12:05 -08:00
|
|
|
// Copyright (c) FIRST and other WPILib contributors.
|
|
|
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
|
|
|
// the WPILib BSD license file in the root directory of this project.
|
2020-08-20 01:14:03 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
|
|
#include <WSProviderContainer.h>
|
|
|
|
|
#include <WSProvider_SimDevice.h>
|
2020-09-04 10:57:05 -07:00
|
|
|
#include <wpi/EventLoopRunner.h>
|
2020-08-20 01:14:03 -04:00
|
|
|
|
2020-09-04 10:57:05 -07:00
|
|
|
#include "HALSimWS.h"
|
2020-08-20 01:14:03 -04:00
|
|
|
|
2020-09-04 10:57:05 -07:00
|
|
|
namespace wpilibws {
|
2020-08-20 01:14:03 -04:00
|
|
|
|
2020-09-04 10:57:05 -07:00
|
|
|
class HALSimWSClient {
|
2020-08-20 01:14:03 -04:00
|
|
|
public:
|
2020-09-04 10:57:05 -07:00
|
|
|
HALSimWSClient() = default;
|
|
|
|
|
HALSimWSClient(const HALSimWSClient&) = delete;
|
|
|
|
|
HALSimWSClient& operator=(const HALSimWSClient&) = delete;
|
2020-08-20 01:14:03 -04:00
|
|
|
|
|
|
|
|
bool Initialize();
|
|
|
|
|
|
2020-09-04 10:57:05 -07:00
|
|
|
ProviderContainer providers;
|
|
|
|
|
HALSimWSProviderSimDevices simDevices{providers};
|
|
|
|
|
wpi::EventLoopRunner runner;
|
|
|
|
|
std::shared_ptr<HALSimWS> simws;
|
2020-08-20 01:14:03 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace wpilibws
|