/
spivag
/
command_occ
Обзор
Документация
Войти
/
spivag
/
command_occ
Код
Запросы
1
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
initial
cli_kernel_app/main.cpp
67 строк
1 KB
spivag
Запрос на слияние 'c3d_sdk_removal' (
#2
) из c3d_sdk_removal в initial
16 апр 2026, 15:34
Верифицирован
16 апр 2026, 15:34
e04e876
Код
Авторство
О чём код?
#include <io_command.h> #include <model_manager.h> #include <part_structure.h> #include <shape_command.h> #include <shape_iterator.h> #include <demo_brep_boolean.hxx> #include <demo_brep_by_sections.hxx> #include <demo_brep_swept.hxx> #include <demo_3d_solver.hxx> #include <demo_conjugate_3_parts.hxx> #include <iostream> #include <iterator> #include <memory> #include <sstream> static void InitApp( int, const char** ); int main( int argc, const char** argv ) { InitApp( argc, argv ); // if ( argc < 2 ) // { // std::cout << "One argument should be specified - path to the file which should be written" << std::endl; // exit( 1 ); // } try { } catch ( std::exception const& e ) { std::cerr << "Exception: " << e.what() << std::endl; exit( 3 ); } catch ( ... ) { std::cerr << "Unknown exception" << std::endl; exit( 4 ); } return 0; } static void InitApp( int agrc, const char** argv ) { try { std::cout << "CLI test application run with " << agrc - 1 << " arguments" << std::endl; for ( int i = 1; i < agrc; i++ ) std::cout << "[" << i << "] = " << argv[i] << std::endl; } catch ( std::exception const& e ) { std::cerr << "Kernel activation throw exception: " << e.what() << std::endl; exit( 1 ); } catch ( ... ) { std::cerr << "Kernel activation throw unknown exception." << std::endl; exit( 2 ); } }