Skip to content

Commit

Permalink
Fix users of VRS library that depend on <iostream> to be included by VRS
Browse files Browse the repository at this point in the history
Summary: `vrs/Recordable.h` includes <iostream>, which we're fixing in the next diff. This diff fixes code that depends on VRS to make that include, nothing more.

Reviewed By: aforster

Differential Revision: D52765568

fbshipit-source-id: 6a996c166662038e70109ab355ec4019e0d8622f
  • Loading branch information
Georges Berenger authored and facebook-github-bot committed Jan 16, 2024
1 parent 2b78347 commit 627fcb0
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 4 deletions.
5 changes: 3 additions & 2 deletions projects/AriaPilotDatasetTools/PilotDataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

#include "PilotDataset.h"

#include <filesystem>
#include <iostream>

#include "AriaStreamIds.h"
#include "utils.h"

Expand All @@ -24,8 +27,6 @@
#endif
#include "fast-cpp-csv-parser/csv.h"

#include <filesystem>

namespace {
constexpr const char* kTrajectoryPathSuffix = "location/trajectory.csv";
constexpr const char* kEyetrackingPathSuffix = "eyetracking/et_in_rgb_stream.csv";
Expand Down
2 changes: 2 additions & 0 deletions projects/AriaPilotDatasetTools/viewer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@

#include <chrono>
#include <filesystem>
#include <iostream>
#include <string>
#include <thread>

#include "AriaStreamIds.h"
#include "PilotDatasetViewer.h"
#include "utils.h"
Expand Down
5 changes: 4 additions & 1 deletion src/data_provider/AriaVrsDataProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@
*/

#include "AriaVrsDataProvider.h"
#include "AriaStreamIds.h"

#include <iostream>

#include <fmt/core.h>
#include <fmt/ostream.h>

#include "AriaStreamIds.h"

namespace {

void printDataLayout(const vrs::CurrentRecord& r, vrs::DataLayout& dataLayout) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
*/

#include <cassert>

#include <cstdio>

#include <iostream>

#include <vrs/ErrorCode.h>
#include <vrs/RecordFileReader.h>
#include <vrs/RecordFormatStreamPlayer.h>
Expand Down
2 changes: 2 additions & 0 deletions src/data_provider/mps_visualization/main_eyegaze.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
*/

#include <chrono>
#include <iostream>
#include <string>
#include <thread>

#include "AriaStreamIds.h"
#include "AriaViewer.h"

Expand Down
1 change: 1 addition & 0 deletions src/experimental/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

#include <cstdlib>
#include <iostream>
#include <string>

#include <fmt/core.h>
Expand Down
1 change: 1 addition & 0 deletions src/sensors/utility/VrsUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include <filesystem>
#include <fstream>
#include <iostream>
#include <sstream>

namespace ark::datatools::sensors {
Expand Down
2 changes: 2 additions & 0 deletions src/visualization/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@

#include <chrono>
#include <filesystem>
#include <iostream>
#include <string>
#include <thread>

#include "AriaStreamIds.h"
#include "AriaViewer.h"
#include "utils.h"
Expand Down
2 changes: 2 additions & 0 deletions src/visualization/main_multi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@

#include <chrono>
#include <filesystem>
#include <iostream>
#include <string>
#include <thread>

#include "AriaStreamIds.h"
#include "AriaViewer.h"
#include "utils.h"
Expand Down

0 comments on commit 627fcb0

Please sign in to comment.