[json] Add forward definition header (#5676)

This commit is contained in:
PJ Reiniger
2023-09-22 16:01:27 -04:00
committed by GitHub
parent eab44534c3
commit dd5612fbee
32 changed files with 47 additions and 96 deletions

View File

@@ -8,15 +8,12 @@
#include <span>
#include <wpi/SymbolExports.h>
#include <wpi/json_fwd.h>
#include "frc/geometry/Transform2d.h"
#include "frc/geometry/Translation2d.h"
#include "frc/geometry/Twist2d.h"
namespace wpi {
class json;
} // namespace wpi
namespace frc {
/**

View File

@@ -5,16 +5,13 @@
#pragma once
#include <wpi/SymbolExports.h>
#include <wpi/json_fwd.h>
#include "frc/geometry/Pose2d.h"
#include "frc/geometry/Transform3d.h"
#include "frc/geometry/Translation3d.h"
#include "frc/geometry/Twist3d.h"
namespace wpi {
class json;
} // namespace wpi
namespace frc {
/**

View File

@@ -6,10 +6,7 @@
#include <Eigen/Core>
#include <wpi/SymbolExports.h>
namespace wpi {
class json;
} // namespace wpi
#include <wpi/json_fwd.h>
namespace frc {

View File

@@ -5,13 +5,10 @@
#pragma once
#include <wpi/SymbolExports.h>
#include <wpi/json_fwd.h>
#include "units/angle.h"
namespace wpi {
class json;
} // namespace wpi
namespace frc {
/**

View File

@@ -6,15 +6,12 @@
#include <Eigen/Core>
#include <wpi/SymbolExports.h>
#include <wpi/json_fwd.h>
#include "frc/geometry/Quaternion.h"
#include "frc/geometry/Rotation2d.h"
#include "units/angle.h"
namespace wpi {
class json;
} // namespace wpi
namespace frc {
/**

View File

@@ -8,14 +8,11 @@
#include <span>
#include <wpi/SymbolExports.h>
#include <wpi/json_fwd.h>
#include "frc/geometry/Rotation2d.h"
#include "units/length.h"
namespace wpi {
class json;
} // namespace wpi
namespace frc {
/**

View File

@@ -5,15 +5,12 @@
#pragma once
#include <wpi/SymbolExports.h>
#include <wpi/json_fwd.h>
#include "frc/geometry/Rotation3d.h"
#include "frc/geometry/Translation2d.h"
#include "units/length.h"
namespace wpi {
class json;
} // namespace wpi
namespace frc {
/**

View File

@@ -7,6 +7,7 @@
#include <vector>
#include <wpi/SymbolExports.h>
#include <wpi/json_fwd.h>
#include "frc/geometry/Pose2d.h"
#include "frc/geometry/Transform2d.h"
@@ -15,10 +16,6 @@
#include "units/time.h"
#include "units/velocity.h"
namespace wpi {
class json;
} // namespace wpi
namespace frc {
/**
* Represents a time-parameterized trajectory. The trajectory contains of