Create own module for datanodestore

This commit is contained in:
Sebastian Messmer 2014-12-13 17:48:02 +01:00
parent 9ccb583b4b
commit de5eb0fa81
14 changed files with 37 additions and 33 deletions

View File

@ -1,3 +1,5 @@
add_library(blobstore_onblocks BlobOnBlocks.cpp BlobStoreOnBlocks.cpp impl/DataNode.cpp impl/DataLeafNode.cpp impl/DataInnerNode.cpp impl/DataNodeStore.cpp) add_subdirectory(datanodestore)
target_link_libraries(blobstore_onblocks blockstore_interface) add_library(blobstore_onblocks BlobOnBlocks.cpp BlobStoreOnBlocks.cpp)
target_link_libraries(blobstore_onblocks blobstore_onblocks_datanodestore)

View File

@ -0,0 +1,3 @@
add_library(blobstore_onblocks_datanodestore DataInnerNode.cpp DataLeafNode.cpp DataNode.cpp DataNodeStore.cpp)
target_link_libraries(blobstore_onblocks_datanodestore blockstore_interface)

View File

@ -1,5 +1,5 @@
#include <blobstore/implementations/onblocks/impl/DataNodeStore.h> #include <blobstore/implementations/onblocks/datanodestore/DataInnerNode.h>
#include "DataInnerNode.h" #include <blobstore/implementations/onblocks/datanodestore/DataNodeStore.h>
using std::unique_ptr; using std::unique_ptr;

View File

