Skip to content

Commit

Permalink
fixed includes
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReimold committed Apr 15, 2024
1 parent 96e7adc commit 32e64e9
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 19 deletions.
6 changes: 4 additions & 2 deletions samples/ecaludp_perftool/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

#include <array>
#include <algorithm>
#include <chrono>
#include <cstddef>
#include <iostream>
#include <memory>
#include <string>

#include <asio.hpp> // IWYU pragma: keep
#include <thread>
#include <vector>

#include "sender_sync.h"
#include "receiver_sync.h"
Expand Down
10 changes: 8 additions & 2 deletions samples/ecaludp_perftool/src/receiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@

#include "receiver.h"

#include <sstream>
#include <iostream>
#include <chrono>
#include <iomanip>
#include <iostream>
#include <memory>
#include <mutex>
#include <sstream>
#include <string>
#include <thread>
#include <utility>

Receiver::Receiver(int buffer_size)
: buffer_size_(buffer_size)
Expand Down
4 changes: 2 additions & 2 deletions samples/ecaludp_perftool/src/receiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <thread>
#include <memory>
#include <mutex>

#include <condition_variable>

class Receiver
{
Expand Down Expand Up @@ -48,4 +48,4 @@ class Receiver

private:
std::unique_ptr<std::thread> statistics_thread_;
};
};
8 changes: 7 additions & 1 deletion samples/ecaludp_perftool/src/receiver_sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@
********************************************************************************/

#include "receiver_sync.h"
#include "ecaludp/socket.h"
#include "receiver.h"

#include <iostream>
#include <string>
#include <memory>
#include <mutex>

#include <asio.hpp>
#include <thread>

ReceiverSync::ReceiverSync(int buffer_size)
: Receiver(buffer_size)
Expand Down
3 changes: 0 additions & 3 deletions samples/ecaludp_perftool/src/receiver_sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
#include <memory>
#include <thread>

#include <asio.hpp>
#include <ecaludp/socket.h>

class ReceiverSync : public Receiver
{
public:
Expand Down
11 changes: 9 additions & 2 deletions samples/ecaludp_perftool/src/sender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@

#include "sender.h"

#include <sstream>
#include <iostream>
#include <chrono>
#include <cstddef>
#include <iomanip>
#include <iostream>
#include <memory>
#include <mutex>
#include <sstream>
#include <string>
#include <thread>
#include <utility>

Sender::Sender(size_t message_size, size_t max_udp_datagram_size, int buffer_size)
: message_size_ {message_size}
Expand Down
10 changes: 6 additions & 4 deletions samples/ecaludp_perftool/src/sender.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@

#pragma once

#include <thread>
#include <condition_variable>
#include <cstddef>
#include <cstdint>
#include <memory>
#include <mutex>

#include <atomic>
#include <string>
#include <thread>

class Sender
{
Expand Down Expand Up @@ -54,4 +56,4 @@ class Sender

private:
std::unique_ptr<std::thread> statistics_thread_;
};
};
8 changes: 8 additions & 0 deletions samples/ecaludp_perftool/src/sender_sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,18 @@
********************************************************************************/

#include "sender_sync.h"
#include "ecaludp/socket.h"
#include "sender.h"

#include <cstddef>
#include <iostream>
#include <memory>
#include <mutex>
#include <string>

#include <asio.hpp>
#include <thread>

SenderSync::SenderSync(size_t message_size, size_t max_udp_datagram_size, int buffer_size)
: Sender(message_size, max_udp_datagram_size, buffer_size)
{
Expand Down
4 changes: 1 addition & 3 deletions samples/ecaludp_perftool/src/sender_sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@

#include "sender.h"

#include <cstddef>
#include <memory>
#include <thread>

#include <asio.hpp>
#include <ecaludp/socket.h>

class SenderSync : public Sender
{
public:
Expand Down

0 comments on commit 32e64e9

Please sign in to comment.