Started on file system.
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
build
|
build
|
||||||
|
tags
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
|
|||||||
include(address_sanitizer)
|
include(address_sanitizer)
|
||||||
|
|
||||||
add_definitions(
|
add_definitions(
|
||||||
-std=c++11
|
-std=c++14
|
||||||
-Wall
|
-Wall
|
||||||
-Wsign-compare
|
-Wsign-compare
|
||||||
-nostdlib
|
-nostdlib
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 2.8.8)
|
|||||||
add_library(
|
add_library(
|
||||||
WFS
|
WFS
|
||||||
filestore.cpp
|
filestore.cpp
|
||||||
|
filesystem.cpp
|
||||||
_memops.cpp
|
_memops.cpp
|
||||||
_strops.cpp
|
_strops.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 {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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<typename FileStore>
|
||||||
|
class FileSystem {
|
||||||
|
|
||||||
|
private:
|
||||||
|
FileStore *store = nullptr;
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef FileSystem<FileStore16> FileSystem16;
|
||||||
|
typedef FileSystem<FileStore32> FileSystem32;
|
||||||
|
typedef FileSystem<FileStore64> FileSystem64;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user