mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpiutil] Split C++ header files
This commit is contained in:
@@ -10,7 +10,8 @@
|
||||
#include "Handle.hpp"
|
||||
#include "Instance.hpp"
|
||||
#include "Notifier.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
#include "wpi/util/string.hpp"
|
||||
#include "wpi/util/timestamp.hpp"
|
||||
|
||||
using namespace wpi::cs;
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "wpi/cs/cscore_c.h"
|
||||
#include "wpi/util/Synchronization.h"
|
||||
#include "wpi/util/Synchronization.hpp"
|
||||
|
||||
namespace wpi::cs {
|
||||
|
||||
@@ -27,8 +27,8 @@ class Handle {
|
||||
};
|
||||
enum { kIndexMax = 0xffff };
|
||||
|
||||
Handle(CS_Handle handle) : m_handle(handle) {} // NOLINT
|
||||
operator CS_Handle() const { return m_handle; }
|
||||
Handle(CS_Handle handle) : m_handle(handle) {} // NOLINT
|
||||
operator CS_Handle() const { return m_handle; } // NOLINT
|
||||
|
||||
Handle(int index, Type type) {
|
||||
if (index < 0) {
|
||||
|
||||
@@ -18,9 +18,9 @@
|
||||
#include "Telemetry.hpp"
|
||||
#include "c_util.hpp"
|
||||
#include "wpi/net/TCPConnector.h"
|
||||
#include "wpi/util/MemAlloc.hpp"
|
||||
#include "wpi/util/StringExtras.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
#include "wpi/util/string.hpp"
|
||||
#include "wpi/util/timestamp.hpp"
|
||||
|
||||
using namespace wpi::cs;
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "wpi/util/SmallString.hpp"
|
||||
#include "wpi/util/StringExtras.hpp"
|
||||
#include "wpi/util/fmt/raw_ostream.hpp"
|
||||
#include "wpi/util/print.hpp"
|
||||
#include "wpi/util/string.hpp"
|
||||
|
||||
using namespace wpi::cs;
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "Instance.hpp"
|
||||
#include "wpi/cs/cscore_raw.h"
|
||||
#include "wpi/util/string.hpp"
|
||||
|
||||
using namespace wpi::cs;
|
||||
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
#include "Instance.hpp"
|
||||
#include "Notifier.hpp"
|
||||
#include "wpi/cs/cscore_raw.h"
|
||||
#include "wpi/util/timestamp.h"
|
||||
#include "wpi/util/string.hpp"
|
||||
#include "wpi/util/timestamp.hpp"
|
||||
|
||||
using namespace wpi::cs;
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "c_util.hpp"
|
||||
#include "wpi/util/SmallString.hpp"
|
||||
#include "wpi/util/json.hpp"
|
||||
#include "wpi/util/string.hpp"
|
||||
|
||||
using namespace wpi::cs;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "Telemetry.hpp"
|
||||
#include "wpi/util/StringExtras.hpp"
|
||||
#include "wpi/util/json.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
#include "wpi/util/timestamp.hpp"
|
||||
|
||||
using namespace wpi::cs;
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "c_util.hpp"
|
||||
#include "wpi/cs/cscore_cpp.hpp"
|
||||
#include "wpi/util/MemAlloc.hpp"
|
||||
#include "wpi/util/string.hpp"
|
||||
|
||||
using namespace wpi::cs;
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "wpi/cs/cscore_cpp.hpp"
|
||||
#include "wpi/util/MemAlloc.hpp"
|
||||
#include "wpi/util/SmallString.hpp"
|
||||
#include "wpi/util/string.hpp"
|
||||
|
||||
static CS_Event ConvertToC(const wpi::cs::RawEvent& rawEvent) {
|
||||
CS_Event event;
|
||||
|
||||
Reference in New Issue
Block a user