skeleton files to support rcpsp loader from python
This commit is contained in:
40
ortools/util/python/util.i
Normal file
40
ortools/util/python/util.i
Normal file
@@ -0,0 +1,40 @@
|
||||
// Copyright 2010-2017 Google
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// This .i file exposes the data readers.
|
||||
|
||||
%include "ortools/base/base.i"
|
||||
%include "ortools/util/python/proto.i"
|
||||
|
||||
%{
|
||||
#include "ortools/util/rcpsp_parser.h"
|
||||
#include "ortools/util/rcpsp.pb.h"
|
||||
%}
|
||||
|
||||
PY_PROTO_TYPEMAP(ortools.util.rcpsp_pb2,
|
||||
RcpspProblem,
|
||||
::operations_research::util::rcpsp::RcpspProblem);
|
||||
|
||||
%ignoreall
|
||||
|
||||
%unignore operations_research;
|
||||
%unignore operations_research::util;
|
||||
%unignore operations_research::util::rcpsp;
|
||||
%unignore operations_research::util::rcpsp::RcpspParser;
|
||||
%unignore operations_research::util::rcpsp::RcpspParser::RcpspParser;
|
||||
%rename (Problem) operations_research::util::rcpsp::RcpspParser::problem;
|
||||
%unignore operations_research::util::rcpsp::RcpspParser::LoadFile;
|
||||
|
||||
%include "ortools/util/rcpsp_parser.h"
|
||||
|
||||
%unignoreall
|
||||
Reference in New Issue
Block a user