From b7ce4202af12852ddd38dca25995d5cee1620b4b Mon Sep 17 00:00:00 2001 From: Azim Afroozeh Date: Thu, 12 Sep 2024 13:29:28 +0200 Subject: [PATCH] ops --- example/cpp_example.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/example/cpp_example.cpp b/example/cpp_example.cpp index 2e28dd9..f65a24c 100644 --- a/example/cpp_example.cpp +++ b/example/cpp_example.cpp @@ -5,12 +5,6 @@ using namespace fastlanes; // NOLINT int main() { - Connection con; - const path fastlanes_repo_data_path {CMAKE_SOURCE_DIR}; - const path arade_dir_path = fastlanes_repo_data_path / string(public_bi::Arade); - const path example_1_dir_path = fastlanes_repo_data_path / string(GENERATED::EXAMPLE_1); - const path example_2_dir_path = fastlanes_repo_data_path / string(GENERATED::EXAMPLE_2); - const path fls_dir_path = fastlanes_repo_data_path / "data" / "fls"; { // example 1: single column encoding from memory: @@ -36,12 +30,15 @@ int main() { for (size_t i = 0; i < N_TUP; ++i) { if (output_arr[i] != input_arr[i]) { throw std::runtime_error("decoding failed"); } } - - std::cout << encoded_bsz << "\n"; - - exit(EXIT_SUCCESS); } { + const path fastlanes_repo_data_path {CMAKE_SOURCE_DIR}; + const path arade_dir_path = fastlanes_repo_data_path / string(public_bi::Arade); + const path example_1_dir_path = fastlanes_repo_data_path / string(GENERATED::EXAMPLE_1); + const path example_2_dir_path = fastlanes_repo_data_path / string(GENERATED::EXAMPLE_2); + const path fls_dir_path = fastlanes_repo_data_path / "data" / "fls"; + Connection con; + // Example 2: [WIP] Process a CSV file // Step 1: Reset the connection and read the CSV file from the specified directory path con.reset().read(example_2_dir_path);