From e65aed8412d0c656b61f9585be1132b8f965cba2 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Tue, 15 Mar 2022 20:15:05 +0100 Subject: [PATCH] Last Update (partial) have to link every file in the right place --- config.txt | 5 +++++ Config.cpp => core/Config.cpp | 0 Config.hpp => core/Config.hpp | 0 main.cpp => core/main.cpp | 8 ++++---- Database.cpp => server/Database.cpp | 0 Database.hpp => server/Database.hpp | 0 Network.cpp => server/Network.cpp | 0 Network.hpp => server/Network.hpp | 0 social/Account.cpp | 5 +++++ social/Account.hpp | 17 +++++++++++++++++ 10 files changed, 31 insertions(+), 4 deletions(-) rename Config.cpp => core/Config.cpp (100%) rename Config.hpp => core/Config.hpp (100%) rename main.cpp => core/main.cpp (66%) rename Database.cpp => server/Database.cpp (100%) rename Database.hpp => server/Database.hpp (100%) rename Network.cpp => server/Network.cpp (100%) rename Network.hpp => server/Network.hpp (100%) create mode 100644 social/Account.cpp create mode 100644 social/Account.hpp diff --git a/config.txt b/config.txt index 90fbde1..45c25a1 100644 --- a/config.txt +++ b/config.txt @@ -2,3 +2,8 @@ ip: 127.0.0.1 port: 2142 conn_limit: 30 motd: welcome + +db_host: herisson.ovh +db_user: meuporg +db_pass: meuporg +db_name: akata diff --git a/Config.cpp b/core/Config.cpp similarity index 100% rename from Config.cpp rename to core/Config.cpp diff --git a/Config.hpp b/core/Config.hpp similarity index 100% rename from Config.hpp rename to core/Config.hpp diff --git a/main.cpp b/core/main.cpp similarity index 66% rename from main.cpp rename to core/main.cpp index e50f52d..a7028c7 100644 --- a/main.cpp +++ b/core/main.cpp @@ -6,12 +6,12 @@ int main( int carg, char* varg[] ){ -Config conf("config.txt"); + Config conf("config.txt"); -Database db; + Database db; -Network net; + Network net; -net.run(); + net.run(); } diff --git a/Database.cpp b/server/Database.cpp similarity index 100% rename from Database.cpp rename to server/Database.cpp diff --git a/Database.hpp b/server/Database.hpp similarity index 100% rename from Database.hpp rename to server/Database.hpp diff --git a/Network.cpp b/server/Network.cpp similarity index 100% rename from Network.cpp rename to server/Network.cpp diff --git a/Network.hpp b/server/Network.hpp similarity index 100% rename from Network.hpp rename to server/Network.hpp diff --git a/social/Account.cpp b/social/Account.cpp new file mode 100644 index 0000000..247a144 --- /dev/null +++ b/social/Account.cpp @@ -0,0 +1,5 @@ +#include "Account.hpp" + +Account::Account() { + +} diff --git a/social/Account.hpp b/social/Account.hpp new file mode 100644 index 0000000..116902c --- /dev/null +++ b/social/Account.hpp @@ -0,0 +1,17 @@ +#include +#include "Database.hpp" + +#ifndef ACCOUNT_H +#define ACCOUNT_H + +class Account +{ +private: + std::string name; + +public: + Account(); + virtual ~Account(); +}; + +#endif /* ACCOUNT_H */