17#ifndef OR_TOOLS_SCHEDULING_RCPSP_PARSER_H_
18#define OR_TOOLS_SCHEDULING_RCPSP_PARSER_H_
24#include "absl/strings/string_view.h"
25#include "ortools/scheduling/rcpsp.pb.h"
39 ::operations_research::scheduling::rcpsp::RcpspProblem
problem()
const {
44 bool ParseFile(
const std::string& file_name);
60 void ProcessRcpspLine(
const std::string&
line);
61 void ProcessPattersonLine(
const std::string&
line);
62 void ProcessRcpspMaxLine(
const std::string&
line);
63 void ReportError(
const std::string&
line);
66 void SetNumDeclaredTasks(
int t);
67 int strtoint32(absl::string_view word);
68 int64_t strtoint64(absl::string_view word);
70 std::string basedata_;
72 LoadStatus load_status_;
73 int num_declared_tasks_;
75 std::vector<std::vector<int> > temp_delays_;
76 std::vector<int> recipe_sizes_;
bool ParseFile(const std::string &file_name)
Returns false if an error occurred.
::operations_research::scheduling::rcpsp::RcpspProblem problem() const
We keep the fully qualified name for swig.
In SWIG mode, we don't want anything besides these top-level includes.