-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5286593
commit ef61e62
Showing
34 changed files
with
126 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
|
||
set(SourceFiles | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/defs.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/Frame.cpp | ||
) | ||
|
||
add_library(core STATIC ${SourceFiles}) | ||
target_include_directories(core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include) | ||
target_link_libraries(core PUBLIC fmt::fmt) | ||
set_property(TARGET core PROPERTY POSITION_INDEPENDENT_CODE ON) | ||
|
||
if(AARE_BUILD_TESTS) | ||
set(TestSources | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/defs.test.cpp | ||
) | ||
target_sources(tests PRIVATE ${TestSources} ) | ||
|
||
#Work around to remove, this is not the way to do it =) | ||
# target_include_directories(tests PRIVATE ${CMAKE_SOURCE_DIR}/include/common) | ||
target_link_libraries(tests PRIVATE core) | ||
|
||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include "core/Frame.hpp" | ||
#include "aare/Frame.hpp" | ||
#include <iostream> | ||
|
||
template <typename DataType> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
|
||
set(SourceFiles | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/File.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/FileFactory.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/helpers.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/JsonFile.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/JsonFileFactory.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/SubFile.cpp | ||
) | ||
|
||
add_library(file_io STATIC ${SourceFiles}) | ||
target_include_directories(file_io PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include) | ||
target_link_libraries(file_io PUBLIC fmt::fmt core nlohmann_json::nlohmann_json) | ||
set_property(TARGET file_io PROPERTY POSITION_INDEPENDENT_CODE ON) | ||
|
||
|
||
# if(AARE_BUILD_TESTS) | ||
# set(TestSources | ||
# ${CMAKE_CURRENT_SOURCE_DIR}/src/defs.test.cpp | ||
# ) | ||
# target_sources(tests PRIVATE ${TestSources} ) | ||
|
||
# #Work around to remove, this is not the way to do it =) | ||
# # target_include_directories(tests PRIVATE ${CMAKE_SOURCE_DIR}/include/common) | ||
# target_link_libraries(tests PRIVATE file_io) | ||
|
||
# endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
include/file_io/FileFactory.hpp → file_io/include/aare/FileFactory.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
include/file_io/FileHandler.hpp → file_io/include/aare/FileHandler.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
include/file_io/JsonFile.hpp → file_io/include/aare/JsonFile.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
include/file_io/JsonFileFactory.hpp → file_io/include/aare/JsonFileFactory.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
include/file_io/RawFileFactory.hpp → file_io/include/aare/RawFileFactory.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#pragma once | ||
|
||
#include "file_io/File.hpp" | ||
#include "aare/File.hpp" | ||
#include <filesystem> | ||
#include <fmt/core.h> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/file_io/file_factory/FileFactory.cpp → file_io/src/FileFactory.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
src/file_io/file_factory/JsonFileFactory.cpp → file_io/src/JsonFileFactory.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include "file_io/SubFile.hpp" | ||
#include "aare/SubFile.hpp" | ||
#include <iostream> | ||
// #include <filesystem> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include "file_io/helpers.hpp" | ||
#include "aare/helpers.hpp" | ||
|
||
|
||
bool is_master_file(std::filesystem::path fpath) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
//This is the top level header to include and what most users will use |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
pybind11_add_module(_aare src/bindings.cpp) | ||
set_target_properties(_aare PROPERTIES | ||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.