ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
Toggle main menu visibility
Loading...
Searching...
No Matches
speckle.hpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2025 Povl Filip Sonne-Frederiksen
2
//
3
// SPDX-License-Identifier: GPL-3.0-or-later
4
5
#pragma once
6
#include "
global-params.hpp
"
7
8
#include <CLI/CLI.hpp>
9
#include <filesystem>
10
#include <memory>
11
#include <string>
12
13
namespace
fs = std::filesystem;
14
15
struct
SubcommandExportSpeckleOptions
{
16
std::string
server_url
;
17
std::string
project_id
;
18
std::string
commit_message
=
"ReUseX export"
;
19
std::string
root_folder
;
20
std::string
image_url_base
=
"https://minio.chrk.site/files/reusex"
;
21
std::size_t
max_batch_bytes
= 25 * 1024 * 1024;
// 25 MB
22
};
23
24
void
setup_subcommand_export_speckle
(CLI::App &parent,
25
std::shared_ptr<RuxOptions> global_opt);
26
int
run_subcommand_export_speckle
(
SubcommandExportSpeckleOptions
const
&opt,
27
const
RuxOptions
&global_opt);
run_subcommand_export_speckle
int run_subcommand_export_speckle(SubcommandExportSpeckleOptions const &opt, const RuxOptions &global_opt)
setup_subcommand_export_speckle
void setup_subcommand_export_speckle(CLI::App &parent, std::shared_ptr< RuxOptions > global_opt)
global-params.hpp
RuxOptions
Definition
global-params.hpp:44
SubcommandExportSpeckleOptions
Definition
speckle.hpp:15
SubcommandExportSpeckleOptions::max_batch_bytes
std::size_t max_batch_bytes
Definition
speckle.hpp:21
SubcommandExportSpeckleOptions::commit_message
std::string commit_message
Definition
speckle.hpp:18
SubcommandExportSpeckleOptions::root_folder
std::string root_folder
Definition
speckle.hpp:19
SubcommandExportSpeckleOptions::server_url
std::string server_url
Definition
speckle.hpp:16
SubcommandExportSpeckleOptions::image_url_base
std::string image_url_base
Definition
speckle.hpp:20
SubcommandExportSpeckleOptions::project_id
std::string project_id
Definition
speckle.hpp:17
apps
rux
include
export
speckle.hpp
Generated by
1.17.0