1 // Copyright 2010-2021 Google LLC 2 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // you may not use this file except in compliance with the License. 4 // You may obtain a copy of the License at 5 // 6 // http://www.apache.org/licenses/LICENSE-2.0 7 // 8 // Unless required by applicable law or agreed to in writing, software 9 // distributed under the License is distributed on an "AS IS" BASIS, 10 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 // See the License for the specific language governing permissions and 12 // limitations under the License. 13 14 %include "ortools/base/base.i" 15 16 %include "std_string.i" 17 18 %{ 19 #include "ortools/init/init.h" 20 %} 21 22 %ignoreall 23 24 %unignore operations_research; 25 26 // Expose the flags structure. 27 %unignore operations_research::CppFlags; 28 %unignore operations_research::CppFlags::logtostderr; 29 %unignore operations_research::CppFlags::log_prefix; 30 %unignore operations_research::CppFlags::cp_model_dump_prefix; 31 %unignore operations_research::CppFlags::cp_model_dump_models; 32 %unignore operations_research::CppFlags::cp_model_dump_lns; 33 %unignore operations_research::CppFlags::cp_model_dump_response; 34 35 // Expose the static methods of the bridge class. 36 %unignore operations_research::CppBridge; 37 %unignore operations_research::CppBridge::InitLogging; 38 %unignore operations_research::CppBridge::ShutdownLogging; 39 %unignore operations_research::CppBridge::SetFlags; 40 %unignore operations_research::CppBridge::LoadGurobiSharedLibrary; 41 42 %unignore operations_research::OrToolsVersion; 43 %unignore operations_research::OrToolsVersion::MajorNumber; 44 %unignore operations_research::OrToolsVersion::MinorNumber; 45 %unignore operations_research::OrToolsVersion::PatchNumber; 46 %unignore operations_research::OrToolsVersion::VersionString; 47 48 %include "ortools/init/init.h" 49 50 %unignoreall 51