From 0a88618345b6bf0079f6efeafa3d4681d2439996 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 9 Jun 2016 20:16:31 -0500 Subject: [PATCH] Started on file system. --- .gitignore | 1 + CMakeLists.txt | 2 +- src/CMakeLists.txt | 1 + src/filesystem.cpp | 14 ++++++++++++++ src/filesystem.hpp | 33 +++++++++++++++++++++++++++++++++ 5 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 src/filesystem.cpp create mode 100644 src/filesystem.hpp diff --git a/.gitignore b/.gitignore index 378eac25d..593c5e89f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ build +tags diff --git a/CMakeLists.txt b/CMakeLists.txt index 981e0acfc..c7443a2bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules) include(address_sanitizer) add_definitions( - -std=c++11 + -std=c++14 -Wall -Wsign-compare -nostdlib diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b7a03954d..fe5557d92 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 2.8.8) add_library( WFS filestore.cpp + filesystem.cpp _memops.cpp _strops.cpp ) diff --git a/src/filesystem.cpp b/src/filesystem.cpp new file mode 100644 index 000000000..c336991a8 --- /dev/null +++ b/src/filesystem.cpp @@ -0,0 +1,14 @@ +/* + * Copyright 2015 - 2016 gtalent2@gmail.com + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ +#include "filesystem.hpp" + +namespace wombat { +namespace fs { + +} +} diff --git a/src/filesystem.hpp b/src/filesystem.hpp new file mode 100644 index 000000000..947ede089 --- /dev/null +++ b/src/filesystem.hpp @@ -0,0 +1,33 @@ +/* + * Copyright 2015 - 2016 gtalent2@gmail.com + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ +#ifndef WOMBAT_FS_FILESYSTEM_HPP +#define WOMBAT_FS_FILESYSTEM_HPP + +#include "_memops.hpp" +#include "_strops.hpp" +#include "_types.hpp" +#include "filestore.hpp" + +namespace wombat { +namespace fs { + +template +class FileSystem { + + private: + FileStore *store = nullptr; +}; + +typedef FileSystem FileSystem16; +typedef FileSystem FileSystem32; +typedef FileSystem FileSystem64; + +} +} + +#endif