@ -1,8 +1,8 @@
#pragma once #pragma once
#ifndef BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_IMPL_DATAINNERNODE_H_ #ifndef BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_DATANODESTORE_DATAINNERNODE_H_
#define BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_IMPL_DATAINNERNODE_H_ #define BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_DATANODESTORE_DATAINNERNODE_H_
#include "DataNode.h" #include <blobstore/implementations/onblocks/datanodestore/DataNode.h>
namespace blobstore { namespace blobstore {
namespace onblocks { namespace onblocks {

View File

@ -1,4 +1,4 @@
#include "DataLeafNode.h" #include <blobstore/implementations/onblocks/datanodestore/DataLeafNode.h>
using std::unique_ptr; using std::unique_ptr;
using blockstore::Block; using blockstore::Block;

View File

@ -1,8 +1,8 @@
#pragma once #pragma once
#ifndef BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_IMPL_DATALEAFNODE_H_ #ifndef BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_DATANODESTORE_DATALEAFNODE_H_
#define BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_IMPL_DATALEAFNODE_H_ #define BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_DATANODESTORE_DATALEAFNODE_H_
#include "DataNode.h" #include <blobstore/implementations/onblocks/datanodestore/DataNode.h>
namespace blobstore { namespace blobstore {
namespace onblocks { namespace onblocks {

View File

@ -1,8 +1,8 @@
#include <blobstore/implementations/onblocks/impl/DataNodeStore.h>
#include "DataNode.h"
#include "DataInnerNode.h" #include "DataInnerNode.h"
#include "DataLeafNode.h" #include <blobstore/implementations/onblocks/datanodestore/DataInnerNode.h>
#include <blobstore/implementations/onblocks/datanodestore/DataLeafNode.h>
#include <blobstore/implementations/onblocks/datanodestore/DataNode.h>
#include <blobstore/implementations/onblocks/datanodestore/DataNodeStore.h>
using blockstore::Block; using blockstore::Block;

View File

@ -1,9 +1,8 @@
#pragma once #pragma once
#ifndef BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_IMPL_DATANODE_H_ #ifndef BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_DATANODESTORE_DATANODE_H_
#define BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_IMPL_DATANODE_H_ #define BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_DATANODESTORE_DATANODE_H_
#include "DataNodeView.h"
#include <blobstore/implementations/onblocks/datanodestore/DataNodeView.h>
#include "blockstore/utils/Data.h" #include "blockstore/utils/Data.h"
namespace blobstore { namespace blobstore {

View File

@ -1,9 +1,9 @@
#include <blobstore/implementations/onblocks/impl/DataNodeStore.h> #include <blobstore/implementations/onblocks/datanodestore/DataInnerNode.h>
#include <blobstore/implementations/onblocks/datanodestore/DataLeafNode.h>
#include <blobstore/implementations/onblocks/datanodestore/DataNodeStore.h>
#include "blockstore/interface/BlockStore.h" #include "blockstore/interface/BlockStore.h"
#include "blockstore/interface/Block.h" #include "blockstore/interface/Block.h"
#include "DataLeafNode.h"
#include "DataInnerNode.h"
using blockstore::BlockStore; using blockstore::BlockStore;
using blockstore::Block; using blockstore::Block;

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#ifndef BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_IMPL_DATANODESTORE_H_ #ifndef BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_DATANODESTORE_DATANODESTORE_H_
#define BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_IMPL_DATANODESTORE_H_ #define BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_DATANODESTORE_DATANODESTORE_H_
#include <memory> #include <memory>
#include "fspp/utils/macros.h" #include "fspp/utils/macros.h"

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#ifndef BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_IMPL_DATANODEVIEW_H_ #ifndef BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_DATANODESTORE_DATANODEVIEW_H_
#define BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_IMPL_DATANODEVIEW_H_ #define BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_DATANODESTORE_DATANODEVIEW_H_
#include "blockstore/interface/Block.h" #include "blockstore/interface/Block.h"
#include "blobstore/implementations/onblocks/BlobStoreOnBlocks.h" #include "blobstore/implementations/onblocks/BlobStoreOnBlocks.h"

View File

@ -1,10 +1,10 @@
#include <blobstore/implementations/onblocks/impl/DataNodeStore.h> #include <blobstore/implementations/onblocks/datanodestore/DataLeafNode.h>
#include <blobstore/implementations/onblocks/datanodestore/DataNodeStore.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "blockstore/implementations/testfake/FakeBlockStore.h" #include "blockstore/implementations/testfake/FakeBlockStore.h"
#include "blockstore/implementations/testfake/FakeBlock.h" #include "blockstore/implementations/testfake/FakeBlock.h"
#include "blobstore/implementations/onblocks/BlobStoreOnBlocks.h" #include "blobstore/implementations/onblocks/BlobStoreOnBlocks.h"
#include "blobstore/implementations/onblocks/impl/DataLeafNode.h"
#include "test/testutils/DataBlockFixture.h" #include "test/testutils/DataBlockFixture.h"
using ::testing::Test; using ::testing::Test;

View File

@ -1,12 +1,12 @@
#include <blobstore/implementations/onblocks/impl/DataNodeStore.h> #include <blobstore/implementations/onblocks/datanodestore/DataInnerNode.h>
#include <blobstore/implementations/onblocks/datanodestore/DataLeafNode.h>
#include <blobstore/implementations/onblocks/datanodestore/DataNode.h>
#include <blobstore/implementations/onblocks/datanodestore/DataNodeStore.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "blockstore/implementations/testfake/FakeBlockStore.h" #include "blockstore/implementations/testfake/FakeBlockStore.h"
#include "blockstore/implementations/testfake/FakeBlock.h" #include "blockstore/implementations/testfake/FakeBlock.h"
#include "blobstore/implementations/onblocks/BlobStoreOnBlocks.h" #include "blobstore/implementations/onblocks/BlobStoreOnBlocks.h"
#include "blobstore/implementations/onblocks/impl/DataNode.h"
#include "blobstore/implementations/onblocks/impl/DataLeafNode.h"
#include "blobstore/implementations/onblocks/impl/DataInnerNode.h"
using ::testing::Test; using ::testing::Test;
using std::unique_ptr; using std::unique_ptr;

View File

@ -1,9 +1,9 @@
#include <blobstore/implementations/onblocks/datanodestore/DataNodeView.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "blockstore/implementations/testfake/FakeBlockStore.h" #include "blockstore/implementations/testfake/FakeBlockStore.h"
#include "blockstore/implementations/testfake/FakeBlock.h" #include "blockstore/implementations/testfake/FakeBlock.h"
#include "blobstore/implementations/onblocks/BlobStoreOnBlocks.h" #include "blobstore/implementations/onblocks/BlobStoreOnBlocks.h"
#include "blobstore/implementations/onblocks/impl/DataNodeView.h"
#include "test/testutils/DataBlockFixture.h" #include "test/testutils/DataBlockFixture.h"
using ::testing::Test; using ::testing::Test;