DataDirectories header should be shared between platform-specific implementations
This commit is contained in:
parent
72cc7e3d89
commit
c5e70af09a
|
@ -1,7 +1,21 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifdef _WIN32
|
#include <string>
|
||||||
#include "win32/DataDirectories.h"
|
|
||||||
#else
|
class DataDirectories
|
||||||
#include "unix/DataDirectories.h"
|
{
|
||||||
#endif
|
public:
|
||||||
|
static const std::string& personal();
|
||||||
|
static const std::string& personal(const std::string& path);
|
||||||
|
|
||||||
|
static const std::string& profile();
|
||||||
|
static const std::string& profile(const std::string& path);
|
||||||
|
|
||||||
|
private:
|
||||||
|
// static class
|
||||||
|
DataDirectories() {}
|
||||||
|
|
||||||
|
static std::string _personal;
|
||||||
|
static std::string _profile;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
class DataDirectories
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
static const std::string& personal();
|
|
||||||
static const std::string& personal(const std::string& path);
|
|
||||||
|
|
||||||
static const std::string& profile();
|
|
||||||
static const std::string& profile(const std::string& path);
|
|
||||||
|
|
||||||
private:
|
|
||||||
// static class
|
|
||||||
DataDirectories() {}
|
|
||||||
|
|
||||||
static std::string _personal;
|
|
||||||
static std::string _profile;
|
|
||||||
};
|
|
Loading…
Reference in New Issue