Ver Fonte

Fix Include order

JDierkse há 5 anos atrás
pai
commit
7e3b008d5c

+ 1 - 2
Network/BroadcastClient.cpp

@@ -1,5 +1,5 @@
-#include "BroadcastClientImpl.h"
 #include "BroadcastClient.h"
+#include "BroadcastClientImpl.h"
 
 
 namespace Network {
@@ -27,4 +27,3 @@ void BroadcastClient::Broadcast(const std::string& data, int sourcePort)
 }
 
 } // namespace Network
-

+ 1 - 1
Network/BroadcastClientImpl.h

@@ -1,9 +1,9 @@
 #ifndef NETWORK_BROADCASTCLIENTIMPL_H
 #define NETWORK_BROADCASTCLIENTIMPL_H
 
+#include "UdpClientImpl.h"
 #include <functional>
 #include <string>
-#include "UdpClientImpl.h"
 
 
 namespace Network {

+ 1 - 2
Network/BroadcastServer.cpp

@@ -1,5 +1,5 @@
-#include "BroadcastServerImpl.h"
 #include "BroadcastServer.h"
+#include "BroadcastServerImpl.h"
 
 
 namespace Network {
@@ -27,4 +27,3 @@ void BroadcastServer::Broadcast(const std::string& data, int sourcePort)
 }
 
 } // namespace Network
-

+ 1 - 1
Network/BroadcastServerImpl.h

@@ -1,9 +1,9 @@
 #ifndef NETWORK_BROADCASTSERVER_IMPL_H
 #define NETWORK_BROADCASTSERVER_IMPL_H
 
+#include "UdpClientImpl.h"
 #include <functional>
 #include <string>
-#include "UdpClientImpl.h"
 
 
 namespace Network {

+ 1 - 2
Network/IcmpClient.cpp

@@ -1,5 +1,5 @@
-#include "IcmpClientImpl.h"
 #include "IcmpClient.h"
+#include "IcmpClientImpl.h"
 
 
 namespace Network {
@@ -17,4 +17,3 @@ bool IcmpClient::Ping(const std::string& targetAddress)
 }
 
 } // namespace Network
-

+ 1 - 1
Network/IcmpClientImpl.cpp

@@ -1,5 +1,5 @@
-#include <chrono>
 #include "IcmpClientImpl.h"
+#include <chrono>
 
 
 namespace Network {

+ 3 - 3
Network/IcmpClientImpl.h

@@ -1,15 +1,15 @@
 #ifndef NETWORK_ICMPCLIENTIMPL_H
 #define NETWORK_ICMPCLIENTIMPL_H
 
+#include "Ipv4Header.h"
+#include "IcmpHeader.h"
+#include "asio.hpp"
 #include <condition_variable>
 #include <functional>
 #include <mutex>
 #include <string>
 #include <thread>
 #include <vector>
-#include "asio.hpp"
-#include "Ipv4Header.h"
-#include "IcmpHeader.h"
 
 
 namespace Network {

+ 1 - 1
Network/IcmpHeader.h

@@ -1,8 +1,8 @@
 #ifndef ICMPHEADER_H
 #define ICMPHEADER_H
 
-#include <istream>
 #include "asio.hpp"
+#include <istream>
 
 
 namespace Network {

+ 1 - 1
Network/Ipv4Header.h

@@ -1,8 +1,8 @@
 #ifndef IPV4HEADER_H
 #define IPV4HEADER_H
 
-#include <istream>
 #include "asio.hpp"
+#include <istream>
 
 
 namespace Network {

+ 1 - 2
Network/MulticastClient.cpp

@@ -1,5 +1,5 @@
-#include "MulticastClientImpl.h"
 #include "MulticastClient.h"
+#include "MulticastClientImpl.h"
 
 
 namespace Network {
@@ -27,4 +27,3 @@ void MulticastClient::Broadcast(const std::string& data, int sourcePort)
 }
 
 } // namespace Network
-

+ 1 - 1
Network/MulticastClientImpl.h

@@ -1,9 +1,9 @@
 #ifndef NETWORK_MULTICASTCLIENTIMPL_H
 #define NETWORK_MULTICASTCLIENTIMPL_H
 
+#include "UdpClientImpl.h"
 #include <functional>
 #include <string>
-#include "UdpClientImpl.h"
 
 
 namespace Network {

+ 1 - 2
Network/UdpClient.cpp

@@ -1,5 +1,5 @@
-#include "UdpClientImpl.h"
 #include "UdpClient.h"
+#include "UdpClientImpl.h"
 
 
 namespace Network {
@@ -27,4 +27,3 @@ void UdpClient::Broadcast(const std::string& data, int sourcePort)
 }
 
 } // namespace Network
-

+ 1 - 1
Network/UdpClientImpl.cpp

@@ -1,5 +1,5 @@
-#include "Logging.h"
 #include "UdpClientImpl.h"
+#include "Logging.h"
 
 
 namespace Network {

+ 1 - 1
Network/UdpClientImpl.h

@@ -1,11 +1,11 @@
 #ifndef NETWORK_UDPCLIENTIMPL_H
 #define NETWORK_UDPCLIENTIMPL_H
 
+#include "asio.hpp"
 #include <functional>
 #include <string>
 #include <thread>
 #include <vector>
-#include "asio.hpp"
 
 
 namespace Network {

+ 1 - 2
include/UdpClient.h

@@ -8,7 +8,7 @@
 
 namespace Network {
 
-class m_pUdpClientImpl;
+class UdpClientImpl;
 
 class UdpClient
 {
@@ -29,4 +29,3 @@ private:
 } // namespace Network
 
 #endif // UDPCLIENT_H
-