#include <optional>
#include <ostream>
#include <string>
#include <utility>
#include "absl/container/flat_hash_map.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "ortools/math_opt/model.pb.h"
#include "ortools/math_opt/model_parameters.pb.h"
Go to the source code of this file.
|
| std::ostream & | operator<< (std::ostream &out, FileFormat f) |
| bool | AbslParseFlag (absl::string_view text, FileFormat *f, std::string *error) |
| std::string | AbslUnparseFlag (FileFormat f) |
| absl::Span< const FileFormat > | AllFileFormats () |
| std::string | OptionalFormatFlagPossibleValuesList () |
| std::string | FormatFlagPossibleValuesList () |
| absl::flat_hash_map< absl::string_view, FileFormat > | ExtensionToFileFormat () |
| std::optional< FileFormat > | FormatFromFilePath (absl::string_view file_path) |
| std::optional< FileFormat > | FormatFromFlagOrFilePath (std::optional< FileFormat > format_flag_value, absl::string_view file_path) |
| absl::StatusOr< std::pair< ModelProto, std::optional< SolutionHintProto > > > | ReadModel (absl::string_view file_path, FileFormat format) |
| absl::Status | WriteModel (absl::string_view file_path, const ModelProto &model_proto, const std::optional< SolutionHintProto > &hint_proto, FileFormat format) |
◆ ORTOOLS_MATH_OPT_TOOLS_FILE_FORMAT_FLAGS_H_
| #define ORTOOLS_MATH_OPT_TOOLS_FILE_FORMAT_FLAGS_H_ |
◆ AbslParseFlag()
| bool AbslParseFlag |
( |
absl::string_view | text, |
|
|
FileFormat * | f, |
|
|
std::string * | error ) |
◆ AbslUnparseFlag()
◆ AllFileFormats()
◆ ExtensionToFileFormat()
| absl::flat_hash_map< absl::string_view, FileFormat > ExtensionToFileFormat |
( |
| ) |
|
◆ FormatFlagPossibleValuesList()
| std::string FormatFlagPossibleValuesList |
( |
| ) |
|
◆ FormatFromFilePath()
| std::optional< FileFormat > FormatFromFilePath |
( |
absl::string_view | file_path | ) |
|
◆ FormatFromFlagOrFilePath()
| std::optional< FileFormat > FormatFromFlagOrFilePath |
( |
std::optional< FileFormat > | format_flag_value, |
|
|
absl::string_view | file_path ) |
◆ operator<<()
| std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
FileFormat | f ) |
◆ OptionalFormatFlagPossibleValuesList()
| std::string OptionalFormatFlagPossibleValuesList |
( |
| ) |
|
◆ ReadModel()
| absl::StatusOr< std::pair< ModelProto, std::optional< SolutionHintProto > > > ReadModel |
( |
absl::string_view | file_path, |
|
|
FileFormat | format ) |
◆ WriteModel()
| absl::Status WriteModel |
( |
absl::string_view | file_path, |
|
|
const ModelProto & | model_proto, |
|
|
const std::optional< SolutionHintProto > & | hint_proto, |
|
|
FileFormat | format ) |
◆ FileFormat
◆ kLinearSolverBinary
◆ kLinearSolverText
◆ kLP
◆ kMathOptText
◆ kMPS