Browse Source

use common header for fs

master
Jørgen Sverre Lien Sellæg 5 years ago
parent
commit
e17cd4b188
  1. 4
      include/config.hpp
  2. 4
      include/data.hpp
  3. 3
      include/fs.hpp

4
include/config.hpp

@ -1,9 +1,7 @@
#pragma once #pragma once
#include <experimental/filesystem> #include <fs.hpp>
#include <json.hpp> #include <json.hpp>
namespace fs = std::experimental::filesystem;
class config : public json { class config : public json {
static fs::path &get_config_path(); static fs::path &get_config_path();
void create_config_directory(); void create_config_directory();

4
include/data.hpp

@ -1,9 +1,7 @@
#pragma once #pragma once
#include <experimental/filesystem> #include <fs.hpp>
#include <json.hpp> #include <json.hpp>
namespace fs = std::experimental::filesystem;
class with_data_directory { class with_data_directory {
void create_data_directory(); void create_data_directory();

3
include/fs.hpp

@ -0,0 +1,3 @@
#pragma once
#include <experimental/filesystem>
namespace fs = std::experimental::filesystem;
Loading…
Cancel
Save