introduce struct to hold flags in cpp init code; rename classes

This commit is contained in:
Laurent Perron
2021-03-24 09:54:39 +01:00
parent f9f4ab4d5f
commit 6a562b0c29
6 changed files with 54 additions and 20 deletions

View File

@@ -10,9 +10,16 @@
%unignore operations_research;
%unignore operations_research::Init;
%unignore operations_research::Init::InitCppLogging;
%unignore operations_research::Init::LoadGurobiSharedLibrary;
// Expose the flags structure.
%unignore operations_research::CppFlags;
%unignore operations_research::CppFlags::logtostderr;
%unignore operations_research::CppFlags::log_prefix;
// Expose the static methods of the bridge class.
%unignore operations_research::CppBridge;
%unignore operations_research::CppBridge::InitLogging;
%unignore operations_research::CppBridge::SetFlags;
%unignore operations_research::CppBridge::LoadGurobiSharedLibrary;
%include "ortools/init/init.h"