Skip to content
Snippets Groups Projects
Commit d1f6dea6 authored by Riccardo Maria Bianchi's avatar Riccardo Maria Bianchi :sunny: Committed by Johannes Junggeburth
Browse files

New DB format to store real numbers, new IO methods to handle variants

parent 911074a8
Branches
Tags
1 merge request!327New schema for the GeoModel SQLite database and updated I/O
......@@ -5,6 +5,7 @@
# major updates:
# - R.M.Bianchi, 2018
# - R.M.Bianvhi, Nov 2020
# - R.M.Bianvhi, Apr 2024
################################################################################
# Find the header and source files.
......@@ -13,7 +14,7 @@ file( GLOB HEADERS GeoModelDBManager/*.h )
# Set up the library.
add_library( GeoModelDBManager SHARED ${HEADERS} ${SOURCES} )
target_link_libraries( GeoModelDBManager PRIVATE SQLite::SQLite3 )
target_link_libraries( GeoModelDBManager PRIVATE SQLite::SQLite3 GeoModelCppHelpers )
target_include_directories( GeoModelDBManager PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> )
......
......@@ -205,6 +205,13 @@ class GMDBManager {
bool addListOfRecords(const std::string geoType,
const std::vector<std::vector<std::string>> records);
bool addListOfRecords(const std::string geoType,
const std::vector<std::vector<std::variant<int, long, float, double, std::string>>> records);
bool addRecordsToTable(
const std::string tableName,
const std::vector<std::variant<int, long, float, double, std::string>>
records);
bool addListOfChildrenPositions(
const std::vector<std::vector<std::string>> &records);
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment