DataDirectories header should be shared between platform-specific implementations

This commit is contained in:
walker0643 2018-03-29 15:50:23 -04:00
parent 72cc7e3d89
commit c5e70af09a
2 changed files with 19 additions and 25 deletions

View File

@ -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;
};

View File

@ -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;
};