mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Remove boost::filesystem include from header
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||||
#include <boost/algorithm/string.hpp>
|
#include <boost/algorithm/string.hpp>
|
||||||
|
#include <boost/filesystem.hpp>
|
||||||
|
|
||||||
#include "../websocketpp/src/logger/logger.hpp"
|
#include "../websocketpp/src/logger/logger.hpp"
|
||||||
|
|
||||||
@@ -171,7 +172,7 @@ LogSeverity Log::stringToSeverity(const std::string& s)
|
|||||||
return lsINVALID;
|
return lsINVALID;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Log::setLogFile(boost::filesystem::path path)
|
void Log::setLogFile(boost::filesystem::path const& path)
|
||||||
{
|
{
|
||||||
std::ofstream* newStream = new std::ofstream(path.c_str(), std::fstream::app);
|
std::ofstream* newStream = new std::ofstream(path.c_str(), std::fstream::app);
|
||||||
if (!newStream->good())
|
if (!newStream->good())
|
||||||
|
|||||||
@@ -6,7 +6,13 @@
|
|||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
#include <boost/thread/recursive_mutex.hpp>
|
#include <boost/thread/recursive_mutex.hpp>
|
||||||
#include <boost/filesystem.hpp>
|
|
||||||
|
// Forward declaration
|
||||||
|
namespace boost {
|
||||||
|
namespace filesystem {
|
||||||
|
class path;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Ensure that we don't get value.h without writer.h
|
// Ensure that we don't get value.h without writer.h
|
||||||
#include "../json/json.h"
|
#include "../json/json.h"
|
||||||
@@ -100,7 +106,7 @@ public:
|
|||||||
|
|
||||||
static LogSeverity getMinSeverity();
|
static LogSeverity getMinSeverity();
|
||||||
static void setMinSeverity(LogSeverity, bool all);
|
static void setMinSeverity(LogSeverity, bool all);
|
||||||
static void setLogFile(boost::filesystem::path);
|
static void setLogFile(boost::filesystem::path const&);
|
||||||
static std::string rotateLog(void);
|
static std::string rotateLog(void);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user