Commit 9d7fad9b authored by louiz’'s avatar louiz’

Do all includes with <> instead of "". We just need to pass the -Isrc/ option...

Do all includes with <> instead of "". We just need to pass the -Isrc/ option to the compiler, or equivalent.
parent f7413b8a
#include "config.hpp" #include <config/config.hpp>
Config* Config::instance = 0; Config* Config::instance = 0;
......
#include "database.hpp" #include <database/database.hpp>
#include "../logging/logging.hpp" #include <logging/logging.hpp>
#include "../config/config.hpp" #include <config/config.hpp>
Database* Database::instance = 0; Database* Database::instance = 0;
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include <vector> #include <vector>
#include <map> #include <map>
#include "db_object.hpp" #include <database/db_object.hpp>
#ifndef __DATABASE_HPP__ #ifndef __DATABASE_HPP__
# define __DATABASE_HPP__ # define __DATABASE_HPP__
......
#include "db_object.hpp" #include <database/db_object.hpp>
#include "database.hpp" #include <database/database.hpp>
#include "../logging/logging.hpp" #include <logging/logging.hpp>
DbObject::DbObject() {} DbObject::DbObject() {}
......
#include "user.hpp" #include <database/user.hpp>
#include "database.hpp" #include <database/database.hpp>
#include "../logging/logging.hpp" #include <logging/logging.hpp>
User::User() {} User::User() {}
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include <vector> #include <vector>
#include "db_object.hpp" #include <database/db_object.hpp>
#ifndef __USER_HPP__ #ifndef __USER_HPP__
# define __USER_HPP__ # define __USER_HPP__
......
#include "game.hpp" #include <game/game.hpp>
#include "../logging/logging.hpp" #include <logging/logging.hpp>
#include <unistd.h> #include <unistd.h>
......
// The main class for the game itself // The main class for the game itself
// Network // Network
#include "client.hpp" #include <network/client.hpp>
#ifndef __GAME_HPP__ #ifndef __GAME_HPP__
# define __GAME_HPP__ # define __GAME_HPP__
......
#include "logging.hpp" #include <logging/logging.hpp>
Logger* Logger::instance = 0; Logger* Logger::instance = 0;
......
#include "../config/config.hpp" #include <config/config.hpp>
#include <iostream> #include <iostream>
......
#include "client.hpp" #include <network/client.hpp>
Client::Client() Client::Client()
{ {
......
#include "command_handler.hpp" #include <network/command_handler.hpp>
#include <boost/asio.hpp> #include <boost/asio.hpp>
#include <boost/function.hpp> #include <boost/function.hpp>
......
#include "command_handler.hpp" #include <network/command_handler.hpp>
CommandHandler::CommandHandler() CommandHandler::CommandHandler()
{ {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include <boost/asio.hpp> #include <boost/asio.hpp>
#include <boost/bind.hpp> #include <boost/bind.hpp>
#include "../logging/logging.hpp" #include <logging/logging.hpp>
#ifndef __COMMAND_HANDLER_HPP__ #ifndef __COMMAND_HANDLER_HPP__
# define __COMMAND_HANDLER_HPP__ # define __COMMAND_HANDLER_HPP__
......
#include <istream> #include <istream>
#include "server.hpp" #include <network/server.hpp>
#include "remote_client.hpp" #include <network/remote_client.hpp>
// main de test // main de test
int main(void) int main(void)
......
#include "remote_client.hpp" #include <network/remote_client.hpp>
int RemoteClient::clients_number = 0; int RemoteClient::clients_number = 0;
......
#include "command_handler.hpp" #include <network/command_handler.hpp>
#include <boost/asio.hpp> #include <boost/asio.hpp>
#include <boost/bind.hpp> #include <boost/bind.hpp>
......
#include <istream> #include <istream>
#include "server.hpp" #include <network/server.hpp>
#include "remote_client.hpp" #include <network/remote_client.hpp>
Server::Server(short port): Server::Server(short port):
port(port) port(port)
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include <boost/asio.hpp> #include <boost/asio.hpp>
#include <boost/bind.hpp> #include <boost/bind.hpp>
#include "remote_client.hpp" #include <network/remote_client.hpp>
#ifndef __SERVER_HPP__ #ifndef __SERVER_HPP__
# define __SERVER_HPP__ # define __SERVER_HPP__
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment