14#ifndef OR_TOOLS_MATH_OPT_SOLVERS_MESSAGE_CALLBACK_DATA_H_
15#define OR_TOOLS_MATH_OPT_SOLVERS_MESSAGE_CALLBACK_DATA_H_
21#include "absl/strings/string_view.h"
22#include "absl/synchronization/mutex.h"
54 std::vector<std::string>
Parse(absl::string_view
message);
58 std::vector<std::string>
Flush();
62 std::string unfinished_line_;
89 return user_message_callback_ !=
nullptr;
BufferedMessageCallback(SolverInterface::MessageCallback user_message_callback)
void OnMessage(absl::string_view message)
bool has_user_message_callback() const
MessageCallbackData(const MessageCallbackData &)=delete
MessageCallbackData & operator=(const MessageCallbackData &)=delete
std::vector< std::string > Parse(absl::string_view message)
std::vector< std::string > Flush()
MessageCallbackData()=default
std::function< void(const std::vector< std::string > &)> MessageCallback
An object oriented wrapper for quadratic constraints in ModelStorage.