Added Include Guards
This commit is contained in:
@ -1,11 +1,16 @@
|
|||||||
|
#ifndef DATABASE_CPP
|
||||||
|
#define DATABASE_CPP
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <map>
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <pqxx/pqxx>
|
#include <pqxx/pqxx>
|
||||||
#include <pqxx/except>
|
#include <pqxx/except>
|
||||||
|
|
||||||
#include "crow.h"
|
#include "crow.h"
|
||||||
|
|
||||||
#include "databaseStatementConstCollection.cpp"
|
#include "databaseStatementConstCollection.cpp"
|
||||||
|
|
||||||
using namespace DatabaseStatementConstCollection;
|
using namespace DatabaseStatementConstCollection;
|
||||||
@ -510,3 +515,4 @@ namespace Database {
|
|||||||
return returnJson;
|
return returnJson;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef DATABASE_STATEMENT_CONST_COLLECTION_CPP
|
||||||
|
#define DATABASE_STATEMENT_CONST_COLLECTION_CPP
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <map>
|
#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;";
|
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>
|
#include <string>
|
||||||
|
|
||||||
namespace EmailTemplateCollection {
|
namespace EmailTemplateCollection {
|
||||||
@ -16,3 +19,4 @@ namespace EmailTemplateCollection {
|
|||||||
return emailContent;
|
return emailContent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef UTILITIES_CPP
|
||||||
|
#define UTILITIES_CPP
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
@ -6,11 +9,16 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <pqxx/pqxx>
|
#include <chrono>
|
||||||
|
#include <thread>
|
||||||
|
|
||||||
#include <openssl/sha.h>
|
#include <openssl/sha.h>
|
||||||
|
#include <pqxx/pqxx>
|
||||||
#include "crow.h"
|
#include "crow.h"
|
||||||
|
#include "crow/middlewares/cookie_parser.h"
|
||||||
#include "cpp/opportunisticsecuresmtpclient.hpp"
|
#include "cpp/opportunisticsecuresmtpclient.hpp"
|
||||||
#include "cpp/htmlmessage.hpp"
|
#include "cpp/htmlmessage.hpp"
|
||||||
|
|
||||||
#include "emailTemplateCollection.cpp"
|
#include "emailTemplateCollection.cpp"
|
||||||
|
|
||||||
using namespace jed_utils::cpp;
|
using namespace jed_utils::cpp;
|
||||||
|
Reference in New Issue
Block a user