Skip to content

Commit

Permalink
Cleanup imports
Browse files Browse the repository at this point in the history
  • Loading branch information
janekbaraniewski committed Apr 28, 2024
1 parent b57e4e5 commit f6c48e7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 44 deletions.
20 changes: 1 addition & 19 deletions include/client.h
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
#ifndef CLIENT_H
#define CLIENT_H

#include <iostream>
#include <array>
#include <fcntl.h>
#include <unistd.h>
#include <termios.h>

#include <boost/asio.hpp>
#include <boost/program_options.hpp>
#include <boost/log/core.hpp>
#include <boost/log/trivial.hpp>
#include <boost/log/expressions.hpp>
#include <boost/log/utility/setup/file.hpp>
#include <boost/log/utility/setup/console.hpp>
#include <boost/log/utility/setup/common_attributes.hpp>
#include <boost/log/sources/severity_logger.hpp>
#include <boost/log/sources/record_ostream.hpp>
#include <boost/log/support/date_time.hpp>

#include "logging.h"
#include "common.hpp"
#include "VirtualSerialPort.h"

using namespace boost::asio;
Expand Down
8 changes: 8 additions & 0 deletions include/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@
#define COMMON_HPP

#include <boost/asio.hpp>
#include <boost/array.hpp>
#include <boost/program_options.hpp>
#include <iostream>
#include <string>
#include <array>
#include <fcntl.h>
#include <unistd.h>
#include <termios.h>

#include "logging.h"

// Common utilities, logging, and error handling functions could be defined here

Expand Down
2 changes: 1 addition & 1 deletion include/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <boost/log/utility/setup/common_attributes.hpp>
#include <boost/log/sources/severity_logger.hpp>
#include <boost/log/sources/record_ostream.hpp>
#include <boost/log/support/date_time.hpp> // Ensure this is included for date-time support
#include <boost/log/support/date_time.hpp>

// Namespace aliases
namespace logging = boost::log;
Expand Down
25 changes: 1 addition & 24 deletions include/server.h
Original file line number Diff line number Diff line change
@@ -1,30 +1,7 @@
#ifndef SERVER_H
#define SERVER_H

#include <boost/asio.hpp>
#include <string>
#include "ISerialPort.h"

#include <iostream>
#include <string>
#include <fcntl.h>
#include <unistd.h>
#include <termios.h>

#include <boost/asio.hpp>
#include <boost/array.hpp>
#include <boost/program_options.hpp>
#include <boost/log/core.hpp>
#include <boost/log/trivial.hpp>
#include <boost/log/expressions.hpp>
#include <boost/log/utility/setup/file.hpp>
#include <boost/log/utility/setup/console.hpp>
#include <boost/log/utility/setup/common_attributes.hpp>
#include <boost/log/sources/severity_logger.hpp>
#include <boost/log/sources/record_ostream.hpp>
#include <boost/log/support/date_time.hpp>

#include "logging.h"
#include "common.hpp"
#include "ISerialPort.h"
#include "RealSerialPort.h"

Expand Down

0 comments on commit f6c48e7

Please sign in to comment.