correct order of #includes to include own libs first and then system ones

This commit is contained in:
lukas 2020-05-05 19:25:23 +02:00
parent 8659237ece
commit aef369b38b
9 changed files with 24 additions and 26 deletions

View File

@ -4,9 +4,9 @@
#pragma once #pragma once
#include "Hashmap.h"
#include <string> #include <string>
#include "Hashmap.h"
class API { class API {
public: public:

View File

@ -4,9 +4,10 @@
#pragma once #pragma once
#include <string>
#include "API.h" #include "API.h"
#include <string>
class IPAPI : API{ class IPAPI : API{
public: public:
/** /**

View File

@ -4,9 +4,9 @@
#pragma once #pragma once
#include "API.h"
#include <string> #include <string>
#include "API.h"
class TelegramAPI : API { class TelegramAPI : API {
public: public:

View File

@ -2,14 +2,14 @@
// Created by lukas on 11.02.20. // Created by lukas on 11.02.20.
// //
#include <Config.h> #include "Config.h"
#include <Logger.h> #include "Logger.h"
#include "Version.h"
#include <iostream> #include <iostream>
#include <cstring> #include <cstring>
#include <fstream> #include <fstream>
#include <libconfig.h++> #include <libconfig.h++>
#include <Version.h>
std::string Config::dynuapikey; std::string Config::dynuapikey;
std::string Config::domainid; //id of the dynu domain std::string Config::domainid; //id of the dynu domain

View File

@ -2,12 +2,12 @@
// Created by lukas on 05.05.19. // Created by lukas on 05.05.19.
// //
#include "FileLogger.h"
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>
#include <climits> #include <climits>
#include "FileLogger.h"
void FileLogger::safeip(std::string ip) { void FileLogger::safeip(std::string ip) {
std::ofstream out; std::ofstream out;
out.open("ip.txt", std::ios::out); out.open("ip.txt", std::ios::out);

View File

@ -2,20 +2,18 @@
// Created by lukas on 02.08.19. // Created by lukas on 02.08.19.
// //
#include "IPRefresher.h"
#include "FileLogger.h"
#include "api/IPAPI.h"
#include "api/DynuAPI.h"
#include "api/TelegramAPI.h"
#include "Config.h"
#include "Version.h"
#include <string> #include <string>
#include <FileLogger.h>
#include <api/IPAPI.h>
#include <api/DynuAPI.h>
#include <api/TelegramAPI.h>
#include <chrono> #include <chrono>
#include <thread> #include <thread>
#include <Logger.h> #include <Logger.h>
#include <IPRefresher.h>
#include <Config.h>
#include <Version.h>
#include <climits> #include <climits>
void IPRefresher::checkIPAdress(bool force) { void IPRefresher::checkIPAdress(bool force) {

View File

@ -2,11 +2,11 @@
// Created by lukas on 26.10.19. // Created by lukas on 26.10.19.
// //
#include "Logger.h"
#include <sstream> #include <sstream>
#include <iostream> #include <iostream>
#include "Logger.h"
void Logger::debug(const std::string message) { void Logger::debug(const std::string message) {
log(message, Logger::Debug); log(message, Logger::Debug);
} }

View File

@ -7,7 +7,6 @@
#include <sstream> #include <sstream>
#include <curl/curl.h> #include <curl/curl.h>
std::string API::request(std::string myurl) { std::string API::request(std::string myurl) {
Hashmap<std::string, std::string> map; Hashmap<std::string, std::string> map;
std::vector<std::string> str; std::vector<std::string> str;

View File

@ -2,13 +2,13 @@
// Created by lukas on 18.06.19. // Created by lukas on 18.06.19.
// //
#include <Version.h> #include "Version.h"
#include <IPRefresher.h> #include "IPRefresher.h"
#include <Logger.h> #include "Logger.h"
#include <Config.h> #include "Config.h"
#include "api/IPAPI.h"
#include <iostream> #include <iostream>
#include <api/IPAPI.h>
/** /**
* application entry point * application entry point