Added Include Guards
This commit is contained in:
@ -1,11 +1,16 @@
|
||||
#ifndef DATABASE_CPP
|
||||
#define DATABASE_CPP
|
||||
|
||||
#include <string>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
#include <pqxx/pqxx>
|
||||
#include <pqxx/except>
|
||||
|
||||
#include "crow.h"
|
||||
|
||||
#include "databaseStatementConstCollection.cpp"
|
||||
|
||||
using namespace DatabaseStatementConstCollection;
|
||||
@ -510,3 +515,4 @@ namespace Database {
|
||||
return returnJson;
|
||||
}
|
||||
}
|
||||
#endif
|
@ -1,3 +1,6 @@
|
||||
#ifndef DATABASE_STATEMENT_CONST_COLLECTION_CPP
|
||||
#define DATABASE_STATEMENT_CONST_COLLECTION_CPP
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
@ -233,3 +236,4 @@ namespace DatabaseStatementConstCollection {
|
||||
*/
|
||||
const static std::string SQL_Statement_SELECT_FREELANCERS_WITHCOMMISSIONSSTATE = "select id, name, basicInformation , (case when (commissionlimit <= (select count(*) as requestCount from requests where requests.accepted = true and requests.completed = false and requests.freelancerid = freelancers.id group by freelancers.id)) then 'Closed' else 'Open' end) as commissionsclosed from freelancers order by name;";
|
||||
}
|
||||
#endif
|
@ -1,3 +1,6 @@
|
||||
#ifndef EMAIL_TEMPLATE_COLLECTION_CPP
|
||||
#define EMAIL_TEMPLATE_COLLECTION_CPP
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace EmailTemplateCollection {
|
||||
@ -16,3 +19,4 @@ namespace EmailTemplateCollection {
|
||||
return emailContent;
|
||||
}
|
||||
}
|
||||
#endif
|
@ -1,3 +1,6 @@
|
||||
#ifndef UTILITIES_CPP
|
||||
#define UTILITIES_CPP
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
#include <iostream>
|
||||
@ -6,11 +9,16 @@
|
||||
#include <vector>
|
||||
#include <iomanip>
|
||||
#include <stdexcept>
|
||||
#include <pqxx/pqxx>
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
|
||||
#include <openssl/sha.h>
|
||||
#include <pqxx/pqxx>
|
||||
#include "crow.h"
|
||||
#include "crow/middlewares/cookie_parser.h"
|
||||
#include "cpp/opportunisticsecuresmtpclient.hpp"
|
||||
#include "cpp/htmlmessage.hpp"
|
||||
|
||||
#include "emailTemplateCollection.cpp"
|
||||
|
||||
using namespace jed_utils::cpp;
|
||||
|
Reference in New Issue
Block a user