2020-08-20 01:14:03 -04:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2020-09-04 10:57:05 -07:00
|
|
|
/* Copyright (c) 2017-2020 FIRST. All Rights Reserved. */
|
2020-08-20 01:14:03 -04:00
|
|
|
/* 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>
|
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
|